Skip to content

Commit c230a9d

Browse files
overlay.d/05core: disable bootloader-update.service on live ISO
When running from live-iso `bootupctl` fails with: error: Querying adoptable state: creation time is not available for the filesystem That happens because ISO9660 doesn't support statx.stc_btime filed: $ 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 3d5a195 commit c230a9d

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
. /usr/lib/coreos/generator-lib.sh
6+
7+
if ! have_karg coreos.liveiso; then
8+
exit 0
9+
fi
10+
11+
# In Fedora 43 and CentOS Stream 9+, bootupd is enabled by default.
12+
# On the live ISO, it fails because ISO9660 doesn't support
13+
# statx.stx_btime. Disable the service there.
14+
# https://github.com/coreos/fedora-coreos-tracker/issues/2136
15+
mkdir -p "${UNIT_DIR}/bootloader-update.service.d"
16+
cat >"${UNIT_DIR}/bootloader-update.service.d/10-liveiso-disable.conf" <<EOF
17+
[Unit]
18+
ConditionKernelCommandLine=!coreos.liveiso
19+
EOF

0 commit comments

Comments
 (0)