prerun: modified prerun script 00/52400/1
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Tue, 23 Jun 2015 14:05:53 +0000 (23:05 +0900)
committerSooyoung Ha <yoosah.ha@samsung.com>
Mon, 23 Nov 2015 07:23:49 +0000 (16:23 +0900)
Basic binutils are prepared by prerun script.

Change-Id: Id55d82c40a83e1ed64a71bacff7fb2ef22d8d768
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
(cherry picked from commit 98c695698a56f7327553743f475da69aa0740b87)

filesystem/etc/emulator/prerun
filesystem/etc/emulator/prerun.d/model-config.sh

index c46dfc14bb10ae09c74a43b6eb9d9cacff599745..77333f152b60f6137c42668049ce8a9d693659d2 100644 (file)
@@ -2,6 +2,15 @@
 
 if [ ! -z $1 ]; then
         NEW_ROOT=$1
+        # if NEW_ROOT is passed, it executed by initramfs.
+        # So, we should prepare some core utils.
+        /bin/busybox ln -sf /bin/busybox /bin/ln
+        ln -sf /bin/busybox /bin/sed
+        ln -sf /bin/busybox /bin/grep
+        ln -sf /bin/busybox /bin/cut
+        ln -sf /bin/busybox /bin/tr
+        ln -sf /bin/busybox /bin/expr
+        ln -sf /bin/busybox /bin/readlink
 else
         NEW_ROOT=
 fi
index ebcd3922acea3fefc6380c271296c2d4b6f36195..5235d3c79f79be7722c412ba162af305da91a8d7 100644 (file)
@@ -1,18 +1,10 @@
 if [ ! -z $1 ]; then
         NEW_ROOT=$1
-        # if NEW_ROOT is passed, it executed by initramfs.
-        # So, we should prepare some core utils.
-        /bin/busybox ln -sf /bin/busybox /bin/ln
-        ln -sf /bin/busybox /bin/sed
-        ln -sf /bin/busybox /bin/grep
-        ln -sf /bin/busybox /bin/cut
-        ln -sf /bin/busybox /bin/tr
-        ln -sf /bin/busybox /bin/expr
-        ln -sf /bin/busybox /bin/readlink
 else
         NEW_ROOT=
 fi
 
+
 CMDLINE=/proc/cmdline
 XML=$(readlink -f $NEW_ROOT/etc/config/model-config.xml)