summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-08-19 17:05:09 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-08-19 17:05:09 +0100
commit74e2ad299100af1e902a1def5a5831e720e95a9f (patch)
tree7eab81c1f858c917829e42bb622cc67db72ed0ea
parentb98ad3a1518f0eee1810bbedb2647f0a2ae4ef03 (diff)
sys-boot/grub-config-redcore && sys-kernel/dracut-config-redcore : don't be destructive
-rw-r--r--sys-boot/grub-config-redcore/grub-config-redcore-1708-r1.ebuild2
-rw-r--r--sys-kernel/dracut-config-redcore/dracut-config-redcore-1708-r1.ebuild2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys-boot/grub-config-redcore/grub-config-redcore-1708-r1.ebuild b/sys-boot/grub-config-redcore/grub-config-redcore-1708-r1.ebuild
index 31dfc20f..b40fa95e 100644
--- a/sys-boot/grub-config-redcore/grub-config-redcore-1708-r1.ebuild
+++ b/sys-boot/grub-config-redcore/grub-config-redcore-1708-r1.ebuild
@@ -25,7 +25,7 @@ src_install() {
pkg_preinst() {
if [[ -f ""${ROOT}"etc/default/grub" ]]; then
- mv ""${ROOT}"etc/default/grub" ""${ROOT}"etc/default/grub.backup"
+ cp -avx ""${ROOT}"etc/default/grub" ""${ROOT}"etc/default/grub.backup"
fi
}
diff --git a/sys-kernel/dracut-config-redcore/dracut-config-redcore-1708-r1.ebuild b/sys-kernel/dracut-config-redcore/dracut-config-redcore-1708-r1.ebuild
index 6bba02f2..caae14ed 100644
--- a/sys-kernel/dracut-config-redcore/dracut-config-redcore-1708-r1.ebuild
+++ b/sys-kernel/dracut-config-redcore/dracut-config-redcore-1708-r1.ebuild
@@ -25,7 +25,7 @@ src_install() {
pkg_preinst() {
if [[ -f ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf" ]]; then
- mv ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf" ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf.backup"
+ cp -avx ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf" ""${ROOT}"etc/dracut.conf.d/redcore-dracut.conf.backup"
fi
}