aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2016-08-02 15:38:46 +0200
committerFelix Fietkau <nbd@nbd.name>2016-08-04 18:19:46 +0200
commit877168993a654027acc72c76c8a9d81473520fdb (patch)
tree3081ed9beb41b69dd6495283799f4c69e86db520 /package/base-files/files/etc
parent2180b715c1dcef30cb8e734c42b7e24f5f6555e5 (diff)
downloadupstream-877168993a654027acc72c76c8a9d81473520fdb.tar.gz
upstream-877168993a654027acc72c76c8a9d81473520fdb.tar.bz2
upstream-877168993a654027acc72c76c8a9d81473520fdb.zip
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>
Diffstat (limited to 'package/base-files/files/etc')
-rwxr-xr-xpackage/base-files/files/etc/init.d/boot6
1 files changed, 0 insertions, 6 deletions
diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot
index ccd0afe30d..4a2010ce89 100755
--- a/package/base-files/files/etc/init.d/boot
+++ b/package/base-files/files/etc/init.d/boot
@@ -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
- }
}