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