diff options
Diffstat (limited to 'initramfs')
| -rw-r--r-- | initramfs/distro-specs/ubuntu/functions-6.10 | 5 | ||||
| -rwxr-xr-x | initramfs/initrd-stuff/bin/hwautocfg | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/initramfs/distro-specs/ubuntu/functions-6.10 b/initramfs/distro-specs/ubuntu/functions-6.10 index 2943e885..c72878bf 100644 --- a/initramfs/distro-specs/ubuntu/functions-6.10 +++ b/initramfs/distro-specs/ubuntu/functions-6.10 @@ -28,12 +28,13 @@ config_distro () { # add the halt link to the 0 and 6 runlevel directories ln -sf ../init.d/halt /mnt/etc/rc0.d/S90halt ln -sf ../init.d/reboot /mnt/etc/rc6.d/S90reboot + sed -i '/halt.*-i/s/ -i / /' /mnt/etc/init.d/halt # set default runlevel # how that is done for upstart?? # needed lateron (by hwsetup? - fixme, check if already copied by # mkdxsinitrd!! If busybox is installed use tool directly ...) - /mnt/bin/mknod /dev/zero c 1 5 - /mnt/bin/mknod /dev/mem c 1 1 + [ -e /dev/zero ] || /mnt/bin/mknod /dev/zero c 1 5 + [ -e /dev/mem ] || /mnt/bin/mknod /dev/mem c 1 1 } # udev/hotplug - auto device discovery service diff --git a/initramfs/initrd-stuff/bin/hwautocfg b/initramfs/initrd-stuff/bin/hwautocfg index 127f3e22..4dae8810 100755 --- a/initramfs/initrd-stuff/bin/hwautocfg +++ b/initramfs/initrd-stuff/bin/hwautocfg @@ -359,7 +359,7 @@ if strinfile "SCSI" /tmp/hwsetup.info ; then modprobe ${MODPRV} sg; # just for compatibility to hwsetup (which generates links to scd*) ( waitfor /dev/sr0 1000 && for i in /dev/sr* ; do - ln -s $i /dev/scd${i#/dev/sr} ; done; ) & + [ -e /dev/scd${i#/dev/sr} ] || ln -s $i /dev/scd${i#/dev/sr} ; done; ) & } strinfile "HD" /tmp/hwsetup.info && { modprobe ${MODPRV} sd_mod |
