Skip to content

Commit 02a2a87

Browse files
authored
Merge pull request #1088 from nikita-dubrovskii/issue-2136
Disable systemd service on CoreOS live filesystems
2 parents 8c4afff + 7a48e86 commit 02a2a87

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)