[Fai-commit] r5835 - in people/mgoetze: . simple/class simple/debconf simple/files/boot/grub/menu.lst simple/files/etc/kernel-img.conf simple/hooks simple/package_config simple/scripts simple/scripts/DEBIAN simple/scripts/FAIBASE

Michael Goetze mgoetze-guest at alioth.debian.org
Sun Jul 4 10:03:17 UTC 2010


Author: mgoetze-guest
Date: 2010-07-04 10:03:16 +0000 (Sun, 04 Jul 2010)
New Revision: 5835

Added:
   people/mgoetze/simple/
   people/mgoetze/simple/debconf/DEBIAN
   people/mgoetze/simple/debconf/XORG
   people/mgoetze/simple/files/boot/grub/menu.lst/DEBIAN
   people/mgoetze/simple/files/etc/kernel-img.conf/DEBIAN
   people/mgoetze/simple/hooks/instsoft.DEBIAN
   people/mgoetze/simple/package_config/DEBIAN
   people/mgoetze/simple/scripts/DEBIAN/
   people/mgoetze/simple/scripts/DEBIAN/10-keymap
   people/mgoetze/simple/scripts/DEBIAN/10-rootpw
   people/mgoetze/simple/scripts/DEBIAN/30-interface
   people/mgoetze/simple/scripts/DEBIAN/40-misc
Removed:
   people/mgoetze/simple/debconf/FAIBASE
   people/mgoetze/simple/files/boot/grub/menu.lst/GRUB
   people/mgoetze/simple/files/etc/kernel-img.conf/DEFAULT
   people/mgoetze/simple/hooks/instsoft.FAIBASE
   people/mgoetze/simple/package_config/DEFAULT
   people/mgoetze/simple/scripts/AMD64/
   people/mgoetze/simple/scripts/FAIBASE/30-interface
   people/mgoetze/simple/scripts/FAIBASE/40-misc
Modified:
   people/mgoetze/simple/class/50-host-classes
   people/mgoetze/simple/package_config/FAIBASE
   people/mgoetze/simple/scripts/FAIBASE/10-misc
Log:
First attempt to identify Debian-specific bits in simple-examples.

Modified: people/mgoetze/simple/class/50-host-classes
===================================================================
--- trunk/examples/simple/class/50-host-classes	2010-07-03 23:03:57 UTC (rev 5831)
+++ people/mgoetze/simple/class/50-host-classes	2010-07-04 10:03:16 UTC (rev 5835)
@@ -5,19 +5,19 @@
 # use a list of classes for our demo machine
 case $HOSTNAME in
     faiserver)
-	echo "FAIBASE DEMO FAISERVER" ;;
+	echo "FAIBASE DEBIAN DEMO FAISERVER" ;;
     demohost)
-	echo "FAIBASE DHCPC DEMO" ;;
+	echo "FAIBASE DEBIAN DHCPC DEMO" ;;
     gnomehost)
-	echo "FAIBASE DHCPC DEMO XORG GNOME";;
+	echo "FAIBASE DEBIAN DHCPC DEMO XORG GNOME";;
     atom*)
-	echo "FAIBASE DHCPC DEMO" ;;
+	echo "FAIBASE DEBIAN DHCPC DEMO" ;;
     bear)
-	echo "FAIBASE DHCPC LVM_XEN_SERVER XEN" ;;
+	echo "FAIBASE DEBIAN DHCPC LVM_XEN_SERVER XEN" ;;
     puma)
-	echo "FAIBASE DHCPC RAID_XEN_VIRTUAL" ;;
+	echo "FAIBASE DEBIAN DHCPC RAID_XEN_VIRTUAL" ;;
     *)
-	echo "FAIBASE DHCPC" ;;
+	echo "FAIBASE DEBIAN DHCPC" ;;
 esac
 
 (ifclass I386 || ifclass AMD64) && echo GRUB 

