Hi,

this is an old syslinux menu entry I try to convert to a grub.cfg menu
entry.

   $ grep "X .Moon" /boot/syslinux/syslinux.cfg -B1 -A3
   LABEL Moonstudio
       MENU LABEL Ubuntu X ^Moon Studio lowlatency
       LINUX /.boot/ubuntu_moonstudio/boot/vmlinuz-lowlatency
       APPEND root=LABEL=moonstudio ro
       INITRD /.boot/ubuntu_moonstudio/boot/initrd.img-lowlatency

I don't understand a few things provided by
https://wiki.archlinux.org/title/GRUB#Boot_menu_entry_examples .

The syslinux bootloader, syslinux.cfg and the path
/.boot/ubuntu_moonstudio/boot/ are on a MBR partition with the label
"s3.archlinux", the directories of the other Linux install's root
directory are on a partition with the label "moonstudio".

The new grub2 and grub.cfg are on a GPT partition with the label
"m1.xubu20.04", but this shouldn't matter.

IIUC the grub.cfg entry should read

   menuentry "Ubuntu X Moon Studio lowlatency" {
           search --no-floppy --set=root --label s3.archlinux
           linux   /.boot/ubuntu_moonstudio/boot/vmlinuz-lowlatency 
root=LABEL=moonstudio ro
        initrd  /.boot/ubuntu_moonstudio/boot/initrd.img-lowlatency
   }
   
OTOH I've got some doubts, should it be vice versa

           search --no-floppy --set=root --label moonstudio
           linux   /.boot/ubuntu_moonstudio/boot/vmlinuz-lowlatency 
root=LABEL=s3.archlinux ro

should it read root=LABEL or root=label or else?

The fstab of the "Ubuntu X Moon Studio lowlatency" install contains a line to 
bind mount boot:

/mnt/archlinux/.boot/ubuntu_moonstudio/boot /boot          none   bind          
    0 0

Regards,
Ralf

Reply via email to