All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix gzip compress then it not supports rsyncable option
@ 2014-10-27 10:43 Vasiliy Tolstov
       [not found] ` <1414406633-5262-1-git-send-email-v.tolstov-+9FY0jupvH6HXe+LvDLADg@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Vasiliy Tolstov @ 2014-10-27 10:43 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA; +Cc: Vasiliy Tolstov

dracut fail to create initramfs when compressor gzip and
it not have rsyncable option

Signed-off-by: Vasiliy Tolstov <v.tolstov-+9FY0jupvH6HXe+LvDLADg@public.gmane.org>
---
 dracut.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dracut.sh b/dracut.sh
index 1c7e208..7aa1264 100755
--- a/dracut.sh
+++ b/dracut.sh
@@ -822,7 +822,7 @@ case $compress in
     bzip2) compress="bzip2 -9";;
     lzma)  compress="lzma -9 -T0";;
     xz)    compress="xz --check=crc32 --lzma2=dict=1MiB -T0";;
-    gzip)  compress="gzip -n -9 --rsyncable"; command -v pigz > /dev/null 2>&1 && compress="pigz -9 -n -T -R";;
+    gzip)  compress="gzip -n -9"; command -v gzip --help 2>&1 | grep -q rsyncable && compress="gzip -n -9 --rsyncable"; command -v pigz > /dev/null 2>&1 && compress="pigz -9 -n -T -R";;
     lzo)   compress="lzop -9";;
     lz4)   compress="lz4 -l -9";;
 esac
-- 
2.1.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-10-29 13:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-27 10:43 [PATCH] fix gzip compress then it not supports rsyncable option Vasiliy Tolstov
     [not found] ` <1414406633-5262-1-git-send-email-v.tolstov-+9FY0jupvH6HXe+LvDLADg@public.gmane.org>
2014-10-29 13:13   ` Harald Hoyer
     [not found]     ` <5450E805.4060200-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2014-10-29 13:15       ` Vasiliy Tolstov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.