Copied: people/mgoetze/simple/debconf/DEBIAN (from rev 5831, trunk/examples/simple/debconf/FAIBASE)
===================================================================
--- people/mgoetze/simple/debconf/DEBIAN	                        (rev 0)
+++ people/mgoetze/simple/debconf/DEBIAN	2010-07-04 10:03:16 UTC (rev 5835)
@@ -0,0 +1,4 @@
+passwd passwd/shadow boolean true
+exim4-config exim4/dc_eximconfig_configtype select local delivery only; not on a network
+locales locales/default_environment_locale select en_US.UTF-8
+locales locales/locales_to_be_generated multiselect en_US.UTF-8 UTF-8

Deleted: people/mgoetze/simple/debconf/FAIBASE
===================================================================
--- trunk/examples/simple/debconf/FAIBASE	2010-07-03 23:03:57 UTC (rev 5831)
+++ people/mgoetze/simple/debconf/FAIBASE	2010-07-04 10:03:16 UTC (rev 5835)
@@ -1,9 +0,0 @@
-passwd passwd/shadow boolean true
-exim4-config exim4/dc_eximconfig_configtype select local delivery only; not on a network
-locales locales/default_environment_locale select en_US.UTF-8
-locales locales/locales_to_be_generated multiselect en_US.UTF-8 UTF-8
-xserver-xorg xserver-xorg/config/inputdevice/keyboard/model string pc105
-xserver-xorg    xserver-xorg/autodetect_monitor         boolean false
-xserver-xorg    xserver-xorg/autodetect_keyboard        boolean true
-xserver-xorg    xserver-xorg/autodetect_mouse           boolean true
-xserver-xorg    xserver-xorg/autodetect_video_card      boolean true

Added: people/mgoetze/simple/debconf/XORG
===================================================================
--- people/mgoetze/simple/debconf/XORG	                        (rev 0)
+++ people/mgoetze/simple/debconf/XORG	2010-07-04 10:03:16 UTC (rev 5835)
@@ -0,0 +1,6 @@
+xserver-xorg xserver-xorg/config/inputdevice/keyboard/model string pc105
+xserver-xorg    xserver-xorg/autodetect_monitor         boolean false
+xserver-xorg    xserver-xorg/autodetect_keyboard        boolean true
+xserver-xorg    xserver-xorg/autodetect_mouse           boolean true
+xserver-xorg    xserver-xorg/autodetect_video_card      boolean true
+

Copied: people/mgoetze/simple/files/boot/grub/menu.lst/DEBIAN (from rev 5831, trunk/examples/simple/files/boot/grub/menu.lst/GRUB)
===================================================================
--- people/mgoetze/simple/files/boot/grub/menu.lst/DEBIAN	                        (rev 0)
+++ people/mgoetze/simple/files/boot/grub/menu.lst/DEBIAN	2010-07-04 10:03:16 UTC (rev 5835)
@@ -0,0 +1,43 @@
+#
+timeout 5
+default 0
+color cyan/blue white/blue
+
+### BEGIN AUTOMAGIC KERNELS LIST
+## lines between the AUTOMAGIC KERNELS LIST markers will be modified
+## by the debian update-grub script except for the default optons below
+
+## DO NOT UNCOMMENT THEM, Just edit them to your needs
+
+## ## Start Default Options ##
+## default kernel options
+# kopt=root=#ROOT_PARTITION# ro 
+
+## default grub root device
+## e.g. groot=(hd0,0)
+# groot=#GROOT#
+
+## should update-grub create alternative boot options
+## e.g. alternative=true
+##      alternative=false
+# alternative=true
+
+## should update-grub lock alternative boot options
+## e.g. lockalternative=true
+##      lockalternative=false
+# lockalternative=true
+
+## altoption boot targets option
+## multiple altoptions lines are allowed
+## e.g. altoptions=(extra menu suffix) extra boot options
+##      altoptions=(recovery mode) single
+# altoptions=(recovery mode) single
+
+## add memtest86 if found
+# memtest86=true
+
+## ## End Default Options ##
+
+### END DEBIAN AUTOMAGIC KERNELS LIST
+
+

