Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] init-live.sh: remove the '-c /dev/console' for switch_root
@ 2013-12-05  9:11 Qi.Chen
  2013-12-05  9:11 ` [PATCH 1/1] " Qi.Chen
  0 siblings, 1 reply; 2+ messages in thread
From: Qi.Chen @ 2013-12-05  9:11 UTC (permalink / raw)
  To: openembedded-core

From: Chen Qi <Qi.Chen@windriver.com>

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(-)

-- 
1.7.9.5



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 1/1] init-live.sh: remove the '-c /dev/console' for switch_root
  2013-12-05  9:11 [PATCH 0/1] init-live.sh: remove the '-c /dev/console' for switch_root Qi.Chen
@ 2013-12-05  9:11 ` Qi.Chen
  0 siblings, 0 replies; 2+ messages in thread
From: Qi.Chen @ 2013-12-05  9:11 UTC (permalink / raw)
  To: openembedded-core

From: Chen Qi <Qi.Chen@windriver.com>

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>
---
 meta/recipes-core/initrdscripts/files/init-live.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/initrdscripts/files/init-live.sh b/meta/recipes-core/initrdscripts/files/init-live.sh
index 3f5fde8..bd259b9 100644
--- a/meta/recipes-core/initrdscripts/files/init-live.sh
+++ b/meta/recipes-core/initrdscripts/files/init-live.sh
@@ -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() {
-- 
1.7.9.5



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-12-05  9:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-05  9:11 [PATCH 0/1] init-live.sh: remove the '-c /dev/console' for switch_root Qi.Chen
2013-12-05  9:11 ` [PATCH 1/1] " Qi.Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox