windvn/input/stage99/setupdisk

10 lines
340 B
Plaintext
Raw Normal View History

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
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
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