Deleted: people/mgoetze/simple/files/boot/grub/menu.lst/GRUB
===================================================================
--- trunk/examples/simple/files/boot/grub/menu.lst/GRUB	2010-07-03 23:03:57 UTC (rev 5831)
+++ people/mgoetze/simple/files/boot/grub/menu.lst/GRUB	2010-07-04 10:03:16 UTC (rev 5835)
@@ -1,43 +0,0 @@
-#
-timeout 5
-default 0
-color cyan/blue white/blue
-
-### BEGIN AUTOMAGIC KERNELS LIST
-## lines between the AUTOMAGIC KERNELS LIST markers will be modified
-## by the debian update-grub script except for the default optons below
-
-## DO NOT UNCOMMENT THEM, Just edit them to your needs
-
-## ## Start Default Options ##
-## default kernel options
-# kopt=root=#ROOT_PARTITION# ro 
-
-## default grub root device
-## e.g. groot=(hd0,0)
-# groot=#GROOT#
-
-## should update-grub create alternative boot options
-## e.g. alternative=true
-##      alternative=false
-# alternative=true
-
-## should update-grub lock alternative boot options
-## e.g. lockalternative=true
-##      lockalternative=false
-# lockalternative=true
-
-## altoption boot targets option
-## multiple altoptions lines are allowed
-## e.g. altoptions=(extra menu suffix) extra boot options
-##      altoptions=(recovery mode) single
-# altoptions=(recovery mode) single
-
-## add memtest86 if found
-# memtest86=true
-
-## ## End Default Options ##
-
-### END DEBIAN AUTOMAGIC KERNELS LIST
-
-

Copied: people/mgoetze/simple/files/etc/kernel-img.conf/DEBIAN (from rev 5831, trunk/examples/simple/files/etc/kernel-img.conf/DEFAULT)
===================================================================
--- people/mgoetze/simple/files/etc/kernel-img.conf/DEBIAN	                        (rev 0)
+++ people/mgoetze/simple/files/etc/kernel-img.conf/DEBIAN	2010-07-04 10:03:16 UTC (rev 5835)
@@ -0,0 +1,5 @@
+do_symlinks = Yes
+do_initrd = Yes
+silent_modules=yes
+clobber_modules=yes
+do_boot_enable=no

Deleted: people/mgoetze/simple/files/etc/kernel-img.conf/DEFAULT
===================================================================
--- trunk/examples/simple/files/etc/kernel-img.conf/DEFAULT	2010-07-03 23:03:57 UTC (rev 5831)
+++ people/mgoetze/simple/files/etc/kernel-img.conf/DEFAULT	2010-07-04 10:03:16 UTC (rev 5835)
@@ -1,5 +0,0 @@
-do_symlinks = Yes
-do_initrd = Yes
-silent_modules=yes
-clobber_modules=yes
-do_boot_enable=no

Copied: people/mgoetze/simple/hooks/instsoft.DEBIAN (from rev 5831, trunk/examples/simple/hooks/instsoft.FAIBASE)
===================================================================
--- people/mgoetze/simple/hooks/instsoft.DEBIAN	                        (rev 0)
+++ people/mgoetze/simple/hooks/instsoft.DEBIAN	2010-07-04 10:03:16 UTC (rev 5835)
@@ -0,0 +1,3 @@
+#! /bin/bash
+
+[ -s $target/etc/kernel-img.conf ] || fcopy -Bi /etc/kernel-img.conf

