ncmprhnsbl wrote: ↑22 Jun 2024, 13:44
you can boot nemesis (or nearly anything else) from your existing porteus bootloader, you just need to add a menu entry for it pointing to the initrd.xz and vmlinuz and a from=path/to/folder in the APPEND line.. you can even have it on the same partition as your porteus folders.
eg. : for the same partition in a folder 'nemesis' place boot/{vmlinuz,initrd.xz} , porteus and config folders
Code: Select all
LABEL NEMESIS
MENU LABEL Nemesis Graphics mode
KERNEL /nemesis/boot/vmlinuz
INITRD /nemesis/boot/initrd.xz
APPEND from=/nemesis
or on sda4 place boot/{vmlinuz,initrd.xz} , porteus and config folders
Code: Select all
LABEL NEMESIS
MENU LABEL Nemesis Graphics mode
KERNEL /dev/sda3/boot/vmlinuz
INITRD /dev/sda3/boot/initrd.xz
APPEND from=/dev/sda3
not sure about this second one if this works for the kernel and initrd paths .. they can be on sda2 with config & porteus on sda3.
and from= can use a UUID
actually the from= might even be optional because initrd will search for the nemesis.sgn file in the porteus folder.
.
I am trying to start nemesis without overwriting syslinux but with little result.
First of all I unpacked the nemesis iso in /mnt/sda3, then I edit/mnt/sda2/boot/syslinux/porteus.cfg with different tests:
.
Code: Select all
LABEL NEMESIS
MENU LABEL Nemesis Graphics mode
KERNEL /dev/sda3/boot/syslinux/vmlinuz
INITRD /dev/sda3/boot/syslinux/initrd.xz
APPEND from:UUID=5a740eb2-c45d-4dab-8131-6130cb661966 resume=UUID=c4cd076d-4693-4c7a-8e90-26779517b781
TEXT HELP
Nemesis nella partizione 3
ENDTEXT
this way it says it cannot find anything and I am forced to start another label of porteus
I'm actually happy that it doesn't work this way because I don't like having to specify the partition name (which changes if I have mass storage devices plugged into the usb during boot).
.
Code: Select all
...
KERNEL /dev/sda3/boot/syslinux/vmlinuz
INITRD /dev/sda3/boot/syslinux/initrd.xz
APPEND from=/dev/sda3
...
this does not work either
.
Code: Select all
...
KERNEL /boot/syslinux/vmlinuz
INITRD /boot/syslinux/initrd.xz
APPEND from:UUID=5a740eb2-c45d-4dab-8131-6130cb661966
...
Making these changes starts but loads the porteus modules instead of nemesis, so maybe a hybrid is started with the nemesis kernel and porteus modules!
.
Code: Select all
...
KERNEL /boot/syslinux/vmlinuz
INITRD /boot/syslinux/initrd.xz
APPEND root=UUID=5a740eb2-c45d-4dab-8131-6130cb661966:ext4
...
I also tried it this way, changing from from to root (I don't know what the difference is), but it works exactly the same as the previous attempt.
It also ask me during start-up that it could not find a porteus-v5.0-x86_64.cfg file (which is in the porteus iso but not in the nemesis iso, so maybe root instead of from doesn't work) and that would search in the disk for it.
.
it's not a big deal because eventually I will only start nemesis, but I wanted to try it out to see if it worked