diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2017-06-29 18:08:13 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-06-29 18:08:13 +0200 |
commit | 8cd4f172ddcf0714aebee7d14bc9c7b1559f1849 (patch) | |
tree | 971c8540fdcbc4f9cb4d6d89e1aebdf681a2c46f | |
parent | c878362f24064566562ad149a1e40d444b97d598 (diff) | |
download | imagefish-8cd4f172ddcf0714aebee7d14bc9c7b1559f1849.tar.gz |
zap initrd before kernel-install run
-rwxr-xr-x | scripts/tar-to-image.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/tar-to-image.sh b/scripts/tar-to-image.sh index fb65e9a..37a6b12 100755 --- a/scripts/tar-to-image.sh +++ b/scripts/tar-to-image.sh @@ -282,6 +282,7 @@ function fish_systemd_boot() { echo "### init systemd-boot" fish mkdir-p /etc/kernel fish write /etc/kernel/cmdline "ro root=${rootfs} ${console}" + fish glob rm-f "/boot/*/*/initrd" fish command "bootctl --no-variables install" fish command "kernel-install add ${kver} /lib/modules/${kver}/vmlinuz" fish command "sed -i -e '/timeout/s/^#//' /boot/loader/loader.conf" |