Deleted: people/mgoetze/simple/hooks/instsoft.FAIBASE
===================================================================
--- trunk/examples/simple/hooks/instsoft.FAIBASE	2010-07-03 23:03:57 UTC (rev 5831)
+++ people/mgoetze/simple/hooks/instsoft.FAIBASE	2010-07-04 10:03:16 UTC (rev 5835)
@@ -1,3 +0,0 @@
-#! /bin/bash
-
-[ -s $target/etc/kernel-img.conf ] || fcopy -Bi /etc/kernel-img.conf

Copied: people/mgoetze/simple/package_config/DEBIAN (from rev 5831, trunk/examples/simple/package_config/DEFAULT)
===================================================================
--- people/mgoetze/simple/package_config/DEBIAN	                        (rev 0)
+++ people/mgoetze/simple/package_config/DEBIAN	2010-07-04 10:03:16 UTC (rev 5835)
@@ -0,0 +1,26 @@
+PACKAGES aptitude I386
+linux-image-486
+memtest86+
+
+PACKAGES aptitude CHROOT
+linux-image-486-
+linux-image-amd64-
+
+PACKAGES aptitude AMD64
+linux-image-amd64
+memtest86+
+
+PACKAGES aptitude XEN
+xen-linux-system-2.6.26-2-xen-amd64
+
+PACKAGES aptitude DHCPC
+dhcp3-client
+
+PACKAGES aptitude GRUB
+grub lilo-
+
+PACKAGES aptitude GRUB_PC
+grub-pc grub- lilo-
+
+PACKAGES aptitude LILO
+lilo grub-

Deleted: people/mgoetze/simple/package_config/DEFAULT
===================================================================
--- trunk/examples/simple/package_config/DEFAULT	2010-07-03 23:03:57 UTC (rev 5831)
+++ people/mgoetze/simple/package_config/DEFAULT	2010-07-04 10:03:16 UTC (rev 5835)
@@ -1,26 +0,0 @@
-PACKAGES aptitude I386
-linux-image-486
-memtest86+
-
-PACKAGES aptitude CHROOT
-linux-image-486-
-linux-image-amd64-
-
-PACKAGES aptitude AMD64
-linux-image-amd64
-memtest86+
-
-PACKAGES aptitude XEN
-xen-linux-system-2.6.26-2-xen-amd64
-
-PACKAGES aptitude DHCPC
-dhcp3-client
-
-PACKAGES aptitude GRUB
-grub lilo-
-
-PACKAGES aptitude GRUB_PC
-grub-pc grub- lilo-
-
-PACKAGES aptitude LILO
-lilo grub-

Modified: people/mgoetze/simple/package_config/FAIBASE
===================================================================
--- trunk/examples/simple/package_config/FAIBASE	2010-07-03 23:03:57 UTC (rev 5831)
+++ people/mgoetze/simple/package_config/FAIBASE	2010-07-04 10:03:16 UTC (rev 5835)
@@ -1,4 +1,4 @@
-PACKAGES aptitude
+PACKAGES aptitude DEBIAN
 fai-client
 cfengine2
 cron

Added: people/mgoetze/simple/scripts/DEBIAN/10-keymap
===================================================================
--- people/mgoetze/simple/scripts/DEBIAN/10-keymap	                        (rev 0)
+++ people/mgoetze/simple/scripts/DEBIAN/10-keymap	2010-07-04 10:03:16 UTC (rev 5835)
@@ -0,0 +1,13 @@
+#! /bin/bash
+
+# (c) Thomas Lange, 2001-2008, lange at debian.org
+# (c) Michael Goetze, 2010, mgoetze at mgoetze.net
+
+error=0 ; trap "error=$((error|1))" ERR
+
+# create keyboard layout table
+$ROOTCMD bash -c "echo 'console-data console-data/keymap/full select $KEYMAP' | debconf-set-selections"
+$ROOTCMD install-keymap $KEYMAP || true
+
+exit $error
+


Property changes on: people/mgoetze/simple/scripts/DEBIAN/10-keymap
___________________________________________________________________
Added: svn:executable
   + *

