]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
Call awk via busybox just like other commands are called.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 3 Mar 2011 18:20:46 +0000 (18:20 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 3 Mar 2011 18:20:46 +0000 (18:20 +0000)
svn-id: @12183

geninitrd

index 44ccbe025c979f0a37498f6f248532d25f958d37..294b496d1312073e24c4a28a1e3a74b4f2ee3758 100755 (executable)
--- a/geninitrd
+++ b/geninitrd
@@ -709,7 +709,7 @@ initrd_gen_setrootdev() {
                        rootnr="$(busybox awk -v rootnode="${ROOT##/dev/}" '$4 == rootnode { print 256 * $1 + $2 }' /proc/partitions)"
                        # fallback to ls
                        if [ -z "$rootnr" ]; then
-                               rootnr="$(busybox ls -lL ${ROOT} | awk '{if (/^b/) { print 256 * $3 + $4; }}')"
+                               rootnr="$(busybox ls -lL ${ROOT} | busybox awk '{if (/^b/) { print 256 * $3 + $4; }}')"
                        fi
                        if [ -n "$rootnr" ]; then
                                echo "$rootnr" > /proc/sys/kernel/real-root-dev
This page took 0.03293 seconds and 4 git commands to generate.