Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ DietPi-FirstBoot | On x86_64 BIOS systems, set the GRUB install device to the obtained root drive. Naturally, we cannot know on image create, what the install drives path/name is, or what type it is and UUIDs do not exist for the raw drives, where the bootloader needs to be written to. With a wrong drive in debconf, on a GRUB upgrade or install, the system can become unbootable. GRUB (or the Debian GRUB maintainers) implemented some additional checks to prevent such cases, due to many bug tracker reports, but the issue is generally not ruled out 100% and it requires a manual selection of the bootloader drive on package upgrade, when the stored one does not exist, else the upgrade fails. For our x86_64 images we know that those are full drive images with "our" bootloader stored on the same drive where the DietPi root partition is found, so we can automatically detect and apply it. Even if it is a customised image, this step cannot make things worse compared to the hardcoded "/dev/sda", which is a pure guess that most x86_64 systems will run on the first SATA drive attached to the system.
- Loading branch information