KoO wrote:Is it possible to install Debian 10 without installing grub.
KoO wrote:Say on a dual booting system after installing Debian just boot to the primary and sudo update-grub to add Debian to the already running grub install.
apt-install grub2-common
KoO wrote:Or will the fact that Debian wants control of the swap file the problem
p.H wrote:Yes, by selecting "expert install" in the Debian installer boot menu.
Warning : in such a scenario, not installing GRUB for the secondary system and using os-prober to add it to the primary GRUB menu has issues. When building the menu entry for another Linux systems detected by os-prober, update-grub/grub-mkconfig relies on that system's boot config (grub.cfg) to set the entry properly, particularly the kernel command line parameters, including the root designation. IME, without this information update-grub just uses the raw device node such as root=/dev/sda5 (which is known to be unreliable) instead of root=UUID=xxx or, in the case of a LVM logical volume, root=/dev/dm-2 (which is even more unreliable and does not work with Debian) instead of root=/dev/mapper/VGname-LVname.
So I recommend to either
- in the primary system, create a manual boot entry in /etc/grub.d/40_custom (requires update-grub) or /boot/grub/custom.cfg (if BIOS boot) | /boot/efi/EFI/debian/custom.cfg (if EFI boot), but you will have to manually update it after a kernel change ;
- in the secondary system, create a manual /boot/grub/grub.cfg (must also be updated after a kernel change)
- for BIOS/legacy boot, in the secondary system, install GRUB in a dummy location such as a partition boot sector, so that /boot/grub/grub.cfg is automatically generated
- for EFI boot, if the distributions are different let the installer install GRUB and change the EFI boot entry priorities with efibootmgr or the UEFI firmware setup
- in the secondary system, install grub2-common so that scripts which create grub.cfg are present and automatically executed after a kernel change, and run update-grub. You can install it in the Debian installer shell with the following command :
- Code: Select all
apt-install grub2-common
(I don't remember how to run a command such as update-grub from the installer in the target chroot)
No, it is unrelated.
Users browsing this forum: No registered users and 11 guests