]> git.ipfire.org Git - thirdparty/dracut.git/commit
fix(dmsquash-live-root): check kernel for built-in `overlay` drivers
authorFrederick Grose <fgrose@sugarlabs.org>
Tue, 2 Aug 2022 22:07:50 +0000 (18:07 -0400)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Fri, 12 Aug 2022 10:25:00 +0000 (10:25 +0000)
commitd0cd7cd38711b5425777c3b1595dbf4288beaa23
treebfe8168f5b127dd0341c88287021a2474736ceb8
parent5a5f9c5d4e0ba41ad74d67e0d70b521149a15617
fix(dmsquash-live-root): check kernel for built-in `overlay` drivers

Do not assume that `overlay` is always a module.  Check first for
`overlay` in `/proc/filesystems`. This is needed in the --no-kernel
use case to avoid the error: modprobe:
  FATAL: Module overlay not found in directory /lib/modules/<kver>

Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
modules.d/90dmsquash-live/dmsquash-live-root.sh