From f27062d1e39afbc6f71ff2b25e7cc9c043c3506f Mon Sep 17 00:00:00 2001 From: Marcus Date: Mon, 1 May 2023 08:12:39 +0200 Subject: [PATCH] progress --- makeanything.sh | 8 +++++++- src/root/install_nanodesk.sh | 14 +++++++++++--- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/makeanything.sh b/makeanything.sh index 652e875..6577546 100755 --- a/makeanything.sh +++ b/makeanything.sh @@ -144,7 +144,13 @@ apt clean ### but fetch packages for grub and kernel, so we do not need to download them ### in case nanodesk get installed to diska message "apt --download linux-image and grub packages to have them in cache for installation by user" -apt -d --reinstall install linux-image-amd64 linux-image-5.10.0-22-amd64 grub-pc grub-pc-bin +apt -d --reinstall install \\ + linux-image-amd64 \\ + linux-image-5.10.0-22-amd64 \\ + grub-pc grub-pc-bin \\ + grub-common \\ + grub2-common \\ + os-prober || error EOF message "run install_base" $CHROOTCMD /bin/bash /tmp/install_base.sh || error diff --git a/src/root/install_nanodesk.sh b/src/root/install_nanodesk.sh index 73b229a..135fe2f 100755 --- a/src/root/install_nanodesk.sh +++ b/src/root/install_nanodesk.sh @@ -83,10 +83,18 @@ message "creating /boot directory" mkdir -p /mnt/boot/ || error message "create tmp script for reinstalling grub and kernel" -echo "DEBIAN_FRONTEND=noninteractive +cat < /mnt/tmp/reinstall_kernel.sh +DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND -/usr/bin/apt --yes purge 'linux-image-*' 'grub-*' -#/usr/bin/apt --yes install linux-image-amd64 linux-image-$(uname -r) grub-pc grub-pc-bin" > /mnt/tmp/reinstall_kernel.sh +#/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 \\ + os-prober +EOF message "install kernel and grub" $CHROOTCMD /bin/bash /tmp/reinstall_kernel.sh || error