2022-05-10 10:50:10 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-05-10 20:50:49 +00:00
|
|
|
set -e
|
2022-05-10 10:50:10 +00:00
|
|
|
apt -y install cloud-utils
|
|
|
|
apt -y autoclean
|
2022-05-10 20:53:55 +00:00
|
|
|
echo "GRUB_DISABLE_OS_PROBER=true" >>/etc/default/grub
|
2022-05-10 10:50:10 +00:00
|
|
|
grub-install --boot-directory="/boot" --modules=part_msdos "${DISK_LOOP}"
|
|
|
|
update-grub
|
2022-05-10 20:53:55 +00:00
|
|
|
sed -i 's/GRUB_DISABLE_OS_PROBER=true/# GRUB_DISABLE_OS_PROBER=true/' /etc/default/grub
|
2022-05-10 10:50:10 +00:00
|
|
|
update-initramfs -u -k all
|
|
|
|
rm /setupdisk
|