GRUB: Do not query other disks on first setup
This commit is contained in:
parent
6fa36fc33b
commit
caf71e0689
@ -2,7 +2,9 @@
|
|||||||
set -e
|
set -e
|
||||||
apt -y install cloud-utils
|
apt -y install cloud-utils
|
||||||
apt -y autoclean
|
apt -y autoclean
|
||||||
|
echo "GRUB_DISABLE_OS_PROBER=true" >>/etc/default/grub
|
||||||
grub-install --boot-directory="/boot" --modules=part_msdos "${DISK_LOOP}"
|
grub-install --boot-directory="/boot" --modules=part_msdos "${DISK_LOOP}"
|
||||||
update-grub
|
update-grub
|
||||||
|
sed -i 's/GRUB_DISABLE_OS_PROBER=true/# GRUB_DISABLE_OS_PROBER=true/' /etc/default/grub
|
||||||
update-initramfs -u -k all
|
update-initramfs -u -k all
|
||||||
rm /setupdisk
|
rm /setupdisk
|
Loading…
Reference in New Issue
Block a user