diff --git a/overlay.d/05core/usr/lib/dracut/modules.d/35coreos-ignition/coreos-boot-edit.sh b/overlay.d/05core/usr/lib/dracut/modules.d/35coreos-ignition/coreos-boot-edit.sh index cf2e9c3c3e..ecd758a675 100755 --- a/overlay.d/05core/usr/lib/dracut/modules.d/35coreos-ignition/coreos-boot-edit.sh +++ b/overlay.d/05core/usr/lib/dracut/modules.d/35coreos-ignition/coreos-boot-edit.sh @@ -32,6 +32,7 @@ rm -vrf ${initramfs_firstboot_network_dir} root=$(karg root) if [ -z "${root}" ]; then rdcore rootmap /sysroot --boot-mount ${bootmnt} + echo "Prepared rootmap" fi # This does a few things: diff --git a/overlay.d/05core/usr/lib/dracut/modules.d/40ignition-ostree/coreos-check-rootfs-size b/overlay.d/05core/usr/lib/dracut/modules.d/40ignition-ostree/coreos-check-rootfs-size index 2c320bed93..d0b38d9bfd 100755 --- a/overlay.d/05core/usr/lib/dracut/modules.d/40ignition-ostree/coreos-check-rootfs-size +++ b/overlay.d/05core/usr/lib/dracut/modules.d/40ignition-ostree/coreos-check-rootfs-size @@ -4,7 +4,8 @@ set -euo pipefail # See also ignition-ostree-check-rootfs-size.service # https://github.com/coreos/fedora-coreos-tracker/issues/586#issuecomment-777220000 -srcdev=$(findmnt -nvr -o SOURCE /sysroot | tail -n1) +# /sysroot is the mounted deploy root, /sysroot/sysroot is the physical root filesystem +srcdev=$(findmnt -nvr -o SOURCE /sysroot/sysroot | tail -n1) size=$(lsblk --nodeps --noheadings --bytes -o SIZE "${srcdev}") MINIMUM_GB=8