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