From b79160bf086ef1929e6dbf0aa650fd608a664b5a Mon Sep 17 00:00:00 2001 From: Dan Bungert Date: Mon, 10 Mar 2025 14:54:14 -0600 Subject: [PATCH] server: delete the initrd but not initrd.img symlink The initrd is recreated later. Leave the symlink. --- live-build/ubuntu-server/hooks/03-initramfs-enforcement.chroot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/live-build/ubuntu-server/hooks/03-initramfs-enforcement.chroot b/live-build/ubuntu-server/hooks/03-initramfs-enforcement.chroot index 076aac29..073c692a 100755 --- a/live-build/ubuntu-server/hooks/03-initramfs-enforcement.chroot +++ b/live-build/ubuntu-server/hooks/03-initramfs-enforcement.chroot @@ -20,7 +20,7 @@ case $PASS in ubuntu-server-minimal.ubuntu-server.installer.*) ;; *) - rm -f /boot/initrd.img* + rm -f /boot/initrd.img-* exit 0 ;; esac