Skip to contentSkip to conversation

image.bbclass: replace rootfs with /dev/root

PATCH In review Chen Qi 2 participants 3 messages Mar 27, 2014 – Apr 11, 2014

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

cover image.bbclass: replace rootfs with /dev/root

The following changes since commit f0e1c22ee1cc581fbe8a56e707dcdb015d58fdb6:

local.conf.sample.extended: update it for the archiver (2014-03-26 12:15:00 +0000)

are available in the git repository at:

git://git.openembedded.org/openembedded-core-contrib ChenQi/rootfs-dev-root
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=ChenQi/rootfs-dev-root

Chen Qi (1):
image.bbclass: replace rootfs with /dev/root

 meta/classes/image.bbclass |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
1.7.9.5
author
#1 lore raw

PATCH 1/1 image.bbclass: replace rootfs with /dev/root

Replace 'rootfs' with '/dev/root' in read_only_rootfs_hook function to match the latest change in fstab file from the base-files recipe.

The related commit is as follows.

commit e8bc7a136a81a0d8df2d32dfba0920c1b2835141
base-files: use /dev/root in /etc/fstab for systemd support

---
 meta/classes/image.bbclass |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/image.bbclass +1 -1
index b0639ae..29309f5 100644
@@ -175,7 +175,7 @@ do_rootfs[umask] = "022"
 read_only_rootfs_hook () {
 	if ${@base_contains("DISTRO_FEATURES", "sysvinit", "true", "false", d)}; then
 	        # Tweak the mount option and fs_passno for rootfs in fstab
-		sed -i -e '/^[#[:space:]]*rootfs/{s/defaults/ro/;s/\([[:space:]]*[[:digit:]]\)\([[:space:]]*\)[[:digit:]]$/\1\20/}' ${IMAGE_ROOTFS}/etc/fstab
+		sed -i -e '/^[#[:space:]]*\/dev\/root/{s/defaults/ro/;s/\([[:space:]]*[[:digit:]]\)\([[:space:]]*\)[[:digit:]]$/\1\20/}' ${IMAGE_ROOTFS}/etc/fstab
 	        # Change the value of ROOTFS_READ_ONLY in /etc/default/rcS to yes
 		if [ -e ${IMAGE_ROOTFS}/etc/default/rcS ]; then
 			sed -i 's/ROOTFS_READ_ONLY=no/ROOTFS_READ_ONLY=yes/' ${IMAGE_ROOTFS}/etc/default/rcS
Signature · 1 line
1.7.9.5
#2 lore raw

Op 27 mrt. 2014, om 03:29 heeft Chen Qi <[email protected]> het volgende geschreven:

Quoted 7 lines

Replace 'rootfs' with '/dev/root' in read_only_rootfs_hook function to match the latest change in fstab file from the base-files recipe.

The related commit is as follows.

commit e8bc7a136a81a0d8df2d32dfba0920c1b2835141
base-files: use /dev/root in /etc/fstab for systemd support

That commit doesn't exist in OE-core, I think you mean c509f948d9c575c45af8c5ed1cb1692c0ca5dade

This change went in already, but with a broken commit message :(