From efd30c58b1e1b11d0f303ed3698ab797239f9444 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:41:53 -0400 Subject: [PATCH] Just rename don't copy --- buildiso.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/buildiso.sh b/buildiso.sh index dfa9eec..b3bd435 100755 --- a/buildiso.sh +++ b/buildiso.sh @@ -33,9 +33,8 @@ prepare_iso() { rmdir ${iso_tempdir} &>/dev/null sudo cp -a grub.cfg ${tempdir}/installer/boot/grub/grub.cfg &>/dev/null || fail "Error copying grub.cfg file." sudo cp -a menu.cfg ${tempdir}/installer/isolinux/menu.cfg &>/dev/null || fail "Error copying menu.cfg file." - kernver=$( basename debootstrap/boot/vmlinuz* | head -1 | sed 's/vmlinuz-//' ) - sudo cp -a debootstrap/boot/vmlinuz-${kernver} ${tempdir}/installer/live/vmlinuz &>/dev/null || fail "Error copying kernel." - sudo cp -a debootstrap/boot/initrd.img-${kernver} ${tempdir}/installer/live/initrd.img || fail "Error copying initrd." + sudo mv ${tempdir}/installer/live/vmlinuz* ${tempdir}/installer/live/vmlinuz &>/dev/null || fail "Error renaming kernel." + sudo mv ${tempdir}/installer/live/initrd.img* ${tempdir}/installer/live/initrd.img || fail "Error renaming initrd." echo "done." }