|
Kevin Fenzi |
ce8cae |
From e488704701b73d05384cf38a017c055b95317b34 Mon Sep 17 00:00:00 2001
|
|
Kevin Fenzi |
ce8cae |
From: Antonio Alvarez Feijoo <antonio.feijoo@suse.com>
|
|
Kevin Fenzi |
ce8cae |
Date: Fri, 18 Mar 2022 15:42:42 +0100
|
|
Kevin Fenzi |
ce8cae |
Subject: [PATCH] fix(dracut-initramfs-restore.sh): unpack uncompressed initrd
|
|
Kevin Fenzi |
ce8cae |
as last option
|
|
Kevin Fenzi |
ce8cae |
|
|
Kevin Fenzi |
ce8cae |
Attempting to unpack the initrd assuming it is uncompressed when
|
|
Kevin Fenzi |
ce8cae |
it is delays the shutdown process by several seconds. This must
|
|
Kevin Fenzi |
ce8cae |
be the last check.
|
|
Kevin Fenzi |
ce8cae |
---
|
|
Kevin Fenzi |
ce8cae |
dracut-initramfs-restore.sh | 6 +++---
|
|
Kevin Fenzi |
ce8cae |
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
Kevin Fenzi |
ce8cae |
|
|
Kevin Fenzi |
ce8cae |
diff --git a/dracut-initramfs-restore.sh b/dracut-initramfs-restore.sh
|
|
Kevin Fenzi |
ce8cae |
index 3c70b42c3..2efd798c5 100644
|
|
Kevin Fenzi |
ce8cae |
--- a/dracut-initramfs-restore.sh
|
|
Kevin Fenzi |
ce8cae |
+++ b/dracut-initramfs-restore.sh
|
|
Kevin Fenzi |
ce8cae |
@@ -51,13 +51,13 @@ fi
|
|
Kevin Fenzi |
ce8cae |
|
|
Kevin Fenzi |
ce8cae |
cd /run/initramfs
|
|
Kevin Fenzi |
ce8cae |
|
|
Kevin Fenzi |
ce8cae |
-if $SKIP "$IMG" | cpio -id --no-absolute-filenames --quiet > /dev/null \
|
|
Kevin Fenzi |
ce8cae |
- || $SKIP "$IMG" | zcat | cpio -id --no-absolute-filenames --quiet > /dev/null \
|
|
Kevin Fenzi |
ce8cae |
+if $SKIP "$IMG" | zcat | cpio -id --no-absolute-filenames --quiet > /dev/null \
|
|
Kevin Fenzi |
ce8cae |
|| $SKIP "$IMG" | bzcat | cpio -id --no-absolute-filenames --quiet > /dev/null \
|
|
Kevin Fenzi |
ce8cae |
|| $SKIP "$IMG" | xzcat | cpio -id --no-absolute-filenames --quiet > /dev/null \
|
|
Kevin Fenzi |
ce8cae |
|| $SKIP "$IMG" | lz4 -d -c | cpio -id --no-absolute-filenames --quiet > /dev/null \
|
|
Kevin Fenzi |
ce8cae |
|| $SKIP "$IMG" | lzop -d -c | cpio -id --no-absolute-filenames --quiet > /dev/null \
|
|
Kevin Fenzi |
ce8cae |
- || $SKIP "$IMG" | zstd -d -c | cpio -id --no-absolute-filenames --quiet > /dev/null; then
|
|
Kevin Fenzi |
ce8cae |
+ || $SKIP "$IMG" | zstd -d -c | cpio -id --no-absolute-filenames --quiet > /dev/null \
|
|
Kevin Fenzi |
ce8cae |
+ || $SKIP "$IMG" | cpio -id --no-absolute-filenames --quiet > /dev/null; then
|
|
Kevin Fenzi |
ce8cae |
rm -f -- .need_shutdown
|
|
Kevin Fenzi |
ce8cae |
else
|
|
Kevin Fenzi |
ce8cae |
# something failed, so we clean up
|