generic-poky/meta
Chen Qi e6e44cf9c1 checkroot.sh: check for conflicting configurations
In our current boot scripts, two ways are used to determine whether
the rootfs is read-only or not. One by checking the READ_ONLY_ROOTFS
value in /etc/default/rcS, the other by checking the /etc/fstab entry.

>From a normal Linux user's point of view, the way of checking the
/etc/fstab entry is preferred. However, as there are several boot scripts
that need to know whether rootfs is read-only or not, checking /etc/fstab
in each script brings too much overhead. Thus, these boot scripts
use the READ_ONLY_ROOTFS value in /etc/default/rcS.

In normal use cases, there would be no problem, as both /etc/default/rcS and
the /etc/fstab are modified at rootfs time. However, if the user changes
the mount option for rootfs in /etc/fstab to read-write, and he/she forgets
to change the value in /etc/default/rcS, there would be unexpected results.
For example, the udev-cache would still be disabled.

So at a minimal, a check for conflicting configurations between /etc/fstab
and /etc/default/rcS should be added in checkroot.sh so that there would be
reasonable warnings if users have configured the system in a non-consistent
way.

[YOCTO #4880]

(From OE-Core rev: 1565a0c5a3f245703e280ca90cf11d3f9374788a)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-08-26 13:19:42 +01:00
..
classes SPDX:real-time license scanning and SPDX output. 2013-08-26 13:19:41 +01:00
conf SPDX:real-time license scanning and SPDX output. 2013-08-26 13:19:41 +01:00
files device_table-minimal.txt: use user/group names instead of uid/gid 2013-08-16 11:14:34 +01:00
lib lib/oeqa: change behaviour for unskippable tests 2013-08-26 11:47:21 +01:00
recipes-bsp init-install.sh: fix to handle the boot partition correctly 2013-08-20 15:31:25 +01:00
recipes-connectivity connman-gnome: fix DHCP segfault 2013-08-26 11:47:19 +01:00
recipes-core checkroot.sh: check for conflicting configurations 2013-08-26 13:19:42 +01:00
recipes-devtools python-2.7-manifest: Add missing python-ctypes dependency to python-multiprocessing 2013-08-26 12:15:49 +01:00
recipes-extended libpam: add PACKAGECONFIG data concerning audit 2013-08-26 11:47:19 +01:00
recipes-gnome gtk-engines: fix build with automake-1.13 2013-08-26 11:47:18 +01:00
recipes-graphics harfbuzz: upgrade to v0.9.19 2013-08-26 11:47:18 +01:00
recipes-kernel linux-yocto: introduce v3.10 2013-08-26 11:29:45 +01:00
recipes-lsb4 libpng12: rename libpng_1.2.50 to libpng12 2013-04-09 13:16:53 +01:00
recipes-multimedia pulseaudio: Fix up configure options and use gtk+3 2013-08-26 11:47:18 +01:00
recipes-qt qt4: add upstream QTBUG-32534 patch for QHttpMultiPart upload corruption 2013-08-06 12:39:58 +01:00
recipes-rt rt-tests: add Upstream-Status for cyclictest patch 2013-07-29 13:09:03 +01:00
recipes-sato rxvt-unicode: Check existence of acinclude.m4 2013-07-13 18:23:34 +01:00
recipes-support gpgme: update to 1.4.3 2013-08-26 11:47:17 +01:00
site apr_cv_mutex_recursive=yes added to apr_1.4.6.bb to make rosnodes work 2013-07-05 15:34:22 +01:00
COPYING.MIT
recipes.txt meta/recipes.txt: add recipes-lsb4 2013-04-10 09:23:17 +01:00