base-files: update fstab
authorPatrick Ohly <patrick.ohly@intel.com>
Tue, 3 Feb 2015 13:48:07 +0000 (05:48 -0800)
committerPatrick Ohly <patrick.ohly@intel.com>
Tue, 3 Feb 2015 15:22:48 +0000 (07:22 -0800)
The "tizen_fstab" was the same as the original OE fstab; installing
it instead of the original file is pointless.

But we *do* need to modify the original fstab to solve one issue:
systemd-fsck-root.service looks at the file system entry and runs
"fsck.auto" if we keep OE's "auto" entry.

This does not prevent booting, only the file system checking part
of it.

To replace the original file, we use the same name because then
the modified file will be used even when we revert the do_install
override.

meta-tizen-adaptation/meta/recipes-core/base-files/base-files/fstab [moved from meta-tizen-adaptation/meta/recipes-core/base-files/base-files/tizen_fstab with 70% similarity]
meta-tizen-adaptation/meta/recipes-core/base-files/base-files_3.0.14.bbappend

@@ -1,6 +1,9 @@
-# stock fstab - you probably want to override this with a machine specific one
+# Tizen fstab
+
+# We have to use "ext4" instead of "auto" because otherwise systemd tries
+# to invoke fsck.auto, which does not exist.
+/dev/root            /                    ext4       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
 tmpfs                /dev/shm             tmpfs      defaults              0  0
index 56b082d..1d916c6 100644 (file)
@@ -1,8 +1,5 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/base-files:"
 
-SRC_URI += " file://tizen_fstab \
-           "
-
 volatiles = "tmp"
 dirs1777 = "/tmp"
 
@@ -39,7 +36,7 @@ do_install () {
                install -m 0644 ${WORKDIR}/rotation ${D}${sysconfdir}/rotation
        fi
 
-       install -m 0644 ${WORKDIR}/tizen_fstab ${D}${sysconfdir}/fstab
+       install -m 0644 ${WORKDIR}/fstab ${D}${sysconfdir}/fstab
        install -m 0644 ${WORKDIR}/filesystems ${D}${sysconfdir}/filesystems
        install -m 0644 ${WORKDIR}/usbd ${D}${sysconfdir}/default/usbd
        install -m 0644 ${WORKDIR}/profile ${D}${sysconfdir}/profile