mkinitcpio-systemd-tool
mkinitcpio-systemd-tool copied to clipboard
mysterious path resolution in initrd
If i do enable initrd-tinysshd.service, it boots up fine but complains "Error: No such file or directory" about 13-15 times in a row, then complains two more times later.The logs in journalctl don't seem to show any of this, though. I'm also booting with plymouth. I have these initrd-* units enabled: (I didn't edit any of them) initrd-plymouth.path initrd-shell.service initrd-sysroot-mount.service initrd-tinysshd.service
I can post more info than this but I don't really know what you guys would need to see.
please read through wiki pages and related issues first, see if that brings up any ideas: https://github.com/random-archer/mkinitcpio-systemd-tool/wiki
Okay, I spend a while looking through all of the issues I could find and none of them really helped me or addressed my problem. This is mostly because I have no idea what's causing it.
After spending a lot of time and inserting a lot of "echo" commands into your initrd-shell.sh script, I found that all of the "Failed to execute process: No such file or directory" complaints were coming from line 65 in initrd-shell.sh.
echo "$text" | $systemd_cat --priority="$mode" --identifier="$script_identifier"
Commenting this line out stops all of the errors from being printed and the system still boots normally.
please confirm:
-
/usr/bin/systemd-catis present both on root system and as part ofinitrramfs -
command below produces expected log entry visible with
journalctl -e:
echo "hello-there" | systemd-cat --priority="info" --identifier="hello-kitty"
Sorry for my delayed response, my internet was kinda crapping out a lot recently.
/usr/bin/systemd-catis present in both the root filesystem and on theinitramfs(I used lsinitcpio to check)- On the root filesystem, this works. On the debug shell within the initramfs, it doesn't. It produces the
Failed to execute process: No such file or directoryerror
On the debug shell within the initramfs, it doesn't.
-
you mean
/usr/bin/systemd-catactually runs but produces that specific error? -
try to add
straceto theinitramfsimage and then run this test understrace, to see specifically what/where is it complaining about https://linux.die.net/man/1/strace
- Yes
- It's complaining about the file
/etc/of.so.preloadAlso, I wanted to note that running the command like thissystemd-cat --priority="info" --identifier="hello-kitty" echo "hello-there"gives the expected output in journalctl
wanted to note that running the command like this
you mean not using absolute path to the executable?
It worked for me without using the absolute path.