diff --git a/dracut-init.sh b/dracut-init.sh
index 43128e1..d1182f4 100644
--- a/dracut-init.sh
+++ b/dracut-init.sh
@@ -19,11 +19,7 @@
#
export LC_MESSAGES=C
-if [[ "$EUID" = "0" ]]; then
- export DRACUT_CP="cp --reflink=auto --sparse=auto --preserve=mode,timestamps,xattr,links -dfr"
-else
export DRACUT_CP="cp --reflink=auto --sparse=auto --preserve=mode,timestamps,links -dfr"
-fi
# is_func <command>
# Check whether $1 is a function.
diff --git a/install/dracut-install.c b/install/dracut-install.c
index 32faee6..d7fe26c 100644
--- a/install/dracut-install.c
+++ b/install/dracut-install.c
@@ -300,10 +300,6 @@ static int cp(const char *src, const char *dst)
normal_copy:
pid = fork();
if (pid == 0) {
- if (geteuid() == 0)
- execlp("cp", "cp", "--reflink=auto", "--sparse=auto", "--preserve=mode,xattr,timestamps", "-fL", src, dst,
- NULL);
- else
execlp("cp", "cp", "--reflink=auto", "--sparse=auto", "--preserve=mode,timestamps", "-fL", src, dst,
NULL);
_exit(EXIT_FAILURE);
@@ -312,10 +308,6 @@ static int cp(const char *src, const char *dst)
while (waitpid(pid, &ret, 0) < 0) {
if (errno != EINTR) {
ret = -1;
- if (geteuid() == 0)
- log_error("Failed: cp --reflink=auto --sparse=auto --preserve=mode,xattr,timestamps -fL %s %s", src,
- dst);
- else
log_error("Failed: cp --reflink=auto --sparse=auto --preserve=mode,timestamps -fL %s %s", src,
dst);
break;