Skip to content

Commit 7a48e86

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 7a48e86

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

systemd/bootloader-update.service

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

55
[Service]
66
Type=oneshot
7+
# It doesn't make sense to update bootloader in "Live" environments.
8+
# https://github.com/coreos/fedora-coreos-tracker/issues/2136
9+
ExecCondition=/bin/bash -c '[[ ! $(findmnt -n -o FSTYPE /sysroot) =~ ^(erofs|squashfs)$ ]]'
710
ExecStart=/usr/bin/bootupctl update
811
RemainAfterExit=yes
912
# Keep this stuff in sync with SYSTEMD_ARGS_BOOTUPD in general

0 commit comments

Comments
 (0)