generic-poky/meta/recipes-core
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
..
base-files base-files: remove the unnecessary /media/xxx directories 2013-07-02 22:23:48 +01:00
base-passwd base-passwd: Add input group 2013-04-04 14:04:41 +01:00
busybox busybox: enable shared memory logging for systemd 2013-08-26 11:47:19 +01:00
console-tools console-tools: fix linking when using the multilib compiler 2013-02-04 16:42:48 +00:00
coreutils coreutils: allow for acl support 2013-08-20 15:31:25 +01:00
dbus dbus: add init.d/dbus-1 status command for LSB compliance 2013-08-26 11:47:17 +01:00
dbus-wait dbus-wait: Upgrade to fix typo 2013-06-17 11:57:59 +01:00
dropbear dropbear: a fix for hang in dropbearkey, built for x32 2013-05-24 14:14:49 +01:00
eglibc eglibc: fix directory cleanup for 2.17 2013-08-26 13:19:41 +01:00
expat expat: update to upstream version 2.1.0 2012-05-16 07:34:28 +01:00
feed-config opkg-config-base/poky-feed-config-opkg: Always use ALL_MULTILIB_PACKAGE_ARCHS to build arch list 2012-04-16 12:52:10 +01:00
gettext gettext: update to upstream version 0.18.3 2013-08-20 15:31:25 +01:00
glib-2.0 glib-2.0: Specify libiconv when building on uclibc 2013-08-26 11:47:16 +01:00
glib-networking glib-networking: update to 2.36.2 2013-05-24 14:14:40 +01:00
images build-appliance-image: upgrade to ac60aa8cf7 commit. 2013-08-12 13:09:53 +01:00
init-ifupdown init-ifupdown: set kernel parameters firstly 2013-07-05 15:34:21 +01:00
initrdscripts init-install.sh: fix to handle the boot partition correctly 2013-08-20 15:31:25 +01:00
initscripts checkroot.sh: check for conflicting configurations 2013-08-26 13:19:42 +01:00
jpeg recipes-core: replace virtclass-native(sdk) with class-native(sdk) 2012-11-02 16:18:27 +00:00
kbd kbd: cleanup update-alternatives deprecated code 2012-08-15 14:26:27 +01:00
libcgroup libcgroup: add SUMMARY and better DESCRIPTION 2013-04-29 14:45:04 +01:00
libxml Upstream-Status: Correct capitalization 2013-07-18 21:23:43 +01:00
meta buildtools-tarball: do not export OECORE_NATIVE_SYSROOT 2013-08-06 12:39:53 +01:00
ncurses ncurses: add xterm-256color to terminfo-base 2013-07-13 18:23:38 +01:00
netbase netbase: upgrade to 5.1 2013-05-02 17:41:54 +01:00
packagegroups packagegroup-self-hosted: pcmanfm and xdg-utils integration 2013-08-23 16:20:14 +01:00
psplash Sync with PRINC removal from meta-intel 2013-06-24 14:58:35 +01:00
readline readline: fix importing readline in python with probably escape sequence output 2013-07-29 13:09:01 +01:00
sysfsutils sysfsutils: Fix case where ${B} != ${S} 2013-03-18 13:18:24 +00:00
systemd systemd: remove unneeded modprobe.rules 2013-07-24 11:35:33 +01:00
sysvinit sysvinit: add init.d/bootlogd status command for LSB compliance 2013-08-26 11:47:17 +01:00
uclibc uclibc: Upgrade to latest on git 2013-08-20 15:31:23 +01:00
udev udev: remove implicit dependency on initscripts 2013-08-16 11:14:35 +01:00
update-rc.d update-rc.d: fix failure on target 2013-01-17 20:16:46 +00:00
util-linux util-linux: upgrade to 2.23.2 2013-08-06 12:40:00 +01:00
zlib zlib: update to upstream version 1.2.8 2013-06-07 16:48:29 +01:00