You are not logged in.

#1 2017-01-18 03:59:47

lashawnerlantz
Member
Registered: 2016-09-09
Posts: 24

[SOLVED] Where is systemd-boot configuration initrd path?

I'm installing Arch Linux and adding its option to the boot menu. I'm using systemd-boot as the bootloader.

https://wiki.archlinux.org/index.php/sy … figuration

title          Arch Linux
efi          /vmlinuz-linux
options        initrd=??? root=PARTUUID=14420948-2cea-4de7-b042-40f67c618660 rootfstype=ext4 rw

The docs say I need to include a path to initrd or initramfs-linux.img. I don't know where those should be or where to find them. I don't have either of those in my boot directory.
I do have /usr/bin/mkinitcpio however.
What path do I include to initrd?

Also, what does the rw on the end of options mean?

Last edited by lashawnerlantz (2017-01-18 04:32:44)

Offline

#2 2017-01-18 04:03:33

lashawnerlantz
Member
Registered: 2016-09-09
Posts: 24

Re: [SOLVED] Where is systemd-boot configuration initrd path?

/boot doesn't contain vmlinuz-linux anymore actually.

# ls boot
EFI     'System Volume Information'     boot     loader

Offline

#3 2017-01-18 04:04:18

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,543

Re: [SOLVED] Where is systemd-boot configuration initrd path?

The path is generally the same as the path to the kernel

Re-read your link, though, the confgi you posted is wrong.

Online

#4 2017-01-18 04:11:19

lashawnerlantz
Member
Registered: 2016-09-09
Posts: 24

Re: [SOLVED] Where is systemd-boot configuration initrd path?

lashawnerlantz wrote:

/boot doesn't contain vmlinuz-linux anymore actually.

# ls boot
EFI     'System Volume Information'     boot     loader

That was because I had the EFI partition mounted. When I unmount it, all I have is vmlinuz-linux

Offline

#5 2017-01-18 04:12:08

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,543

Re: [SOLVED] Where is systemd-boot configuration initrd path?

So it wasn't mounted when you installed the kernel. Why not?

Online

#6 2017-01-18 04:17:00

lashawnerlantz
Member
Registered: 2016-09-09
Posts: 24

Re: [SOLVED] Where is systemd-boot configuration initrd path?

Okay, I ran mkinitcpio -p linux and generated the initrd image. Now it seems like files are in separate partitions:

# ls boot (/dev/sda7)
vmlinuz-linux    initramfs-linux.img

/dev/sda2 (EFI partition)
EFI     'System Volume Information'     boot     loader

Last edited by lashawnerlantz (2017-01-18 04:22:33)

Offline

#7 2017-01-18 04:18:35

lashawnerlantz
Member
Registered: 2016-09-09
Posts: 24

Re: [SOLVED] Where is systemd-boot configuration initrd path?

Scimmia wrote:

So it wasn't mounted when you installed the kernel. Why not?

An accident I guess. Can I move the kernel into the correct spot?

Offline

#8 2017-01-18 04:20:07

lashawnerlantz
Member
Registered: 2016-09-09
Posts: 24

Re: [SOLVED] Where is systemd-boot configuration initrd path?

Scimmia wrote:

The path is generally the same as the path to the kernel

Re-read your link, though, the confgi you posted is wrong.

The example they give is an optional variant:

title          Arch Linux
linux          /vmlinuz-linux
initrd         /initramfs-linux.img
options        root=PARTUUID=14420948-2cea-4de7-b042-40f67c618660 rw

Offline

#9 2017-01-18 04:20:09

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,543

Re: [SOLVED] Where is systemd-boot configuration initrd path?

Since the initramfs is missing too, just delete it, mount the partition, and reinstall the kernel.

Online

#10 2017-01-18 04:32:26

lashawnerlantz
Member
Registered: 2016-09-09
Posts: 24

Re: [SOLVED] Where is systemd-boot configuration initrd path?

Scimmia wrote:

Since the initramfs is missing too, just delete it, mount the partition, and reinstall the kernel.

Okay, that worked. Thank you for your help.

Offline

Board footer

Powered by FluxBB