On Tue, 26 Jun 2018 08:50:25 +0200 Frans de Boer <fr...@fransdb.nl> wrote:
> I removed the need for using initrd, so now init=/bin/bash is working. > Time to move forward and investigate what is causing the ABRT when > starting systemd. Thanks for the pointer, it has grossed my mind before > but somehow I forgot it again. Frans, Yeah! Now we're on the right track! :) Looking into it, the reason why initramfs is so tightly linked to systemd is because: http://www.linuxfromscratch.org/blfs/view/svn/postlfs/initramfs.html "At boot time, the boot loader loads the kernel and the initramfs image into memory and starts the kernel. The kernel checks for the presence of the initramfs and, if found, mounts it as / and runs /init. The init program is typically a shell script." And that init.sh typically executes /sbin/init. So, whatever is in /sbin/init is what gets executed, regardless of what was specified on the kernel command line via init= . And on systemd systems, /sbin/init is typically a link to /lib/systemd/systemd So, in order to make a nonsystemd initramfs boot on a systemd system, the installed initramfs must use a nonsystemd init. Another idea would be to change what /sbin/init is linked to, say, to /bin/bash. There is also a kernel option, noinitrd, which should be able to disable the execution of the initrd. So, if you do a root=/dev/sda1 (or whatever) init=/bin/bash noinitrd that should allow for a nonsystemd shell boot. However, the kernel must have all the drivers it needs to be able to mount the given root filesystem without any other help. Do let us know what gdb tells you about where systemd is tripping up. Cheers, Mike -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style