From e6ca94674efcfbf3cb1e540b4fd1a9a797afd67a Mon Sep 17 00:00:00 2001 From: Marcus Date: Mon, 1 May 2023 13:43:30 +0200 Subject: [PATCH] better EOF handling --- makeanything.sh | 20 ++++++++++---------- src/root/install_nanodesk.sh | 14 +++++++------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/makeanything.sh b/makeanything.sh index 57dcbea..70dbb8e 100755 --- a/makeanything.sh +++ b/makeanything.sh @@ -249,7 +249,7 @@ cp build/chroot/boot/vmlinuz-* build/staging/live/vmlinuz || error cp build/chroot/boot/initrd.img-* build/staging/live/initrd || error message "isolinux.cfg" -cat <<'EOF' >build/staging/isolinux/isolinux.cfg +cat <build/staging/isolinux/isolinux.cfg UI vesamenu.c32 MENU TITLE Boot Menu @@ -267,19 +267,19 @@ MENU COLOR msg07 37;40 #90ffffff #a0000000 std MENU COLOR tabmsg 31;40 #30ffffff #00000000 std LABEL linux - MENU LABEL nanodesk Live [BIOS/ISOLINUX] + MENU LABEL nanodesk $VERSION Live [BIOS/ISOLINUX] MENU DEFAULT KERNEL /live/vmlinuz APPEND initrd=/live/initrd boot=live LABEL linux - MENU LABEL nanodesk Live [BIOS/ISOLINUX] (nomodeset) + MENU LABEL nanodesk $VERSION Live [BIOS/ISOLINUX] (nomodeset) MENU DEFAULT KERNEL /live/vmlinuz APPEND initrd=/live/initrd boot=live nomodeset EOF -cat <<'EOF' > build/staging/boot/grub/grub.cfg +cat < build/staging/boot/grub/grub.cfg insmod part_gpt insmod part_msdos insmod fat @@ -293,16 +293,16 @@ set timeout=30 # If X has issues finding screens, experiment with/without nomodeset. -menuentry "nanodesk Live [EFI/GRUB]" { +menuentry "nanodesk $VERSION Live [EFI/GRUB]" { search --no-floppy --set=root --label NANODESK - linux ($root)/live/vmlinuz boot=live - initrd ($root)/live/initrd + linux (\$root)/live/vmlinuz boot=live + initrd (\$root)/live/initrd } -menuentry "nanodesk Live [EFI/GRUB] (nomodeset)" { +menuentry "nanodesk $VERSION Live [EFI/GRUB] (nomodeset)" { search --no-floppy --set=root --label NANODESK - linux ($root)/live/vmlinuz boot=live nomodeset - initrd ($root)/live/initrd + linux (\$root)/live/vmlinuz boot=live nomodeset + initrd (\$root)/live/initrd } EOF diff --git a/src/root/install_nanodesk.sh b/src/root/install_nanodesk.sh index 90d9148..5f9a850 100755 --- a/src/root/install_nanodesk.sh +++ b/src/root/install_nanodesk.sh @@ -119,16 +119,16 @@ message "creating /boot directory" mkdir -p /mnt/boot/ || error message "create tmp script for reinstalling grub and kernel" -cat < /mnt/tmp/reinstall_kernel.sh +cat <<\EOF > /mnt/tmp/reinstall_kernel.sh DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND #/usr/bin/apt --yes purge 'linux-image-*' 'grub-*' -/usr/bin/apt --yes --reinstall install \\ - linux-image-amd64 \\ - linux-image-5.10.0-22-amd64 \\ - grub-pc grub-pc-bin \\ - grub-common \\ - grub2-common \\ +/usr/bin/apt --yes --reinstall install \ + linux-image-amd64 \ + linux-image-5.10.0-22-amd64 \ + grub-pc grub-pc-bin \ + grub-common \ + grub2-common \ os-prober EOF