[oe-commits] Jonathan Liu : base-files: use /dev/root in /etc/fstab for systemd support
git at git.openembedded.org
git at git.openembedded.org
Fri Mar 21 11:58:40 UTC 2014
Module: openembedded-core.git
Branch: master
Commit: c509f948d9c575c45af8c5ed1cb1692c0ca5dade
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=c509f948d9c575c45af8c5ed1cb1692c0ca5dade
Author: Jonathan Liu <net147 at gmail.com>
Date: Thu Mar 20 10:05:04 2014 +1100
base-files: use /dev/root in /etc/fstab for systemd support
systemd does not recognize "rootfs" in /etc/fstab so the root
filesystem is not checked. As a result, the following message
is logged by journalctl:
systemd-fstab-generator[68]: Checking was requested for "rootfs", but it
is not a device
Changing "rootfs" to "/dev/root" in /etc/fstab allows systemd to
check the root filesystem when the kernel is booted with the root
filesystem mounted read-only.
[YOCTO #5950]
Signed-off-by: Jonathan Liu <net147 at gmail.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/recipes-core/base-files/base-files/fstab | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-core/base-files/base-files/fstab b/meta/recipes-core/base-files/base-files/fstab
index e625ebc..739b844 100644
--- a/meta/recipes-core/base-files/base-files/fstab
+++ b/meta/recipes-core/base-files/base-files/fstab
@@ -1,6 +1,6 @@
# stock fstab - you probably want to override this with a machine specific one
-rootfs / auto defaults 1 1
+/dev/root / auto defaults 1 1
proc /proc proc defaults 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
usbdevfs /proc/bus/usb usbdevfs noauto 0 0
More information about the Openembedded-commits
mailing list