mirror of
https://github.com/dracutdevs/dracut.git
synced 2024-10-27 00:55:34 +03:00
[PATCH 03/50] Use getarg to get the root kernel commandline parameter.
This commit is contained in:
parent
047891955e
commit
9f99d479b3
9
init
9
init
@ -58,13 +58,8 @@ NEWROOT="/sysroot"
|
||||
# FIXME: there's got to be a better way ...
|
||||
# it'd be nice if we had a udev rule that just did all of the bits for
|
||||
# figuring out what the specified root is and linking it /dev/root
|
||||
for o in `cat /proc/cmdline` ; do
|
||||
case $o in
|
||||
root=*)
|
||||
root=${o#root=}
|
||||
;;
|
||||
esac
|
||||
done
|
||||
root=$(getarg 'root=*'); root=${root#root=}
|
||||
|
||||
echo -n "Going to mount rootfs ($root)"
|
||||
if [ -z "$root" ]; then
|
||||
echo "Warning: no root specified"
|
||||
|
Loading…
Reference in New Issue
Block a user