Basic binutils are prepared by prerun script.
Change-Id: Id55d82c40a83e1ed64a71bacff7fb2ef22d8d768
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
(cherry picked from commit
98c695698a56f7327553743f475da69aa0740b87)
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
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)