From 998ab5a004be0e55ad424344fcc4c9f377d7ded7 Mon Sep 17 00:00:00 2001 From: Sebastian Schmelzer Date: Thu, 26 May 2011 12:32:38 +0200 Subject: fix #817 --- src/initramfs/scripts/init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/initramfs') diff --git a/src/initramfs/scripts/init b/src/initramfs/scripts/init index 80732f1a..d1bdebbc 100755 --- a/src/initramfs/scripts/init +++ b/src/initramfs/scripts/init @@ -733,7 +733,7 @@ if [ ${aufs} -eq 1 ]; then fi fi -if [ -z ${union_type} -a ${unionfs} -eq 1 ]; then +if [ -z ${union_type} ] && [ ${unionfs} -eq 1 ]; then unionfs_in_kernel=$(grep -c unionfs /proc/filesystems) if [ ${unionfs_in_kernel} -eq 0 ]; then modprobe ${MODPRV} unionfs 2>/dev/null -- cgit v1.2.3-55-g7522 From ac8dd5fe5207c26b4089c84386d856722df53ad2 Mon Sep 17 00:00:00 2001 From: Sebastian Schmelzer Date: Thu, 26 May 2011 14:08:02 +0200 Subject: fedora .. --- src/initramfs/distro-specs/fedora/functions-default | 19 +++++++++++-------- src/installer/OpenSLX/OSExport/Distro/Fedora.pm | 3 ++- src/installer/OpenSLX/OSSetup/Distro/Fedora.pm | 8 +++++++- 3 files changed, 20 insertions(+), 10 deletions(-) (limited to 'src/initramfs') diff --git a/src/initramfs/distro-specs/fedora/functions-default b/src/initramfs/distro-specs/fedora/functions-default index f9bb0f0e..3a4dc722 100644 --- a/src/initramfs/distro-specs/fedora/functions-default +++ b/src/initramfs/distro-specs/fedora/functions-default @@ -21,7 +21,7 @@ # TempFS usage # D_DIRINDXS - directories in client filesystem which should be present # anyhow -D_BINDMPTS="tmp root media home" +D_BINDMPTS="tmp root media home run" D_DIRINBINDMNT="/var/run /var/log /var/tmp" D_RODIRSINRW="/etc/bootsplash /etc/gconf /var/adm /var/lib/texmf /var/lib/rpm \ /var/cache/fontconfig" @@ -56,10 +56,10 @@ config_distro () { # initial (boot time) runlevel scripts initial_boot () { # delete all classical disk base rootfs stuff from rc.sysinit -sed -e "6i# Script modified by $0 during stage3 bootup." \ - -e "/# Initialize ha/,/success/d" -e "/^ROOTFSTYPE/,/Remounting root/d" \ - -e "/# Check f/,/Mounting l/d" -e "/^# Configure mach/,/-f \/fastboot/d" \ - -e "s,/sbin/start_udev$,/etc/init.d/udevd," -i /mnt/etc/rc.d/rc.sysinit +#sed -e "6i# Script modified by $0 during stage3 bootup." \ +# -e "/# Initialize ha/,/success/d" -e "/^ROOTFSTYPE/,/Remounting root/d" \ +# -e "/# Check f/,/Mounting l/d" -e "/^# Configure mach/,/-f \/fastboot/d" \ +# -e "s,/sbin/start_udev$,/etc/init.d/udevd," -i /mnt/etc/rc.d/rc.sysinit # write a custom udev script (to be checked!!) echo -e "#!/bin/sh\n# Simple udev starter script created as a replacement \ during OpenSLX stage3\n# bootup." >/mnt/etc/init.d/udevd @@ -69,9 +69,9 @@ echo -e ". /etc/init.d/functions\nSTRING=\$\"Starting udev: \" \ \nexit 0" >>/mnt/etc/init.d/udevd chmod u+x /mnt/etc/init.d/udevd # delete all classical disk base rootfs stuff from halt -sed -e "7i# Modified by $0 during stage3 bootup." \ - -e "/# Save mixer/,/Saving random/d" -e "/quotaoff/,/^# Now halt/d" \ - -i /mnt/etc/init.d/halt +#sed -e "7i# Modified by $0 during stage3 bootup." \ +# -e "/# Save mixer/,/Saving random/d" -e "/quotaoff/,/^# Now halt/d" \ +# -i /mnt/etc/init.d/halt # boot.slx is a special runlevel script generated within initialramfs which # should be executed before the normal runlevel scripts. echo -e "# Run OpenSLX init runlevel script\n/etc/init.d/boot.slx" \ @@ -84,6 +84,9 @@ ln -s ../init.d/killall /mnt/etc/rc.d/rc0.d/S00killall ln -s ../init.d/halt /mnt/etc/rc.d/rc0.d/S01halt ln -s ../init.d/killall /mnt/etc/rc.d/rc6.d/S00killall ln -s ../init.d/halt /mnt/etc/rc.d/rc6.d/S01reboot + +mount -t selinuxfs selinuxfs /mnt/selinux + } # linking runlevel scripts diff --git a/src/installer/OpenSLX/OSExport/Distro/Fedora.pm b/src/installer/OpenSLX/OSExport/Distro/Fedora.pm index 4c196bd1..80a45854 100644 --- a/src/installer/OpenSLX/OSExport/Distro/Fedora.pm +++ b/src/installer/OpenSLX/OSExport/Distro/Fedora.pm @@ -53,6 +53,7 @@ sub initDistroInfo - /proc/* - /mnt/* - /media/* + - /run/* - /lib/klibc/events/* - /boot/initrd* - /boot/grub @@ -62,4 +63,4 @@ sub initDistroInfo return; } -1; \ No newline at end of file +1; diff --git a/src/installer/OpenSLX/OSSetup/Distro/Fedora.pm b/src/installer/OpenSLX/OSSetup/Distro/Fedora.pm index 80480340..c1d54b7b 100644 --- a/src/installer/OpenSLX/OSSetup/Distro/Fedora.pm +++ b/src/installer/OpenSLX/OSSetup/Distro/Fedora.pm @@ -42,7 +42,13 @@ sub initialize '/etc/fstab', '/etc/mtab', ]; + $self->{'clone-filter'} = " + - /run/* + + /run + - /selinux/* + + /selinux $self->{'clone-filter'}"; + return; } -1; \ No newline at end of file +1; -- cgit v1.2.3-55-g7522 From de278c89c5401edc6dff2f3b6490453df08c806c Mon Sep 17 00:00:00 2001 From: Sebastian Schmelzer Date: Thu, 26 May 2011 15:00:02 +0200 Subject: add support for domain search lists to busybox udhc --- src/initramfs/rootfs/bin/busybox | Bin 418028 -> 420884 bytes 1 file changed, 0 insertions(+), 0 deletions(-) (limited to 'src/initramfs') diff --git a/src/initramfs/rootfs/bin/busybox b/src/initramfs/rootfs/bin/busybox index b7e8a82b..6f9dfe60 100755 Binary files a/src/initramfs/rootfs/bin/busybox and b/src/initramfs/rootfs/bin/busybox differ -- cgit v1.2.3-55-g7522