mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
systemd: Add kexec support
This commit is contained in:
parent
9278aa436e
commit
7216b3c844
1 changed files with 4 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
{ stdenv, fetchurl, pkgconfig, intltool, gperf, libcap, dbus, kmod
|
||||
, xz, pam, acl, cryptsetup, libuuid, m4, utillinux
|
||||
, glib, kbd, libxslt, coreutils, libgcrypt, sysvtools, docbook_xsl
|
||||
, kexectools
|
||||
}:
|
||||
|
||||
assert stdenv.isLinux;
|
||||
|
@ -50,7 +51,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 src/journal/cat.c; 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 src/core/shutdown.c; do
|
||||
test -e $i
|
||||
substituteInPlace $i \
|
||||
--replace /bin/mount ${utillinux}/bin/mount \
|
||||
|
@ -60,7 +61,8 @@ stdenv.mkDerivation rec {
|
|||
--replace /sbin/fsck ${utillinux}/sbin/fsck \
|
||||
--replace /bin/echo ${coreutils}/bin/echo \
|
||||
--replace /bin/cat ${coreutils}/bin/cat \
|
||||
--replace /sbin/sulogin ${sysvtools}/sbin/sulogin
|
||||
--replace /sbin/sulogin ${sysvtools}/sbin/sulogin \
|
||||
--replace /sbin/kexec ${kexectools}/sbin/kexec
|
||||
done
|
||||
|
||||
substituteInPlace src/journal/catalog.c \
|
||||
|
|
Loading…
Reference in a new issue