Skip to content

Commit e222e13

Browse files
committed
overlay/coreos-boot-mount-generator: Be compatible with bcvk ephemeral
See bootc-dev/bcvk#101 This also is needed to eventually make FCOS work with `bcvk to-disk`. Signed-off-by: Colin Walters <walters@verbum.org>
1 parent f0f8e9e commit e222e13

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

overlay.d/05core/usr/lib/systemd/system-generators/coreos-boot-mount-generator

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ if [ -f /run/ostree-live ]; then
2424
exit 0
2525
fi
2626

27+
# Don't create mount units for /boot in bcvk ephemeral environments
28+
# where there are no block devices by default.
29+
rootfstype=$(karg rootfstype)
30+
if [ "${rootfstype}" = "virtiofs" ]; then
31+
exit 0
32+
fi
33+
2734
add_wants() {
2835
local name="$1"; shift
2936
local wants_dir="${UNIT_DIR}/local-fs.target.wants"

0 commit comments

Comments
 (0)