Added: people/mgoetze/simple/scripts/DEBIAN/10-rootpw
===================================================================
--- people/mgoetze/simple/scripts/DEBIAN/10-rootpw	                        (rev 0)
+++ people/mgoetze/simple/scripts/DEBIAN/10-rootpw	2010-07-04 10:03:16 UTC (rev 5835)
@@ -0,0 +1,12 @@
+#! /bin/bash
+
+# (c) Thomas Lange, 2001-2008, lange at debian.org
+# (c) Michael Goetze, 2010, mgoetze at mgoetze.net
+
+error=0 ; trap "error=$((error|1))" ERR
+
+# set root password
+$ROOTCMD usermod -p $ROOTPW root
+
+exit $error
+


Property changes on: people/mgoetze/simple/scripts/DEBIAN/10-rootpw
___________________________________________________________________
Added: svn:executable
   + *

Copied: people/mgoetze/simple/scripts/DEBIAN/30-interface (from rev 5831, trunk/examples/simple/scripts/FAIBASE/30-interface)
===================================================================
--- people/mgoetze/simple/scripts/DEBIAN/30-interface	                        (rev 0)
+++ people/mgoetze/simple/scripts/DEBIAN/30-interface	2010-07-04 10:03:16 UTC (rev 5835)
@@ -0,0 +1,33 @@
+#! /bin/bash
+
+error=0 ; trap "error=$((error|1))" ERR
+
+if ifclass DHCPC && [ $FAI_ACTION != "softupdate" ]
+then
+    cat > $target/etc/network/interfaces <<-EOF
+	# generated by FAI
+	auto lo eth0
+	iface lo inet loopback
+	iface eth0 inet dhcp
+EOF
+else
+      [ -n "$IPADDR" ] && cat > $target/etc/network/interfaces <<-EOF
+	# generated by FAI
+	auto lo eth0
+	iface lo inet loopback
+	iface eth0 inet static
+	  address $IPADDR
+	  netmask $NETMASK
+	  broadcast $BROADCAST
+	  gateway $GATEWAYS
+EOF
+    [ -n "$NETWORK" ] && echo "localnet $NETWORK" > $target/etc/networks
+    [ -s /etc/resolv.conf ] && cp -p /etc/resolv.conf $target/etc
+fi
+
+# here fcopy is mostly used, when installing a client for running in a
+# different subnet than during the installation  
+fcopy -i /etc/resolv.conf
+fcopy -iM /etc/network/interfaces /etc/networks
+
+exit $error

Copied: people/mgoetze/simple/scripts/DEBIAN/40-misc (from rev 5831, trunk/examples/simple/scripts/FAIBASE/40-misc)
===================================================================
--- people/mgoetze/simple/scripts/DEBIAN/40-misc	                        (rev 0)
+++ people/mgoetze/simple/scripts/DEBIAN/40-misc	2010-07-04 10:03:16 UTC (rev 5835)
@@ -0,0 +1,26 @@
+#! /usr/sbin/cfagent -f
+
+control:
+   any::
+   actionsequence = ( directories editfiles )
+   EditFileSize = ( 30000 )
+
+directories:
+   any::
+	${target}/tmp mode=1777 owner=0 group=0
+
+editfiles:
+   any::
+	{ ${target}/etc/mailname
+	  AutoCreate
+          AppendIfNoSuchLine "${HOSTNAME}"
+	}
+
+	{ ${target}/etc/default/rcS
+	  ReplaceAll "^UTC=.*" With "UTC=${UTC}"
+	}
+
+	{ ${target}/etc/inittab
+	  ReplaceAll "/sbin/getty 38400"
+		With "/sbin/getty -f /etc/issue.linuxlogo 38400"
+	}

Modified: people/mgoetze/simple/scripts/FAIBASE/10-misc
===================================================================
--- trunk/examples/simple/scripts/FAIBASE/10-misc	2010-07-03 23:03:57 UTC (rev 5831)
+++ people/mgoetze/simple/scripts/FAIBASE/10-misc	2010-07-04 10:03:16 UTC (rev 5835)
@@ -1,6 +1,7 @@
 #! /bin/bash
 
 # (c) Thomas Lange, 2001-2008, lange at debian.org
