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