]> git.ipfire.org Git - thirdparty/dracut.git/blobdiff - dracut-initramfs-restore.sh
add support for Zstandard
[thirdparty/dracut.git] / dracut-initramfs-restore.sh
index 0c41a59ce0e64676dc30225a8fe58983bc6e482c..9479480490487d251aaad3a397975f24957ba75c 100644 (file)
@@ -31,6 +31,8 @@ elif $SKIP "$IMG" | xzcat | cpio -id --no-absolute-filenames --quiet >/dev/null;
     rm -f -- .need_shutdown
 elif $SKIP "$IMG" | lz4 -d -c | cpio -id --no-absolute-filenames --quiet >/dev/null; then
     rm -f -- .need_shutdown
+elif $SKIP "$IMG" | zstd -d -c | cpio -id --no-absolute-filenames --quiet >/dev/null; then
+    rm -f -- .need_shutdown
 else
     # something failed, so we clean up
     echo "Unpacking of $IMG to /run/initramfs failed" >&2