diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2013-01-06 17:02:45 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-02-06 09:37:27 +0000 |
commit | f7bb0a97f843f22971740a99e041a4f4905d0e0d (patch) | |
tree | 5dd4519bbbc0552256fc0a77901c44acb5972131 /meta | |
parent | ac2671a2cb37a4e616d2375948cbfeb418d0084f (diff) | |
download | poky-f7bb0a97f843f22971740a99e041a4f4905d0e0d.tar.gz |
sysvinit: add ROOTFS_READ_ONLY variable to rcS-default
This variable indicates whether the rootfs is intended to be read-only
or not. Changing this value from 'no' to 'yes' on a currently running
system with read-write rootfs and rebooting will give the user a working
system with read-only rootfs.
However, it is not suggested to change its value. Normally, if a read-only
rootfs is required, we should build an image with 'read-only-rootfs' image
feature.
[YOCTO #3406]
(From OE-Core rev: 0b4af5f3e6c92ae8194447b027202c1933f47dd9)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/sysvinit/sysvinit/rcS-default | 4 | ||||
-rw-r--r-- | meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-core/sysvinit/sysvinit/rcS-default b/meta/recipes-core/sysvinit/sysvinit/rcS-default index 3c9dea90c4..709cdf6ec5 100644 --- a/meta/recipes-core/sysvinit/sysvinit/rcS-default +++ b/meta/recipes-core/sysvinit/sysvinit/rcS-default | |||
@@ -23,3 +23,7 @@ FSCKFIX=yes | |||
23 | #TICKADJ=10000 | 23 | #TICKADJ=10000 |
24 | # Enable caching in populate-volatile.sh | 24 | # Enable caching in populate-volatile.sh |
25 | VOLATILE_ENABLE_CACHE=yes | 25 | VOLATILE_ENABLE_CACHE=yes |
26 | # Indicate whether the rootfs is intended to be read-only or not. | ||
27 | # Setting ROOTFS_READ_ONLY to yes and rebooting will give you a read-only rootfs. | ||
28 | # Normally you should not change this value. | ||
29 | ROOTFS_READ_ONLY=no | ||
diff --git a/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb b/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb index 39c97ac431..0a11139ec4 100644 --- a/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb +++ b/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb | |||
@@ -5,7 +5,7 @@ SECTION = "base" | |||
5 | LICENSE = "GPLv2+" | 5 | LICENSE = "GPLv2+" |
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \ | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \ |
7 | file://COPYRIGHT;endline=15;md5=349c872e0066155e1818b786938876a4" | 7 | file://COPYRIGHT;endline=15;md5=349c872e0066155e1818b786938876a4" |
8 | PR = "r9" | 8 | PR = "r10" |
9 | 9 | ||
10 | RDEPENDS_${PN} = "${PN}-inittab" | 10 | RDEPENDS_${PN} = "${PN}-inittab" |
11 | 11 | ||