--- a/pkvlm-create Wed Dec 14 01:10:04 2011 +0200
+++ b/pkvlm-create Wed Dec 14 01:10:41 2011 +0200
@@ -3,6 +3,7 @@
### Parameters
## Options
_MOCK=${_MOCK:0}
+_ACK=${_ACK:0}
## Guest info
GUEST_NAME=$1
@@ -56,7 +57,7 @@
# Preseed source template
PRESEED_TEMPLATE="preseed/preseed.cfg"
PRESEED_ISOLINUX="preseed/isolinux.cfg"
-PRESEED_REST="preseed/passwords.cfg"
+PRESEED_INCLUDES=("preseed/passwords.cfg" "preseed/host.cfg")
## External progs
# Bootable .iso for Debian isolinux-based installer CDs
@@ -127,7 +128,7 @@
cmd expand_template ${PRESEED_ISOLINUX} ${INSTALL_TREE}/isolinux/isolinux.cfg
# Others
-for file in ${PRESEED_REST}; do
+for file in ${PRESEED_INCLUDES[@]}; do
name=$(basename $file)
cmd expand_template $file ${INSTALL_TREE}/${name}
@@ -137,6 +138,8 @@
[ -f ${INSTALL_ISO} ] && cmd rm -f ${INSTALL_ISO}
cmd ${GENISOIMAGE} -o ${INSTALL_ISO} ${GENISOIMAGE_OPTS} ${INSTALL_TREE}
+[ $_ACK ] && read -p "Continue..."
+
## LVM
# Create LV (unless it already exists)
[ -e $DISK_PATH ] || cmd sudo $LVM lvcreate -L $DISK_SIZE -n $DISK_NAME $DISK_VG
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/preseed/host.cfg Wed Dec 14 01:10:41 2011 +0200
@@ -0,0 +1,62 @@
+#### Preseed debconf database for packages installed on the host
+
+### Mail
+## Exim
+# General type of mail configuration:
+# Choices: internet site; mail is sent and received directly using SMTP, mail sent by smarthost; received via SMTP or fetchmail, mail sent by smarthost; no local mail, local delivery only; not on a network, no configuration at this time
+exim4-config exim4/dc_eximconfig_configtype select mail sent by smarthost; no local mail
+
+# IP-addresses to listen on for incoming SMTP connections:
+# -> only service localhost
+exim4-config exim4/dc_local_interfaces string 127.0.0.1 ; ::1
+
+# Root and postmaster mail recipient:
+# -> mail to root/postmaster is redirected to this local user
+exim4-config exim4/dc_postmaster string terom
+
+# System mail name:
+# -> mail from/to a plain-local address is qualified with this domain
+exim4-config exim4/mailname string {NET_HOSTNAME}.paivola.fi
+
+# IP address or host name of the outgoing smarthost:
+# -> relay outgoing mails via this server
+exim4-config exim4/dc_smarthost string smtp.paivola.fi
+
+# Visible domain name for local users:
+# -> ??? this is very illogical
+exim4-config exim4/dc_readhost string paivola.fi
+
+# Hide local mail name in outgoing mail?
+# -> Send mail as From: @readhost?
+exim4-config exim4/hide_mailname boolean true
+
+# Other destinations for which mail is accepted:
+exim4-config exim4/dc_other_hostnames string paivola.fi
+
+# Split configuration into small files?
+exim4-config exim4/use_split_config boolean false
+# Keep number of DNS-queries minimal (Dial-on-Demand)?
+exim4-config exim4/dc_minimaldns boolean false
+
+# XXX: not relevant
+# Choices: mbox format in /var/mail/, Maildir format in home directory
+exim4-config exim4/dc_localdelivery select Maildir format in home directory
+# Really leave the mail system unconfigured?
+exim4-config exim4/no_config boolean true
+# Domains to relay mail for:
+exim4-config exim4/dc_relay_domains string
+# Machines to relay mail for:
+exim4-config exim4/dc_relay_nets string
+
+# Remove undelivered messages in spool directory?
+exim4-base exim4/purge_spool boolean false
+
+# Ignore questions with a priority less than:
+# Choices: critical, high, medium, low
+#debconf debconf/priority select high
+
+# Use dash as the default system shell (/bin/sh)?
+#dash dash/sh boolean true
+
+
+
--- a/preseed/preseed.cfg Wed Dec 14 01:10:04 2011 +0200
+++ b/preseed/preseed.cfg Wed Dec 14 01:10:41 2011 +0200
@@ -1,5 +1,4 @@
-#### Contents of the preconfiguration file (for squeeze)
-
+#### Contents of the installer preconfiguration file (for squeeze)
### Localization
@@ -106,7 +105,7 @@
# The user account will be added to some standard initial groups. To
# override that, use this.
-d-i passwd/user-default-groups string cdrom sudo
+d-i passwd/user-default-groups string cdrom sudo adm
@@ -270,6 +269,9 @@
# kernel is to be installed.
#d-i base-installer/kernel/image string linux-image-2.6-486
+
+
+
### Apt setup
# You can choose to install non-free and contrib software.
#d-i apt-setup/non-free boolean true
@@ -312,7 +314,7 @@
# Individual additional packages to install
d-i pkgsel/include string \
- sudo screen
+ sudo screen vim
# Whether to upgrade packages after debootstrap.
# Allowed values: none, safe-upgrade, full-upgrade
@@ -398,4 +400,4 @@
### Extra preseed files
-d-i preseed/include string passwords.cfg
+d-i preseed/include string passwords.cfg host.cfg