]> git.ipfire.org Git - thirdparty/systemd.git/commit
dissect-image: support images without rootfs but with /usr/
authorLennart Poettering <lennart@poettering.net>
Tue, 9 Mar 2021 21:55:45 +0000 (22:55 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 16 Mar 2021 13:56:48 +0000 (14:56 +0100)
commit7cf660302fceba1928df78152fda967480aef19c
tree6b4fa6fa0ce8596a47957b77e14674a40aef2700
parentefd3be9de1dc07ec743912f3c166bbf17dbb20f5
dissect-image: support images without rootfs but with /usr/

Let's add support for images that include an /usr/ file system but no
root fs. Mount a tmpfs as root for images like this, all controlled by a
new flag DISSECT_IMAGE_USR_NO_ROOT.

This is useful for entirely stateless images, that come up pristine on
every single boot.
src/shared/dissect-image.c
src/shared/dissect-image.h