]> code.ossystems Code Review - openembedded-core.git/commit
initrdscripts: fix init-live.sh and use unionfs
authorYang Shi <yang.shi@windriver.com>
Wed, 11 Apr 2012 01:33:43 +0000 (18:33 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 11 Apr 2012 11:15:16 +0000 (12:15 +0100)
commitb7f4e8d153c2aebbcf6556e7e926f6b94801d6aa
tree4801fa9d3224c59b555d2a0dd31d68ad4afc89ee
parentbcaea8ec9c9c333f76b368225f60d4fb54c1c7b2
initrdscripts: fix init-live.sh and use unionfs

[YOCTO #1487]

When booting up with liveCD image, init scripts can't work well on read-only filesystem. Unionfs,
which is supported in Yocto kernel, allows a filesystem to appear as writeable, but without
actually allowing writes to change the filesystem.

Use unionfs to mount rootfs and make root file system can be writen when using liveCD to boot up.
Set UNION_FS variable depending on kernel config, so that it can work with kernel which doesn't
have unionfs feature.

[RP: Mark recipe as machine specific due to kernel dependency]
Signed-off-by: Yang Shi <yang.shi@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/initrdscripts/files/init-live.sh
meta/recipes-core/initrdscripts/initramfs-live-boot_1.0.bb