[source] base-files: remove dead code
LEDE Commits
lede-commits at lists.infradead.org
Thu Aug 4 09:19:52 PDT 2016
nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/?p=source.git;a=commitdiff;h=877168993a654027acc72c76c8a9d81473520fdb
commit 877168993a654027acc72c76c8a9d81473520fdb
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Tue Aug 2 15:38:46 2016 +0200
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 at makrotopia.org>
---
package/base-files/files/etc/init.d/boot | 6 ------
1 file changed, 6 deletions(-)
diff --git a/package/base-files/files/etc/init.d/boot b/package/base-files/files/etc/init.d/boot
index ccd0afe..4a2010c 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
- }
}
More information about the lede-commits
mailing list