base-files: remove dead code
/etc/init.d/boot tried to create /dev/root based on the kernel's cmdline which won't work on any recent targets. Remove that code now that fstools can detect the mounted rootfs based on /proc/self/mountinfo and /dev/root was long gone anyway. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
parent
2180b715c1
commit
877168993a
1 changed files with 0 additions and 6 deletions
|
@ -52,10 +52,4 @@ boot() {
|
|||
|
||||
# temporary hack until configd exists
|
||||
/sbin/reload_config
|
||||
|
||||
# create /dev/root if it doesn't exist
|
||||
[ -e /dev/root -o -h /dev/root ] || {
|
||||
rootdev=$(awk 'BEGIN { RS=" "; FS="="; } $1 == "root" { print $2 }' < /proc/cmdline)
|
||||
[ -n "$rootdev" ] && ln -s "$rootdev" /dev/root
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue