My disk has 2 OS, Alpine and Debian, and a /home in a separated partition.
The bootloader is grub from Debian installed in the MBR (bios).
I want to use Alpine and its extlinux bootloader so I can remove the other OS to save space.
Alpine is on sda3
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 300M 0 part
├─sda2 8:2 0 47.5G 0 part /mnt
├─sda3 8:3 0 78.4G 0 part /
└─sda4 8:4 0 335.6G 0 part /home
I have syslinux installed in Alpine. The begining of the MBR is overwritten for the syslinux like so .
doas dd bs=440 count=1 conv=notrunc if=/usr/share/syslinux/mbr.bin of=/dev/sda
The /boot directory looks like that
System.map-lts extlinux.conf.old ldlinux.sys mboot.c32 vmlinuz-lts
config-lts initramfs-lts libcom32.c32 menu.c32
extlinux.conf ldlinux.c32 libutil.c32 vesamenu.c32
The extlinux.conf
DEFAULT menu.c32
PROMPT 0
MENU TITLE Alpine/Linux Boot Menu
MENU HIDDEN
MENU AUTOBOOT Alpine will be booted automatically in # seconds.
TIMEOUT 10
LABEL lts
MENU DEFAULT
MENU LABEL Linux lts
LINUX /boot/vmlinuz-lts
INITRD /boot/initramfs-lts
APPEND root=UUID=b0bd16c2-3546-4392-a7b2-fb8206933a47 modules=sd-mod,usb-storage,ext4 quiet rootfstype=ext4
MENU SEPARATOR
Then I ran
doas extlinux --install /boot
When I restart the PC "Intel boot agent" is not happy and brings me to the bios disk selection.
The Alpine live iso on an USB stick boots normally and it seems it uses extlinux. So I think the hardware is compatible. Whats wrong in this setup please ?
fdisk
. Runfdisk /dev/sda
, typea
, select partition3
followed byw
to write the changes. Reboot.tune2fs -l /dev/sda3 | grep 64bit
) and check your syslinux version. It might not be supported, see here.