You are not logged in.

#1 2019-06-19 12:06:31

heavyjoe
Member
Registered: 2019-06-19
Posts: 8

[SOLVED][for me]bootctl/systemd-boot: how to add ubuntu to the entries

Hello there

I try to add an Ubuntu installation to the bootctl entries in Arch.

the two drives look like this:

NAME        FSTYPE LABEL  UUID                                 FSAVAIL FSUSE% MOUNTPOINT
sda                                                                           
├─sda1      vfat          E870-F052                             941.7M     8% /boot
├─sda2      swap   swap   c8ea0c0f-f514-4f33-bcd7-5bb9bdcb4eef                [SWAP]
├─sda3      ext4   system 51d4c8c2-a607-4ff0-8eee-2566b3928305   62.9G    15% /
└─sda4      ext4   home   6ccab733-ae6c-4571-a07e-0c1e7a8355ef  110.6G     3% /home
nvme0n1                                                                       
├─nvme0n1p1 vfat          A820-FEAD                                           
└─nvme0n1p2 ext4          6f4c8ecd-94ec-4193-bd11-4f21d8554cab 

The Files in my Arch /boot from sda1 are:

.
├── 00d77c17c96f4dcba8645ccb9b8542d4
├── amd-ucode.img
├── EFI
├── grub
├── initramfs-linux-fallback.img
├── initramfs-linux.img
├── loader
└── vmlinuz-linux

The Files in my Ubuntu nvme0n1 are:

.
├── config-5.0.0-13-generic
├── config-5.0.0-16-generic
├── config-5.0.0-17-generic
├── efi
├── grub
├── initramfs-linux.img
├── initrd.img-5.0.0-13-generic
├── initrd.img-5.0.0-16-generic
├── initrd.img-5.0.0-17-generic
├── memtest86+.bin
├── memtest86+.elf
├── memtest86+_multiboot.bin
├── System.map-5.0.0-13-generic
├── System.map-5.0.0-16-generic
├── System.map-5.0.0-17-generic
├── vmlinuz-5.0.0-13-generic
├── vmlinuz-5.0.0-16-generic
├── vmlinuz-5.0.0-17-generic
└── vmlinuz-linux

so i made an entry in my Arch

/boot/loader/entries/ubuntu.conf

with the following content:

title	Ubuntu
linux	/vmlinuz-linux
initrd	/initramfs-linux.img
options	root=UUID=6f4c8ecd-94ec-4193-bd11-4f21d8554cab	rw

When I try to boot there is an error followed by a stop and the emergency shell.
Error:

[...]
:: mounting '/dev/nvme0n1p2' on real root
:: running clenaup hook [udev]
ERROR: Root device mounted successfully, but /sbin/init does not exist.
Bailing out, you are on your own. Good luck.
[...]

i copied the files

vmlinuz-5.0.0-17-generic
initrd.img-5.0.0-17-generic

to the Arch /boot folder and edited the ubuntu.conf entry. This worked and i can start ubuntu from the Arch bootctl.

I think that was not the correct way to do it.

How am I supposed to add ubuntu in the bootctl the correct way, so that I don't have to copy the files when there is a kernel upgrade?
How can i add the "initrd  /amd-ucode.img" in this procedure?

Help is very much appreciated!

Greetings
Joe

Last edited by heavyjoe (2019-06-19 14:31:22)

Offline

#2 2019-06-19 12:42:46

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,420

Re: [SOLVED][for me]bootctl/systemd-boot: how to add ubuntu to the entries

That is the correct way, you can only boot entries from the same partition systemd-boot was loaded from. Use GRUB or refind if you want this to work more globally (or install a Ubuntu boot loader in additon to systemd-boot on Arch). If you want to set up some post-installation hooks or something similar so that the ubuntu kernel images are copied to that partition when there's an update you will want to ask on an Ubuntu forum on how to do that.

As for the initrd you can add that the same way you are currently doing on the Arch entry, there shouldn't be much of a difference in that regard.

Last edited by V1del (2019-06-19 12:45:52)

Online

#3 2019-06-19 14:02:32

heavyjoe
Member
Registered: 2019-06-19
Posts: 8

Re: [SOLVED][for me]bootctl/systemd-boot: how to add ubuntu to the entries

V1del wrote:

That is the correct way, you can only boot entries from the same partition systemd-boot was loaded from. [...]

That explains a lot...

Thank you very much for your time.

with the windows partition from sdb i just copied the EFI/Microsoft Folder into the EFI folder from my Arch/boot.
That did work for windows but not for Ubuntu when i copied the EFI/ubuntu folder to my Arch/boot/EFI. What is the reason behind that?

Guess i go back to GRUB just for the simplicity...

Thank you.

Greetings
Joe


Edit: Never mind...

Last edited by heavyjoe (2019-06-19 14:30:58)

Offline

#4 2019-07-02 14:12:30

newbie1962
Member
From: italy
Registered: 2012-07-24
Posts: 137

Re: [SOLVED][for me]bootctl/systemd-boot: how to add ubuntu to the entries


hp-envy dv7

Offline

Board footer

Powered by FluxBB