mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
image.bbclass: whitespace
Don't mix tabs and spaces (From OE-Core rev: 505a3a6a9a0c080bc5b7d16ed569b80b43869977) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
d3b221d183
commit
95fcc673e2
@@ -193,12 +193,12 @@ read_only_rootfs_hook () {
|
|||||||
sed -i -e '/^[#[:space:]]*\/dev\/root/{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
|
||||||
|
|
||||||
if ${@bb.utils.contains("DISTRO_FEATURES", "sysvinit", "true", "false", d)}; then
|
if ${@bb.utils.contains("DISTRO_FEATURES", "sysvinit", "true", "false", d)}; then
|
||||||
# Change the value of ROOTFS_READ_ONLY in /etc/default/rcS to yes
|
# Change the value of ROOTFS_READ_ONLY in /etc/default/rcS to yes
|
||||||
if [ -e ${IMAGE_ROOTFS}/etc/default/rcS ]; then
|
if [ -e ${IMAGE_ROOTFS}/etc/default/rcS ]; then
|
||||||
sed -i 's/ROOTFS_READ_ONLY=no/ROOTFS_READ_ONLY=yes/' ${IMAGE_ROOTFS}/etc/default/rcS
|
sed -i 's/ROOTFS_READ_ONLY=no/ROOTFS_READ_ONLY=yes/' ${IMAGE_ROOTFS}/etc/default/rcS
|
||||||
fi
|
fi
|
||||||
# Run populate-volatile.sh at rootfs time to set up basic files
|
# Run populate-volatile.sh at rootfs time to set up basic files
|
||||||
# and directories to support read-only rootfs.
|
# and directories to support read-only rootfs.
|
||||||
if [ -x ${IMAGE_ROOTFS}/etc/init.d/populate-volatile.sh ]; then
|
if [ -x ${IMAGE_ROOTFS}/etc/init.d/populate-volatile.sh ]; then
|
||||||
${IMAGE_ROOTFS}/etc/init.d/populate-volatile.sh
|
${IMAGE_ROOTFS}/etc/init.d/populate-volatile.sh
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user