boot/dracut: Add erofs and overlayfs kernel modules
authorEric Curtin <ecurtin@redhat.com>
Tue, 19 Sep 2023 13:32:10 +0000 (14:32 +0100)
committerJonathan Lebon <jonathan@jlebon.com>
Thu, 21 Sep 2023 16:03:07 +0000 (12:03 -0400)
These kernel modules are required for composefs usage in the initramfs.

The composefs use-case as of today uses an overlayfs on top of EROFS.

src/boot/dracut/module-setup.sh

index f09a56cc4ea7ab5db3caa2b03eb9329d6cb6e412..06d74600e38bf907e000a7a29e62b5726cb52f1a 100755 (executable)
 # You should have received a copy of the GNU Lesser General Public
 # License along with this library. If not, see <https://www.gnu.org/licenses/>.
 
+installkernel() {
+    instmods erofs overlay
+}
+
 check() {
     if [[ -x $systemdutildir/systemd ]] && [[ -x /usr/lib/ostree/ostree-prepare-root ]]; then
        return 255