]> git.ipfire.org Git - thirdparty/dracut.git/commit
fix(overlayfs): split overlayfs mount in two steps
authorDavid Cassany <dcassany@suse.com>
Fri, 22 Sep 2023 14:28:48 +0000 (16:28 +0200)
committerLaszlo Gombos <laszlo.gombos@gmail.com>
Mon, 30 Oct 2023 13:01:40 +0000 (09:01 -0400)
commitbddffedae038ceca263a904e40513a6e92f1b558
treee8313087ce3fd7d3e624dfbddddee2812073a63d
parent1c762c0da6ed2bb6fa44d5e0968605cc4d45361c
fix(overlayfs): split overlayfs mount in two steps

This commit splits the creation of required overlayfs underlaying
directories and the actual overlayfs mount. This way it is still
possible to mount the overlayfs with the generated sysroot.mount that
dmsquash-live creates.

The overlayfs tree is created in a pre-mount hook so it is executed
before sysroot.mount is started. Otherwise sysroot.mount starts and
fails before mount hooks are executed.

Signed-off-by: David Cassany <dcassany@suse.com>
modules.d/90overlayfs/module-setup.sh
modules.d/90overlayfs/mount-overlayfs.sh
modules.d/90overlayfs/prepare-overlayfs.sh [new file with mode: 0755]