preseed: fix tasksel (syntax); add NET_HOSTNAME; pkvlm-create: clean out existing .iso
--- a/misc/TODO Tue Dec 13 20:17:57 2011 +0200
+++ b/misc/TODO Tue Dec 13 20:52:30 2011 +0200
@@ -45,3 +45,7 @@
http://www.debian.org/releases/squeeze/amd64/ch08s05.html.en
No mutt, please no Exim with local mail delivery. Delivery to system user accounts @paivola.fi via smtp.paivola.fi is ok.
+
+### Console
+
+ttyS0 -> virsh console
--- a/pkvlm-create Tue Dec 13 20:17:57 2011 +0200
+++ b/pkvlm-create Tue Dec 13 20:52:30 2011 +0200
@@ -5,7 +5,7 @@
_MOCK=${_MOCK:0}
## Guest info
-GUEST_NAME=asdf2
+GUEST_NAME=$1
# Basic params
GUEST_RAM=1G
@@ -30,6 +30,7 @@
GUEST_DISK=/dev/vda
## Network
+NET_HOSTNAME=${GUEST_NAME}
NET_BRIDGE=br-lan
NET_IPADDR=194.197.235.36
@@ -133,6 +134,7 @@
done
# Create .iso
+[ -f ${INSTALL_ISO} ] && cmd rm -f ${INSTALL_ISO}
cmd ${GENISOIMAGE} -o ${INSTALL_ISO} ${GENISOIMAGE_OPTS} ${INSTALL_TREE}
## LVM
--- a/preseed/preseed.cfg Tue Dec 13 20:17:57 2011 +0200
+++ b/preseed/preseed.cfg Tue Dec 13 20:52:30 2011 +0200
@@ -38,7 +38,7 @@
## Static network configuration.
# XXX: this is for asdf.paivola.fi
-d-i netcfg/get_hostname string asdf
+d-i netcfg/get_hostname string {NET_HOSTNAME}
d-i netcfg/get_domain string paivola.fi
d-i netcfg/get_ipaddress string {NET_IPADDR}
d-i netcfg/get_netmask string 255.255.255.0
@@ -308,7 +308,7 @@
# Keep 'standard' task
# http://wiki.debian.org/tasksel#A.22standard.22_task
# this includes exim and mutt
-tasksel tasksel/first multiselect standard ssh-server
+tasksel tasksel/first multiselect standard, ssh-server
# Individual additional packages to install
d-i pkgsel/include string \