GRUB install on GPT device failed on BIOS machine
Reference: GRUB install on GPT device failed on BIOS machine
I think that this issue opened by speshuric in the old github is still present in the last version of architect.
Steps to reproduce
- Use following partition script
#!/usr/bin/env bash # use blkid or lsblck to check what disk you destroy if [ "$(whoami)" != "root" ]; then echo "Root privileges required" exit 1 fi HDD=sda partprobe /dev/${HDD} parted --script /dev/${HDD} print parted --script /dev/${HDD} -- \ unit MiB \ mklabel gpt \ mkpart primary 1MiB 4MiB \ set 1 bios_grub on \ name 1 bios_grub \ mkpart primary fat32 4MiB 512MiB \ set 2 esp on \ set 2 boot on \ name 2 esp \ mkpart primary linux-swap 512MiB 8GiB \ name 3 swap \ mkpart primary ext4 8GiB 100% \ name 4 root \ print \ partprobe /dev/${HDD} mkswap /dev/${HDD}3 -L swap mkfs.ext4 /dev/${HDD}4 -F -L boot
- Mount sda4 as root, mount sda3 as swap
- Install base packages
- Try to install GRUB from menu.
Expected
GRUB installation success
Actual
GRUB installation failed
Reasons is the following line
manjaro-architect/lib/util-base.sh dd if=/dev/zero of=$DEVICE seek=1 count=2047
GPT partition table placed in 2-32 LBAs (sectors). Thus manjaro-architect blindly erase it.
Another point is useless error message on installation (the same as in #216)