export DIB_BAREMETAL_KERNEL_PATTERN='ostree/fedora-atomic-*/vmlinuz*'
export DIB_BAREMETAL_INITRD_PATTERN='ostree/fedora-atomic-*/initramfs-*'
Run after 80-fedora-atomic image has been loaded.
Running before 80-fedora-atomic image has been loaded (from what I understand).
2018-03-27 15:10:29.298 | dib-run-parts 50-bootloader completed
2018-03-27 15:10:29.299 | dib-run-parts Running /tmp/in_target.d/finalise.d/50-dracut-regenerate
2018-03-27 15:10:29.405 | + dnf -v -y install cryptsetup
2018-03-27 15:10:33.906 | + '[' install == install ']'
2018-03-27 15:10:33.906 | + '[' dnf == dnf ']'
2018-03-27 15:10:33.906 | + dnf mark install cryptsetup
2018-03-27 15:10:34.320 | + dnf -v -y install lvm2
2018-03-27 15:10:41.228 | Running in chroot, ignoring request.
2018-03-27 15:10:41.682 | + '[' install == install ']'
2018-03-27 15:10:41.682 | + '[' dnf == dnf ']'
2018-03-27 15:10:41.682 | + dnf mark install lvm2
2018-03-27 15:10:42.049 | + set -eu
2018-03-27 15:10:42.049 | + set -o pipefail
2018-03-27 15:10:42.049 | + source /lib/diskimage-builder/img-functions
2018-03-27 15:10:42.049 | + select_boot_kernel_initrd /
2018-03-27 15:10:42.049 | + TARGET_ROOT=/
2018-03-27 15:10:42.049 | + BOOTDIR=//boot
2018-03-27 15:10:42.050 | + '[' -n 'ostree/fedora-atomic-*/vmlinuz*' -a -n 'ostree/fedora-atomic-*/initramfs-*' ']'
2018-03-27 15:10:42.051 | +++ eval ls -1rv '//boot/ostree/fedora-atomic-*/vmlinuz*'
2018-03-27 15:10:42.051 | ++++ ls -1rv '//boot/ostree/fedora-atomic-*/vmlinuz*'
2018-03-27 15:10:42.051 | +++ head -1
2018-03-27 15:10:42.052 | ls: cannot access '//boot/ostree/fedora-atomic-*/vmlinuz*': No such file or directory
2018-03-27 15:10:42.053 | ++ basename
2018-03-27 15:10:42.053 | basename: missing operand
2018-03-27 15:10:42.053 | Try 'basename --help' for more information.
2018-03-27 15:10:42.054 | + KERNEL=
2018-03-27 15:10:42.059 | Traceback (most recent call last):
2018-03-27 15:10:42.059 | File "/tmp/in_target.d/finalise.d/50-dracut-regenerate", line 67, in <module>
2018-03-27 15:10:42.059 | main()
2018-03-27 15:10:42.059 | File "/tmp/in_target.d/finalise.d/50-dracut-regenerate", line 52, in main
2018-03-27 15:10:42.059 | raise e
2018-03-27 15:10:42.059 | subprocess.CalledProcessError: Command '['select-boot-kernel-initrd']' returned non-zero exit status 1.