Skip to contentSkip to conversation

init-live.sh: remove the '-c /dev/console' for switch_root

PATCH New [email protected] 1 participant 2 messages Dec 5, 2013

lore
Share & tools
lore
#0 lore raw

cover init-live.sh: remove the '-c /dev/console' for switch_root

From: Chen Qi <[email protected]>

The following changes since commit c51730aaa91066cfb51ad6ec2920fb4f9d9ea94c:

bitbake: Hob: check if warnings are related to package build (2013-12-03 17:45:54 +0000)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib ChenQi/initramfs-switch_root
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/initramfs-switch_root

Chen Qi (1):
init-live.sh: remove the '-c /dev/console' for switch_root

 meta/recipes-core/initrdscripts/files/init-live.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 init-live.sh: remove the '-c /dev/console' for switch_root

From: Chen Qi <[email protected]>

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.

---
 meta/recipes-core/initrdscripts/files/init-live.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/initrdscripts/files/init-live.sh +1 -1
index 3f5fde8..bd259b9 100644
@@ -89,7 +89,7 @@ boot_live_root() {
     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() {
Signature · 1 line
1.7.9.5