summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2008-12-19 18:44:34 +0100
committermaximilian attems <maks@debian.org>2008-12-19 18:46:43 +0100
commit90ad6ff31f66112e863ea86c9960b9770a0a245e (patch)
tree3d1e5f9af27014d4ec8b2e79d986e721728a0956
parentc5e4c28ef9e1b205a8a69c5c663ab00a1dfc97f3 (diff)
downloadinitramfs-tools-90ad6ff31f66112e863ea86c9960b9770a0a245e.tar.gz
initramfs-tools-90ad6ff31f66112e863ea86c9960b9770a0a245e.zip
init: Try to use old style sda1 if no root cmldine got specified.
with bad luck that might still be on hda1, but then you get a warning about missing root boot param.
-rwxr-xr-xinit4
1 files changed, 4 insertions, 0 deletions
diff --git a/init b/init
index 102eda2..69cbeed 100755
--- a/init
+++ b/init
@@ -70,6 +70,10 @@ for x in $(cat /proc/cmdline); do
/dev/nfs)
[ -z "${BOOT}" ] && BOOT=nfs
;;
+ "")
+ ROOT="/dev/sda1"
+ log_warning_msg "No root specified - trying /dev/sda1."
+ ;;
esac
;;
rootflags=*)