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..5f0def6e7d 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 @@ -31,7 +31,7 @@ rm -vrf ${initramfs_firstboot_network_dir} # append rootmap kargs to the BLS configs. root=$(karg root) if [ -z "${root}" ]; then - rdcore rootmap /sysroot --boot-mount ${bootmnt} + rdcore rootmap /sysroot/sysroot --boot-mount ${bootmnt} fi # This does a few things: @@ -42,4 +42,4 @@ fi # 3. it create a .root_uuid stamp file on the bootfs or fails if one exists # 4. it adds GRUB bootuuid.cfg dropins so that GRUB selects the boot filesystem # by UUID -rdcore bind-boot /sysroot ${bootmnt} +rdcore bind-boot /sysroot/sysroot ${bootmnt} 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..5106b9736b 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,7 @@ 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) +srcdev=$(findmnt -nvr -o SOURCE /sysroot/sysroot | tail -n1) size=$(lsblk --nodeps --noheadings --bytes -o SIZE "${srcdev}") MINIMUM_GB=8