The '-c DEV' option is specific to the switch_root provided by busybox.
switch_root from util-linux doesn't recognize this option. As a result,
if we we this init-live.sh script together with util-linux, we would get
a kernel panic when executing switch_root.
Besides, this option doesn't seem to have any useful effect as far as I
can see. Removing it doesn't affect the behaviours of our live images.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
mount -n --move /dev ${ROOT_MOUNT}/dev
cd $ROOT_MOUNT
- exec switch_root -c /dev/console $ROOT_MOUNT /sbin/init
+ exec switch_root $ROOT_MOUNT /sbin/init
}
fatal() {