Skip to content

Commit a1c0112

Browse files
Disable systemd service on CoreOS live filesystems
When running from live-iso `bootupctl` fails with: error: Querying adoptable state: creation time is not available for the filesystem That happens because filesystem (erofs|squashfs) doesn't support statx.stc_btime field: $ stat /sysroot/.coreos-aleph-version.json Access: 2022-08-01 23:42:11.000000000 +0000 Modify: 2022-08-01 23:42:11.000000000 +0000 Change: 2022-08-01 23:42:11.000000000 +0000 Birth: -
1 parent b483a63 commit a1c0112

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

systemd/bootloader-update.service

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ Documentation=https://github.com/coreos/bootupd
44

55
[Service]
66
Type=oneshot
7+
# bootupd is enabled by default in CoreOS (F43+ / CentOS9+).
8+
# On live ISOs, it fails to read metadata from
9+
# "sysroot/.coreos-aleph-version.json" because the filesystem
10+
# does not support statx.stx_btime.
11+
# https://github.com/coreos/fedora-coreos-tracker/issues/2136
12+
ExecCondition=/bin/bash -c '[[ ! $(findmnt -n -o FSTYPE /sysroot) =~ ^(erofs|squashfs)$ ]]'
713
ExecStart=/usr/bin/bootupctl update
814
RemainAfterExit=yes
915
# Keep this stuff in sync with SYSTEMD_ARGS_BOOTUPD in general

0 commit comments

Comments
 (0)