[Fai-commit] r5847 - branches/experimental/patches
Michael Goetze
mgoetze-guest at alioth.debian.org
Thu Jul 8 11:46:48 UTC 2010
Author: mgoetze-guest
Date: 2010-07-08 11:46:46 +0000 (Thu, 08 Jul 2010)
New Revision: 5847
Added:
branches/experimental/patches/simple-examples_splitout_DEBIAN
Modified:
branches/experimental/patches/series
Log:
First attempt to use quilt.
Modified: branches/experimental/patches/series
===================================================================
--- branches/experimental/patches/series 2010-07-08 09:38:49 UTC (rev 5846)
+++ branches/experimental/patches/series 2010-07-08 11:46:46 UTC (rev 5847)
@@ -1,3 +1,4 @@
+simple-examples_splitout_DEBIAN -p0
setup-storage_exp-version
logtail
grub-pc
Added: branches/experimental/patches/simple-examples_splitout_DEBIAN
===================================================================
--- branches/experimental/patches/simple-examples_splitout_DEBIAN (rev 0)
+++ branches/experimental/patches/simple-examples_splitout_DEBIAN 2010-07-08 11:46:46 UTC (rev 5847)
@@ -0,0 +1,471 @@
+diff -urN -x .svn examples/simple/class/50-host-classes ../people/mgoetze/simple/class/50-host-classes
+--- examples/simple/class/50-host-classes 2010-07-03 11:43:02.000000000 +0200
++++ ../people/mgoetze/simple/class/50-host-classes 2010-07-04 11:51:04.000000000 +0200
+@@ -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
+diff -urN -x .svn examples/simple/debconf/DEBIAN ../people/mgoetze/simple/debconf/DEBIAN
+--- examples/simple/debconf/DEBIAN 1970-01-01 01:00:00.000000000 +0100
++++ ../people/mgoetze/simple/debconf/DEBIAN 2010-07-04 11:52:37.000000000 +0200
+@@ -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
+diff -urN -x .svn examples/simple/debconf/FAIBASE ../people/mgoetze/simple/debconf/FAIBASE
+--- examples/simple/debconf/FAIBASE 2010-07-03 11:43:01.000000000 +0200
++++ ../people/mgoetze/simple/debconf/FAIBASE 1970-01-01 01:00:00.000000000 +0100
+@@ -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
+diff -urN -x .svn examples/simple/debconf/XORG ../people/mgoetze/simple/debconf/XORG
+--- examples/simple/debconf/XORG 1970-01-01 01:00:00.000000000 +0100
++++ ../people/mgoetze/simple/debconf/XORG 2010-07-04 11:52:15.000000000 +0200
+@@ -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
++
+diff -urN -x .svn examples/simple/files/boot/grub/menu.lst/DEBIAN ../people/mgoetze/simple/files/boot/grub/menu.lst/DEBIAN
+--- examples/simple/files/boot/grub/menu.lst/DEBIAN 1970-01-01 01:00:00.000000000 +0100
++++ ../people/mgoetze/simple/files/boot/grub/menu.lst/DEBIAN 2010-07-04 11:55:17.000000000 +0200
+@@ -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
++
++
+diff -urN -x .svn examples/simple/files/boot/grub/menu.lst/GRUB ../people/mgoetze/simple/files/boot/grub/menu.lst/GRUB
+--- examples/simple/files/boot/grub/menu.lst/GRUB 2010-07-03 11:43:01.000000000 +0200
++++ ../people/mgoetze/simple/files/boot/grub/menu.lst/GRUB 1970-01-01 01:00:00.000000000 +0100
+@@ -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
+-
+-
+diff -urN -x .svn examples/simple/files/etc/kernel-img.conf/DEBIAN ../people/mgoetze/simple/files/etc/kernel-img.conf/DEBIAN
+--- examples/simple/files/etc/kernel-img.conf/DEBIAN 1970-01-01 01:00:00.000000000 +0100
++++ ../people/mgoetze/simple/files/etc/kernel-img.conf/DEBIAN 2010-07-04 11:55:42.000000000 +0200
+@@ -0,0 +1,5 @@
++do_symlinks = Yes
++do_initrd = Yes
++silent_modules=yes
++clobber_modules=yes
++do_boot_enable=no
+diff -urN -x .svn examples/simple/files/etc/kernel-img.conf/DEFAULT ../people/mgoetze/simple/files/etc/kernel-img.conf/DEFAULT
+--- examples/simple/files/etc/kernel-img.conf/DEFAULT 2010-07-03 11:43:02.000000000 +0200
++++ ../people/mgoetze/simple/files/etc/kernel-img.conf/DEFAULT 1970-01-01 01:00:00.000000000 +0100
+@@ -1,5 +0,0 @@
+-do_symlinks = Yes
+-do_initrd = Yes
+-silent_modules=yes
+-clobber_modules=yes
+-do_boot_enable=no
+diff -urN -x .svn examples/simple/hooks/instsoft.DEBIAN ../people/mgoetze/simple/hooks/instsoft.DEBIAN
+--- examples/simple/hooks/instsoft.DEBIAN 1970-01-01 01:00:00.000000000 +0100
++++ ../people/mgoetze/simple/hooks/instsoft.DEBIAN 2010-07-04 11:53:54.000000000 +0200
+@@ -0,0 +1,3 @@
++#! /bin/bash
++
++[ -s $target/etc/kernel-img.conf ] || fcopy -Bi /etc/kernel-img.conf
+diff -urN -x .svn examples/simple/hooks/instsoft.FAIBASE ../people/mgoetze/simple/hooks/instsoft.FAIBASE
+--- examples/simple/hooks/instsoft.FAIBASE 2010-07-03 11:43:02.000000000 +0200
++++ ../people/mgoetze/simple/hooks/instsoft.FAIBASE 1970-01-01 01:00:00.000000000 +0100
+@@ -1,3 +0,0 @@
+-#! /bin/bash
+-
+-[ -s $target/etc/kernel-img.conf ] || fcopy -Bi /etc/kernel-img.conf
+diff -urN -x .svn examples/simple/package_config/DEBIAN ../people/mgoetze/simple/package_config/DEBIAN
+--- examples/simple/package_config/DEBIAN 1970-01-01 01:00:00.000000000 +0100
++++ ../people/mgoetze/simple/package_config/DEBIAN 2010-07-04 11:56:07.000000000 +0200
+@@ -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-
+diff -urN -x .svn examples/simple/package_config/DEFAULT ../people/mgoetze/simple/package_config/DEFAULT
+--- examples/simple/package_config/DEFAULT 2010-07-03 11:43:01.000000000 +0200
++++ ../people/mgoetze/simple/package_config/DEFAULT 1970-01-01 01:00:00.000000000 +0100
+@@ -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-
+diff -urN -x .svn examples/simple/package_config/FAIBASE ../people/mgoetze/simple/package_config/FAIBASE
+--- examples/simple/package_config/FAIBASE 2010-07-03 11:43:01.000000000 +0200
++++ ../people/mgoetze/simple/package_config/FAIBASE 2010-07-04 11:56:32.000000000 +0200
+@@ -1,4 +1,4 @@
+-PACKAGES aptitude
++PACKAGES aptitude DEBIAN
+ fai-client
+ cfengine2
+ cron
+diff -urN -x .svn examples/simple/scripts/AMD64/99-discover-bug ../people/mgoetze/simple/scripts/AMD64/99-discover-bug
+--- examples/simple/scripts/AMD64/99-discover-bug 2010-07-03 11:43:02.000000000 +0200
++++ ../people/mgoetze/simple/scripts/AMD64/99-discover-bug 1970-01-01 01:00:00.000000000 +0100
+@@ -1,14 +0,0 @@
+-#! /usr/sbin/cfagent -f
+-
+-# this is a workaround for bug #343338
+-
+-control:
+- any::
+- actionsequence = ( editfiles )
+- EditFileSize = ( 30000 )
+-
+-editfiles:
+- any::
+- { ${target}/etc/discover-modprobe.conf
+- ReplaceAll "^types=.*" With "types="
+- }
+diff -urN -x .svn examples/simple/scripts/DEBIAN/10-keymap ../people/mgoetze/simple/scripts/DEBIAN/10-keymap
+--- examples/simple/scripts/DEBIAN/10-keymap 1970-01-01 01:00:00.000000000 +0100
++++ ../people/mgoetze/simple/scripts/DEBIAN/10-keymap 2010-07-04 12:00:59.000000000 +0200
+@@ -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
++
+diff -urN -x .svn examples/simple/scripts/DEBIAN/10-rootpw ../people/mgoetze/simple/scripts/DEBIAN/10-rootpw
+--- examples/simple/scripts/DEBIAN/10-rootpw 1970-01-01 01:00:00.000000000 +0100
++++ ../people/mgoetze/simple/scripts/DEBIAN/10-rootpw 2010-07-04 12:00:59.000000000 +0200
+@@ -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
++
+diff -urN -x .svn examples/simple/scripts/DEBIAN/30-interface ../people/mgoetze/simple/scripts/DEBIAN/30-interface
+--- examples/simple/scripts/DEBIAN/30-interface 1970-01-01 01:00:00.000000000 +0100
++++ ../people/mgoetze/simple/scripts/DEBIAN/30-interface 2010-07-04 11:59:37.000000000 +0200
+@@ -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
+diff -urN -x .svn examples/simple/scripts/DEBIAN/40-misc ../people/mgoetze/simple/scripts/DEBIAN/40-misc
+--- examples/simple/scripts/DEBIAN/40-misc 1970-01-01 01:00:00.000000000 +0100
++++ ../people/mgoetze/simple/scripts/DEBIAN/40-misc 2010-07-04 11:59:58.000000000 +0200
+@@ -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"
++ }
+diff -urN -x .svn examples/simple/scripts/FAIBASE/10-misc ../people/mgoetze/simple/scripts/FAIBASE/10-misc
+--- examples/simple/scripts/FAIBASE/10-misc 2010-07-03 11:43:02.000000000 +0200
++++ ../people/mgoetze/simple/scripts/FAIBASE/10-misc 2010-07-04 12:02:15.000000000 +0200
+@@ -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
+diff -urN -x .svn examples/simple/scripts/FAIBASE/30-interface ../people/mgoetze/simple/scripts/FAIBASE/30-interface
+--- examples/simple/scripts/FAIBASE/30-interface 2010-07-03 11:43:02.000000000 +0200
++++ ../people/mgoetze/simple/scripts/FAIBASE/30-interface 1970-01-01 01:00:00.000000000 +0100
+@@ -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
+diff -urN -x .svn examples/simple/scripts/FAIBASE/40-misc ../people/mgoetze/simple/scripts/FAIBASE/40-misc
+--- examples/simple/scripts/FAIBASE/40-misc 2010-07-03 11:43:02.000000000 +0200
++++ ../people/mgoetze/simple/scripts/FAIBASE/40-misc 1970-01-01 01:00:00.000000000 +0100
+@@ -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