summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authormaximilian attems <max@stro.at>2007-11-28 19:45:02 +0100
committermaximilian attems <max@stro.at>2007-11-28 19:45:02 +0100
commitbcb1a3ef0c165bb80838415ea484babe10081dc1 (patch)
tree414b5f8629b5ec77ecb5764417c18606fefd2b02 /init
parent3e65988cf97c7d9a07970dd87595d315ee47df7f (diff)
downloadinitramfs-tools-bcb1a3ef0c165bb80838415ea484babe10081dc1.tar.gz
initramfs-tools-bcb1a3ef0c165bb80838415ea484babe10081dc1.zip
init: Don't overwrite boot cmdline arg (closes: #453294)
root nfs needs to check that the boot is not set before setting it. Thanks Thomas Lange <lange@informatik.uni-koeln.de> for report!
Diffstat (limited to 'init')
-rwxr-xr-xinit2
1 files changed, 1 insertions, 1 deletions
diff --git a/init b/init
index 52e3f45..607d2c7 100755
--- a/init
+++ b/init
@@ -67,7 +67,7 @@ for x in $(cat /proc/cmdline); do
ROOT="/dev/disk/by-uuid/${ROOT#UUID=}"
;;
/dev/nfs)
- BOOT=nfs
+ [ -z "${BOOT}" ] && BOOT=nfs
;;
esac
;;