X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=init;h=ee4816b621db1c71703b08d4104a5b4d46eecf76;hb=feb573c635143d4768bcd134ef1f41fb667e05c8;hp=6b218337e1084ab543108b72681d5cbdf041d65a;hpb=969fe2a106b2188ec586cfd6f212e6d72fe0a16a;p=max%2Finitramfs.git diff --git a/init b/init index 6b21833..ee4816b 100755 --- a/init +++ b/init @@ -6,13 +6,11 @@ rescue_shell() { exec /bin/sh } -rescue_shell - # Mount filesystems /bin/busybox mount -t devtmpfs none /dev || rescue_shell /bin/busybox mount -t proc none /proc || rescue_shell /bin/busybox mount -t sysfs none /sys || rescue_shell -/bin/busybox echo 0 > /proc/sys/kernel/printk +#/bin/busybox echo 0 > /proc/sys/kernel/printk || rescue_shell # Unlock luks device /sbin/cryptsetup -T 5 luksOpen /dev/sdb3 lukssdb3 || rescue_shell @@ -28,7 +26,7 @@ rescue_shell /bin/busybox mount -o ro /dev/main/root /mnt/root || rescue_shell # Unmount filesystems -/bin/busybox unmount /dev +/bin/busybox umount /dev || rescue_shell # Boot system -exec switch_root /mnt/root /sbin/init +exec /bin/busybox switch_root /mnt/root /sbin/init || rescue_shell