windvn/input/raw-disk/data/setupdisk
2022-05-23 06:30:20 +02:00

10 lines
340 B
Bash
Executable File

#!/usr/bin/env bash
set -e
apt -y install cloud-utils
apt -y autoclean
echo "GRUB_DISABLE_OS_PROBER=true" >>/etc/default/grub
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
update-initramfs -u -k all
rm /setupdisk