fixed comcenter for jessie
authorHeiko Schlittermann (JUMPER) <hs@schlittermann.de>
Fri, 12 Dec 2014 14:26:32 +0100
changeset 24 46f2bc8492c6
parent 23 6a347acc9050
child 25 519fca1ac4d5
fixed comcenter for jessie
com-jessie.cfg
--- a/com-jessie.cfg	Thu Dec 11 14:38:51 2014 +0100
+++ b/com-jessie.cfg	Fri Dec 12 14:26:32 2014 +0100
@@ -61,7 +61,8 @@
 d-i	keyboard-configuration/variant	select	
 d-i	keyboard-configuration/variant	select	Deutsch
 d-i	keyboard-configuration/variantcode	string	
-d-i	keyboard-configuration/xkb-keymap	select de-latin1-nodeadkeys
+#d-i	keyboard-configuration/xkb-keymap	select de-latin1-nodeadkeys
+d-i 	keyboard-configuration/xkb-keymap 	select de
 d-i	localechooser/continentlist	select	
 d-i	localechooser/countrylist/Africa	select	
 d-i	localechooser/countrylist/Antarctica	select	
@@ -142,7 +143,13 @@
 d-i	preseed/interactive	boolean	false
 d-i	preseed/late_command	string	\
     in-target perl -i.bak -ne 'print unless /^deb cdrom:/' /etc/apt/sources.list; \
-    in-target apt-get -y update && in-target apt-get -y upgrade
+    in-target apt-get -y update && in-target apt-get -y upgrade; \
+    in-target apt-get -y dist-upgrade; \
+    in-target sh -c 'cd /tmp && wget -O- https://ssl.schlittermann.de/pkg/Generate-Hostname-0.01.tar.gz | tar xzf -'; \
+    in-target sh -c 'cd /tmp/Generate-Hostname-0.01 && perl Build.PL && ./Build install'; \
+    in-target sh -c 'hostname `/usr/local/bin/genhostname`'; \
+    in-target sh -c 'hostname > /etc/hostname'; \
+    in-target perl -i.bak -pe 's/debian/'`hostname`'/g' /etc/hosts;
 d-i	preseed/load_error	error	
 d-i	preseed/retrieve_error	error	
 d-i	preseed/run	string	
@@ -162,6 +169,8 @@
 d-i grub-installer/only_debian boolean true
 d-i grub-installer/with_other_os boolean true
 
+grub-installer	grub-installer/choose_bootdev	select	/dev/sda
+
 tzsetup-udeb    time/zone		select  Europe/Berlin
 user-setup-udeb	passwd/root-login	boolean	false
 user-setup-udeb	passwd/user-fullname	string	Hans Hanson