mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
systemd: patch hardcoded "/bin/cat" in systemd-cat
Without this patch, systemd-cat doesn't work here: $ echo "hello world" | systemd-cat Failed to execute process: No such file or directory
This commit is contained in:
parent
40502b492d
commit
7894a6fa27
1 changed files with 2 additions and 1 deletions
|
@ -48,7 +48,7 @@ stdenv.mkDerivation rec {
|
|||
''
|
||||
# FIXME: patch this in systemd properly (and send upstream).
|
||||
# FIXME: use sulogin from util-linux once updated.
|
||||
for i in src/remount-fs/remount-fs.c src/core/mount.c src/core/swap.c src/fsck/fsck.c units/emergency.service.in units/rescue.service.m4.in; do
|
||||
for i in src/remount-fs/remount-fs.c src/core/mount.c src/core/swap.c src/fsck/fsck.c units/emergency.service.in units/rescue.service.m4.in src/journal/cat.c; do
|
||||
test -e $i
|
||||
substituteInPlace $i \
|
||||
--replace /bin/mount ${utillinux}/bin/mount \
|
||||
|
@ -57,6 +57,7 @@ stdenv.mkDerivation rec {
|
|||
--replace /sbin/swapoff ${utillinux}/sbin/swapoff \
|
||||
--replace /sbin/fsck ${utillinux}/sbin/fsck \
|
||||
--replace /bin/echo ${coreutils}/bin/echo \
|
||||
--replace /bin/cat ${coreutils}/bin/cat \
|
||||
--replace /sbin/sulogin ${sysvtools}/sbin/sulogin
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in a new issue