Commit a2c43788 authored by Anton Midyukov's avatar Anton Midyukov

tar2fs: Disable os-probe at the time of grub installation

os-probe finds loopback devices.
parent d568b114
......@@ -397,6 +397,7 @@ image=/boot/vmlinuz
EOF
;;
grub-efi)
echo 'GRUB_DISABLE_OS_PROBER=true' >> "$ROOTFS"/etc/sysconfig/grub2
chroot "$ROOTFS" grub-mkconfig -o /boot/grub/grub.cfg
case "$ARCH" in
*86)
......@@ -422,8 +423,10 @@ grub-efi)
--removable --no-uefi-secure-boot
;;
esac
sed -i '/GRUB_DISABLE_OS_PROBER=true/d' "$ROOTFS/etc/sysconfig/grub2"
;;
grub)
echo 'GRUB_DISABLE_OS_PROBER=true' >> "$ROOTFS"/etc/sysconfig/grub2
chroot "$ROOTFS" grub-mkconfig -o /boot/grub/grub.cfg
case "$ARCH" in
*86*)
......@@ -437,6 +440,7 @@ grub)
--no-nvram "$LOOPBOOTLOADER"
;;
esac
sed -i '/GRUB_DISABLE_OS_PROBER=true/d' "$ROOTFS/etc/sysconfig/grub2"
;;
esac
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment