agama/live/live-root/usr/lib/dracut/modules.d/95initrd-firstboot/module-setup.sh
Ladislav Slezák 742b93735f
Ignition/combustion fixes related to bsc#1268779
- Removed `ignition` from the installer image
- Do not start `combustion` by default, can be manually enabled
  with the `rd.systemd.wants=firstboot.target` boot option
2026-07-08 15:58:14 +02:00

27 lines
901 B
Bash

#!/bin/bash
# workaround for failing first boot detection in the Live ISO system
check() {
# always include this dracut module in the initramfs
return 0
}
depends() {
echo bash systemd
}
install() {
# Do not try detecting whether this is the first boot or not, consider every
# boot as the first boot. That's true for the installer, we always start with
# the same read-only root filesystem image from scratch.
#
# The problem is that the first boot detection fails because of the
# complicated Live ISO setup which uses the device mapper for creating
# writable overlay over the squashfs read-only image.
$SYSTEMCTL -q --root "$initdir" disable firstboot-detect.service
# do not enable ignition/combustion by default, they can be explicitly
# enabled with the "rd.systemd.wants=firstboot.target" boot option
$SYSTEMCTL -q --root "$initdir" disable firstboot.target
}