+# (c) Michael Goetze, 2010, mgoetze at mgoetze.net
 
 error=0 ; trap "error=$((error|1))" ERR
 
@@ -16,18 +17,10 @@
 
 fcopy -iM /etc/hosts /etc/motd
 
-# set root password
-#echo "root:$ROOTPW" | $ROOTCMD chpasswd --encrypted
-$ROOTCMD usermod -p $ROOTPW root
 # make /root accessible only by root
 chmod 0700 $target/root
 chown root:root $target/root
 # copy default dotfiles for root account
 fcopy -ir /root
 
-# create keyboard layout table
-$ROOTCMD bash -c "echo 'console-data console-data/keymap/full select $KEYMAP' | debconf-set-selections"
-$ROOTCMD install-keymap $KEYMAP || true
-# dumpkeys | gzip -9f >$target/etc/console/boottime.kmap.gz
-
 exit $error

Deleted: people/mgoetze/simple/scripts/FAIBASE/30-interface
===================================================================
--- trunk/examples/simple/scripts/FAIBASE/30-interface	2010-07-03 23:03:57 UTC (rev 5831)
+++ people/mgoetze/simple/scripts/FAIBASE/30-interface	2010-07-04 10:03:16 UTC (rev 5835)
@@ -1,33 +0,0 @@
-#! /bin/bash
-
-error=0 ; trap "error=$((error|1))" ERR
-
-if ifclass DHCPC && [ $FAI_ACTION != "softupdate" ]
-then
-    cat > $target/etc/network/interfaces <<-EOF
-	# generated by FAI
-	auto lo eth0
-	iface lo inet loopback
-	iface eth0 inet dhcp
-EOF
-else
-      [ -n "$IPADDR" ] && cat > $target/etc/network/interfaces <<-EOF
-	# generated by FAI
-	auto lo eth0
-	iface lo inet loopback
-	iface eth0 inet static
-	  address $IPADDR
-	  netmask $NETMASK
-	  broadcast $BROADCAST
-	  gateway $GATEWAYS
-EOF
-    [ -n "$NETWORK" ] && echo "localnet $NETWORK" > $target/etc/networks
-    [ -s /etc/resolv.conf ] && cp -p /etc/resolv.conf $target/etc
-fi
-
-# here fcopy is mostly used, when installing a client for running in a
-# different subnet than during the installation  
-fcopy -i /etc/resolv.conf
-fcopy -iM /etc/network/interfaces /etc/networks
-
-exit $error

Deleted: people/mgoetze/simple/scripts/FAIBASE/40-misc
===================================================================
--- trunk/examples/simple/scripts/FAIBASE/40-misc	2010-07-03 23:03:57 UTC (rev 5831)
+++ people/mgoetze/simple/scripts/FAIBASE/40-misc	2010-07-04 10:03:16 UTC (rev 5835)
@@ -1,26 +0,0 @@
-#! /usr/sbin/cfagent -f
-
-control:
-   any::
-   actionsequence = ( directories editfiles )
-   EditFileSize = ( 30000 )
-
-directories:
-   any::
-	${target}/tmp mode=1777 owner=0 group=0
-
-editfiles:
-   any::
-	{ ${target}/etc/mailname
-	  AutoCreate
-          AppendIfNoSuchLine "${HOSTNAME}"
-	}
-
-	{ ${target}/etc/default/rcS
-	  ReplaceAll "^UTC=.*" With "UTC=${UTC}"
-	}
-
-	{ ${target}/etc/inittab
-	  ReplaceAll "/sbin/getty 38400"
-		With "/sbin/getty -f /etc/issue.linuxlogo 38400"
-	}




More information about the Fai-commit mailing list