[distri] Re: Log into demi image

  • From: Phillip Susi <phill@xxxxxxxxxxxx>
  • To: distri@xxxxxxxxxxxxx
  • Date: Thu, 27 Feb 2020 14:06:21 -0500


Michael Stapelberg writes:

It seems to work fine in qemu-kvm: I downloaded distri-qemu-serial.img
and started it using

I just downloaded distri-disk.img.zst and booted it.  Not sure what your
makefile is doing there.

  % make qemu-serial DISKIMG=distri-qemu-serial.img

The initrd contains copies of the required files, so no squashfs
images are involved yet.

Of course, but when handing off to the real root, how do you do that
when you have to have a FUSE daemon running to provie the systemd
binary?  I guess that's why systemd is in the root and it must start the
fuse mount and keep it running as it serializes its state and execs the
systemd copy in the root fs?  So I guess the actual fuse daemon remains
running from the initramfs even after switch-to-root?

See also 
https://michael.stapelberg.ch/posts/2020-01-21-initramfs-from-scratch-golang/

Ahh, interesting... reading now.

I don’t know. I googled for a little bit, but couldn’t immediately
find such an option.

I'm thinking it probably invovles messing with the dependencies of the
mount unit so that systemd doesn't think it must be deactivated before 
shutdown.target.

Other related posts: