I wish I knew what the initramfs was doing, too. Unfortunately I wasn't paying attention, ran the lsinitcpio --extract in /boot/, filled up that partition, and when I was cleaning it up, I accidentally deleted all my initramfs files before I could truly inspect them
]]>But I'm still curious why the current initramfs doesn't work... if you wanted to investigate, you could use lsinitcpio --extract and examine the contents.
]]>and yes, I get the same error if I change the option to root=/dev/null.
Looks like I need to rebuild my initramfs. So I know I can do it if I were actually on the system by running
mkinitcpio -g /boot/initramfs-linux.img
Can I do that in an arch-chroot as well, or are there other flags I need to add?
]]>I'm pretty sure it's a systemd-based initramfs. It's whatever the stock initramfs is (I haven't done anything custom for that)
when I try to run /usr/lib/systemd/systemd in the arch-chroot from the installation media, I get this error:
Trying to run as user instance, but the system has not been booted with systemd
Does /usr/lib/systemd/systemd function if you try to run it after chrooting in from the live installation media?
]]>Failed to execute /init (error -13)
Console: switching to colour frame buffer device 400x112
Run /sbin/init as init process
Starting init: /sbin/init exists but couldn't execute it (error -13)
Run /etc/init as init process
Run /bin/init as init process
Starting init: /sbin/init exists but couldn't execute it (error -13)
Run /bin/sh as init process
Starting init: /bin/sh exists but couldn't execute it (error -13)
I then get a kernel panic after that.
/init doesn't exist, /bin/init and /sbin/init are both symlinks to /lib/systemd/systemd, which has 755 permissions owned by root.
I had read around that this could be caused by a read only root filesystem, but in the kernel options, I have
root=/dev/nvme0n1p5 rw
.
I'm using system-boot, and /boot/loader/entries/linux.conf contains:
title Arch Linux
linux /vmlinux-linux
initrd /initramfs-linux.img
options root=/dev/nvme0n1p5 rw