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