Re: live-cd preseeding, sudo, sources.list
schoappied wrote:
Hi,
I have made an custom Debian live-cd, it has d-i included. Now I want
to customize the d-i process a bit.
1) enable sudo (disable root)
2) add a custom sources.list
I've read a bit about preseeding, but where should I put the file on
the live-cd? Should I do it before or after building that live-cd?
I've taken the example file from the manual as example. Do I get it
right that if I comment out the lines, the default d-i option is used?
To enable sudo I have this in the file:
### Account setup
# Skip creation of a root account (normal user account will be able to
# use sudo).
d-i passwd/root-login boolean false
# Alternatively, to skip creation of a normal user account.
#d-i passwd/make-user boolean false
To enable a custom sources.list I have:
# Additional repositories, local[0-9] available
d-i apt-setup/local0/repository string \
# http://local.server/debian stable main
ftp://ftp.debian.us/debian/ testing main contrib non-free
http://www.debian-multimedia.org/ testing main
http://ftp.us.debian.org/debian/ unstable main contrib non-free
http://ftp.uni-kl.de/debian-multimedia/ unstable main
#d-i apt-setup/local0/comment string local server
# Enable deb-src lines
d-i apt-setup/local0/source boolean true
# URL to the public key of the local repository; you must provide a
key or
# apt will complain about the unauthenticated repository and so the
# sources.list line will be left commented out
#d-i apt-setup/local0/key string http://local.server/key
# By default the installer requires that repositories be authenticated
# using a known gpg key. This setting can be used to disable that
# authentication. Warning: Insecure, not recommended.
d-i debian-installer/allow_unauthenticated string true
( I've the keys already on the live-cd..)
Advise is welcome here!
Thanks in advance,
~d
I tried to preseed, but I think it fails...
I've this in the binary file in the build environment of the live-cd:
# $LH_DEBIAN_INSTALLER_PRESEEDFILE: set debian-installer preseed
filename/url
# (Default: )
LH_DEBIAN_INSTALLER_PRESEEDFILE="/home/d/debianlive/preseed.cfg"
This are the options specified in the preseed.cfg to enable sudo and
have a custom sources.list:
### Account setup
# Skip creation of a root account (normal user account will be able to
# use sudo).
d-i passwd/root-login boolean false
# Alternatively, to skip creation of a normal user account.
#d-i passwd/make-user boolean false
# Root password, either in clear text
#d-i passwd/root-password password r00tme
#d-i passwd/root-password-again password r00tme
# or encrypted using an MD5 hash.
#d-i passwd/root-password-crypted password [MD5 hash]
# To create a normal user account.
#d-i passwd/user-fullname string Debian User
#d-i passwd/username string debian
# Normal user's password, either in clear text
#d-i passwd/user-password password insecure
#d-i passwd/user-password-again password insecure
# or encrypted using an MD5 hash.
#d-i passwd/user-password-crypted password [MD5 hash]
# Create the first user with the specified UID instead of the default.
#d-i passwd/user-uid string 1010
# The user account will be added to some standard initial groups. To
# override that, use this.
#d-i passwd/user-default-groups string audio cdrom video
### Apt setup
# You can choose to install non-free and contrib software.
#d-i apt-setup/non-free boolean true
#d-i apt-setup/contrib boolean true
# Uncomment this if you don't want to use a network mirror.
d-i apt-setup/use_mirror boolean false
# Select which update services to use; define the mirrors to be used.
# Values shown below are the normal defaults.
#d-i apt-setup/services-select multiselect security, volatile
#d-i apt-setup/security_host string security.debian.org
#d-i apt-setup/volatile_host string volatile.debian.org
# Additional repositories, local[0-9] available
d-i apt-setup/local0/repository string \
# http://local.server/debian stable main
ftp://ftp.debian.us/debian/ testing main contrib non-free
d-i apt-setup/local1/repository string \
http://www.debian-multimedia.org/ testing main
d-i apt-setup/local2/repository string \
http://ftp.us.debian.org/debian/ unstable main contrib non-free
d-i apt-setup/local3/repository string \
http://ftp.uni-kl.de/debian-multimedia/ unstable main
d-i apt-setup/local4/repository string \
http://security.debian.org lenny/updates main contrib non-free
#d-i apt-setup/local0/comment string local server
# Enable deb-src lines
d-i apt-setup/local0/source boolean true
# URL to the public key of the local repository; you must provide a key or
# apt will complain about the unauthenticated repository and so the
# sources.list line will be left commented out
#d-i apt-setup/local0/key string http://local.server/key
# By default the installer requires that repositories be authenticated
# using a known gpg key. This setting can be used to disable that
# authentication. Warning: Insecure, not recommended.
d-i debian-installer/allow_unauthenticated string true
Please guys, I need some help here to make some progress..
\d
Reply to: