On Mon, 2023-04-10 at 10:11 +0200, Ralf Mardorf wrote:
> 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
"set root=(hdX,Y) sets the boot partition, where the kernel and GRUB
modules are stored (boot need not be a separate partition, and may
simply be a directory under the "root" partition (/)" -
https://wiki.archlinux.org/title/GRUB#Custom_grub.cfg
Ok, IIUC usually it's the partition that holds /boot (not necessarily
/boot/grub/, too).
So IIUC it should read
menuentry "Ubuntu X Moon Studio lowlatency" {
search --no-floppy --set=root --label s3.archlinux
linux /.boot/ubuntu_moonstudio/boot/vmlinuz-lowlatency
root=/dev/disk/by-label/moonstudio ro
initrd /.boot/ubuntu_moonstudio/boot/initrd.img-lowlatency
}
Usually I would simply test it, but due to issues with new hardware
"just testing" is tricky.