Open gdamjan opened 4 years ago
If I understand the bootup process correctly, then the sysinit.target is still the first thing we need to take care of (and this is probably one of the reasons, why this is currently still the default target).
However, it should indeed be tested, whether we can just stuff this into initrd.target instead, as e.g. the encrypted drives are not required for the initrd to function of course.
@gdamjan Дамјан:
Thank you for the idea, and:
we now have (partially complete) support for qemu
testing
https://github.com/random-archer/mkinitcpio-systemd-tool/tree/master/tool/image
at least with the following test
test/cryptsetup/verify.py
one can quickly produce initrd image inside project folder /boot
:
[project git repository]/boot
and the command line for running that image inside qemu
manually:
sudo qemu-system-x86_64 -cpu host -enable-kvm -runas user0 -kernel [repo]/boot/vmlinuz-linux -initrd [repo]/boot/initramfs-linux.img -m 512 -smp 2 -drive if=virtio,cache=none,format=raw,file=[repo]/tool/module/sysroot.disk -append 'edd=off console=ttyS0 TERM=xterm SYSTEMD_COLORS=0' -nographic -serial mon:stdio -monitor telnet:127.0.0.1:51234,server,nowait
for example, console output form the boot sequence, secret>
at the end means all is good :-)
qemu
,
and send a PR which shows what works, and what not.
https://github.com/systemd/systemd/blob/v245/NEWS#L91