-
Notifications
You must be signed in to change notification settings - Fork 409
Description
Describe the bug
I'm attempting to boot into a squashfs image with an overlayfs overlay. The switch root fails, here are some relevant lines from my rdsosreport.txt:
[ 36.385975] localhost systemctl[782]: Got message type=error sender=org.freedesktop.systemd1 destination=n/a path=n/a interface=n/a member=n/a cookie=1 reply_cookie=1 signature=s error-name=org.freedesktop.DBus.Error.InvalidArgs error-message=Specified switch root path '/sysroot' does not seem to be an OS tree. os-release file is missing.
[ 36.385975] localhost systemctl[782]: Failed to switch root: Specified switch root path '/sysroot' does not seem to be an OS tree. os-release file is missing.
[ 36.385975] localhost systemctl[782]: Bus n/a: changing state RUNNING → CLOSED
[ 36.386080] localhost systemd[1]: Failed to process message type=method_call sender=n/a destination=org.freedesktop.systemd1 path=/org/freedesktop/systemd1 interface=org.freedesktop.systemd1.Manager member=SwitchRoot cookie=1 reply_cookie=0 signature=ss error-name=n/a error-message=n/a: Specified switch root path '/sysroot' does not seem to be an OS tree. os-release file is missing.
If I remove or alter the line here: https://github.com/dracutdevs/dracut/blob/master/modules.d/90dmsquash-live/dmsquash-live-root.sh#L394 to add the overlayfs even with DRACUT_SYSTEMD is not zero then my system boots exactly how I would expect it to.
Is this conditional necessary? Is systemd not doing something that dracut assumes it should do?
Distribution used
Ubuntu 22.04
Dracut version
dracut --version reports only dracut. apt info dracut reports version 051-1. Was installed via apt.
Init system
systemd
To Reproduce
My dracut.conf:
hostonly=no
hostonly_cmdline="root=live:UUID=xxxxxxx-xxxx debug mitigations=auto rd.live.debug=1 rd.live.overlay.overlayfs=1 rd.shell"
compress=xz
uefi=yes
uefi_stub=/usr/lib/...........
add_dracutmodules+=" dmsquash-live "
/LiveOS/squashfs.img is a squashfs image containing a flat ubuntu root fs.
Expected behavior
Should set up an overlayfs fs over the squashfs image