e83cdd
From 3cb0f01a1e8a05dd4c6412907f5e9a398b2ace2c Mon Sep 17 00:00:00 2001
e83cdd
From: Lukas Nykryn <lnykryn@redhat.com>
e83cdd
Date: Fri, 31 Aug 2018 13:06:34 +0200
e83cdd
Subject: [PATCH] Revert "use cp --reflink=auto"
e83cdd
e83cdd
This reverts commit 8cd8820547257299a33b2d1e3ecf7c6241a569b2.
e83cdd
Resolves: #1623990
e83cdd
---
e83cdd
 50-dracut.install            | 2 +-
e83cdd
 51-dracut-rescue-postinst.sh | 2 +-
e83cdd
 51-dracut-rescue.install     | 2 +-
e83cdd
 3 files changed, 3 insertions(+), 3 deletions(-)
e83cdd
e83cdd
diff --git a/50-dracut.install b/50-dracut.install
e83cdd
index 64e3549f..ec59dcb3 100755
e83cdd
--- a/50-dracut.install
e83cdd
+++ b/50-dracut.install
e83cdd
@@ -25,7 +25,7 @@ case "$COMMAND" in
e83cdd
         if [[ -f ${INITRD_IMAGE_PREGENERATED} ]]; then
e83cdd
             # we found an initrd at the same place as the kernel
e83cdd
             # use this and don't generate a new one
e83cdd
-            cp --reflink=auto "$INITRD_IMAGE_PREGENERATED" "$BOOT_DIR_ABS/$INITRD" \
e83cdd
+            cp "$INITRD_IMAGE_PREGENERATED" "$BOOT_DIR_ABS/$INITRD" \
e83cdd
                 && chown root:root "$BOOT_DIR_ABS/$INITRD" \
e83cdd
                 && chmod 0600 "$BOOT_DIR_ABS/$INITRD" \
e83cdd
                 && exit 0
e83cdd
diff --git a/51-dracut-rescue-postinst.sh b/51-dracut-rescue-postinst.sh
e83cdd
index 67f5b717..23158552 100755
e83cdd
--- a/51-dracut-rescue-postinst.sh
e83cdd
+++ b/51-dracut-rescue-postinst.sh
e83cdd
@@ -57,7 +57,7 @@ if [[ ! -f $INITRDFILE ]]; then
e83cdd
 fi
e83cdd
 
e83cdd
 if [[ ! -f $NEW_KERNEL_IMAGE ]]; then
e83cdd
-    cp --reflink=auto "$KERNEL_IMAGE" "$NEW_KERNEL_IMAGE"
e83cdd
+    cp "$KERNEL_IMAGE" "$NEW_KERNEL_IMAGE"
e83cdd
     ((ret+=$?))
e83cdd
 fi
e83cdd
 
e83cdd
diff --git a/51-dracut-rescue.install b/51-dracut-rescue.install
e83cdd
index 6ddafdb6..426ddee5 100755
e83cdd
--- a/51-dracut-rescue.install
e83cdd
+++ b/51-dracut-rescue.install
e83cdd
@@ -93,7 +93,7 @@ case "$COMMAND" in
e83cdd
 
e83cdd
         [[ -d "$BOOT_DIR_ABS" ]] || mkdir -p "$BOOT_DIR_ABS"
e83cdd
 
e83cdd
-        if ! cp --reflink=auto "$KERNEL_IMAGE" "$BOOT_DIR_ABS/$KERNEL"; then
e83cdd
+        if ! cp "$KERNEL_IMAGE" "$BOOT_DIR_ABS/$KERNEL"; then
e83cdd
             echo "Can't copy '$KERNEL_IMAGE to '$BOOT_DIR_ABS/$KERNEL'!" >&2
e83cdd
         fi
e83cdd
 
e83cdd