]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
99squash: fail early if can't install require modules in initramfs
authorKairui Song <kasong@redhat.com>
Tue, 25 Dec 2018 09:53:24 +0000 (17:53 +0800)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 19 Jul 2019 13:37:25 +0000 (15:37 +0200)
insmods will consider all arguments as optional modules by default, but
for squash module, all listed modules are required, if any of them is
missing the initramfs won't boot. So pass the '-c' argument to let instmos
know all those modules are mandatory, it will fail and give an error if
it failed to install any of those modules.

modules.d/99squash/module-setup.sh

index 935fd721528b17091652feac6dec59d7643c62ff..bd4c922b37b43e72d4a0ee0a00fe60800037bb89 100644 (file)
@@ -10,7 +10,7 @@ depends() {
 }
 
 installkernel() {
-    hostonly="" instmods squashfs loop overlay
+    hostonly="" instmods -c squashfs loop overlay
 }
 
 install() {