ab92d3
From 309c4b0a1756399d9bfd5576d904be63c0a9a8c8 Mon Sep 17 00:00:00 2001
ab92d3
From: Kairui Song <kasong@redhat.com>
ab92d3
Date: Tue, 25 Dec 2018 17:53:24 +0800
ab92d3
Subject: [PATCH] 99squash: fail early if can't install require modules in
ab92d3
 initramfs
ab92d3
ab92d3
insmods will consider all arguments as optional modules by default, but
ab92d3
for squash module, all listed modules are required, if any of them is
ab92d3
missing the initramfs won't boot. So pass the '-c' argument to let instmos
ab92d3
know all those modules are mandatory, it will fail and give an error if
ab92d3
it failed to install any of those modules.
ab92d3
ab92d3
(cherry picked from commit 90ac0a2d772ec0d4f90ea16fc5a31be10bdf205e)
ab92d3
ab92d3
Resolves: #1959336
ab92d3
---
ab92d3
 modules.d/99squash/module-setup.sh | 2 +-
ab92d3
 1 file changed, 1 insertion(+), 1 deletion(-)
ab92d3
ab92d3
diff --git a/modules.d/99squash/module-setup.sh b/modules.d/99squash/module-setup.sh
ab92d3
index 7aa0b447..72fa81f0 100644
ab92d3
--- a/modules.d/99squash/module-setup.sh
ab92d3
+++ b/modules.d/99squash/module-setup.sh
ab92d3
@@ -10,7 +10,7 @@ depends() {
ab92d3
 }
ab92d3
 
ab92d3
 installkernel() {
ab92d3
-    hostonly="" instmods squashfs loop overlay
ab92d3
+    hostonly="" instmods -c squashfs loop overlay
ab92d3
 }
ab92d3
 
ab92d3
 install() {
ab92d3