Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit 07b12fc

Browse files
committed
refkit-image.bbclass: remove /etc/fstab
There's nothing special in our fstab and because we already mount the rootfs read/write, we can remove it entirely. This relies on distro settings and thus cannot go into the more generic stateless.inc. Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
1 parent 3fa040c commit 07b12fc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

meta-refkit-core/classes/refkit-image.bbclass

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,10 @@ DEPENDS += "${@ 'attr-native' if '${REFKIT_IMAGE_STRIP_SMACK}' else '' }"
357357
# made due to filesystem metadata time stamps being in future.
358358
APPEND_append = " fsck.mode=skip"
359359

360+
# Because our rootfs gets mounted rw by the initramfs (the default)
361+
# and we don't have anything special in /etc/fstab, we can remove it.
362+
STATELESS_RM_ROOTFS += "fstab"
363+
360364
# Ensure that images preserve Smack labels and IMA/EVM.
361365
inherit ${@bb.utils.contains_any('IMAGE_FEATURES', ['ima','smack'], 'xattr-images', '', d)}
362366

0 commit comments

Comments
 (0)