diff options
| author | davidovski <david@davidovski.xyz> | 2022-03-29 22:30:13 +0100 | 
|---|---|---|
| committer | davidovski <david@davidovski.xyz> | 2022-03-29 22:30:13 +0100 | 
| commit | 14a1fee0a54d94f0f57f50d2532849f3c2383a15 (patch) | |
| tree | a62d365540ad7c90618496bf7e2382107b579c83 /extra/dracut | |
| parent | 19b9a12a93a45cc02b31de9b40c45029fbf3c569 (diff) | |
fixed dracut to work, and can boot
Diffstat (limited to 'extra/dracut')
| -rw-r--r-- | extra/dracut/fix-sbase-coreutils.patch | 29 | 
1 files changed, 29 insertions, 0 deletions
| diff --git a/extra/dracut/fix-sbase-coreutils.patch b/extra/dracut/fix-sbase-coreutils.patch index 2c6626e..0ff740f 100644 --- a/extra/dracut/fix-sbase-coreutils.patch +++ b/extra/dracut/fix-sbase-coreutils.patch @@ -10,3 +10,32 @@ diff -rNu a/Makefile b/Makefile   ifneq ($(enable_documentation),no)   	for i in $(man1pages); do install -m 0644 $$i $(DESTDIR)$(mandir)/man1/$${i##*/}; done   	for i in $(man5pages); do install -m 0644 $$i $(DESTDIR)$(mandir)/man5/$${i##*/}; done +--- a/src/install/dracut-install.c	2021-05-27 13:34:19.000000000 +0100 ++++ b/src/install/dracut-install.c	2022-03-29 21:40:51.220267462 +0100 +@@ -324,10 +324,10 @@ +         pid = fork(); +         if (pid == 0) { +                 if (geteuid() == 0 && no_xattr == false) +-                        execlp("cp", "cp", "--reflink=auto", "--sparse=auto", "--preserve=mode,xattr,timestamps", "-fL", ++                        execlp("cp", "cp", "-fL", +                                src, dst, NULL); +                 else +-                        execlp("cp", "cp", "--reflink=auto", "--sparse=auto", "--preserve=mode,timestamps", "-fL", src, ++                        execlp("cp", "cp", "-fL", src, +                                dst, NULL); +                 _exit(EXIT_FAILURE); +         } +@@ -336,10 +336,10 @@ +                 if (errno != EINTR) { +                         ret = -1; +                         if (geteuid() == 0 && no_xattr == false) +-                                log_error("Failed: cp --reflink=auto --sparse=auto --preserve=mode,xattr,timestamps -fL %s %s", ++                                log_error("Failed: cp -fL %s %s", +                                           src, dst); +                         else +-                                log_error("Failed: cp --reflink=auto --sparse=auto --preserve=mode,timestamps -fL %s %s", ++                                log_error("Failed: cp -fL %s %s", +                                           src, dst); +                         break; +                 } + | 
