Hi Nathan,
I believe it should be doable to run a diskless setup using nfs and a
kis image type. However I have never tried this setup, so I am not fully
aware of the difficulties you could find in the way.
Certainly not out of the box, since the kiwi-overlay module does not
support it. However I believe it should not be too difficult to set a
custom module to do what you need.
KIWI kis image type produces a kernel, a dracut based initrd and a
rootfs in a filesystem. Booting remote nfs root is seams to be supported
by dracut, see dracut docs here:
https://man7.org/linux/man-pages/man7/dracut.cmdline.7.html
To my understanding something like root=nfs:<server-ip>:<root-dir>
should boot the nfs root. Then to overlay on RAM on top of it I guess
you need a pre-mount hook on dracut to create the tmpfs mountpoint and
mount an overlayfs on top of it. This how I would start digging this option.
https://man7.org/linux/man-pages/man7/dracut.modules.7.html
> Could you share the `/var/log/boot.kiwi` file? Also which kiwi version
> are you using? and which version of the kiwi-boot-descriptions package.
Thanks for sharing I had a look at it and I could not find anything
wrong with it. In fact, there is the mount I expected to see, with the
rw operation. Could it be that your systemd is remounting it after the
switch root? Do you have some fstab in your root /etc?
See line 3749 of your boot.kiwi log:
mount -t overlay -o
rw,lowerdir=/read-only,upperdir=/read-write/rw,workdir=/read-write/work
overlay /mnt
This is mounted as readwrite and I'd say the /var/log/boot.kiwi is
actually stored in the overlay rw area. So it looks like something after
the init script that KIWI provides is remounting the overlayfs. I'd try
to check if journactl provides some further information regarding the
mounts of the filesystem. Systemd afters switching root form initrd to
real root might remount the filesystems according to the `root=`
paramter in the kernel commandline and according to whatever is in
/etc/fstab.
Hopefully this helps to dig it a little further.
Regards,
David