Skip to contentSkip to conversation

base-files: use /dev/root in /etc/fstab for systemd support

PATCH Superseded Jonathan Liu 1 participant 1 message Mar 19, 2014

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 meta/recipes-core/base-files/base-files/fstab | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/base-files/base-files/fstab +1 -1
index e625ebc..739b844 100644
@@ -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
Signature · 1 line
1.9.0