opened 08:07PM - 25 Apr 24 UTC
bug
dracut currently requires in some cases folder `/proc` to be existing inside the… `LiveOS/squashfs.img`. No image should require to come with an empty `/proc` folder.
[`dmsquash-live-root.sh`](https://github.com/dracut-ng/dracut-ng/blob/main/modules.d/90dmsquash-live/dmsquash-live-root.sh#L347)
```
elif [ -d /run/initramfs/squashfs/proc ]; then
```
This seems wrong. `/proc` is created at boot time. There should be no need for an image to come with an empty `/proc` folder.
Was also pointed out by @FGrose here: https://github.com/dracutdevs/dracut/issues/1820#issuecomment-1206498286 (and also been the committer https://github.com/dracut-ng/dracut-ng/commit/789668deb3e6f8584ffab964d2204ddcb75f0a06).
I guess the intention is to check if the mounting of the `LiveOS/squashfs.img` has resulted in a usable image? How about checking `/usr` instead? Images without `/etc` might be available at some point but probably not without `/usr` which seems more appropriate.