progress
This commit is contained in:
parent
4318a93c4a
commit
f27062d1e3
2 changed files with 18 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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 <<EOF > /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
|
||||
|
|
Loading…
Reference in a new issue