systemd: Add kexec support
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, intltool, gperf, libcap, dbus, kmod
|
{ stdenv, fetchurl, pkgconfig, intltool, gperf, libcap, dbus, kmod
|
||||||
, xz, pam, acl, cryptsetup, libuuid, m4, utillinux
|
, xz, pam, acl, cryptsetup, libuuid, m4, utillinux
|
||||||
, glib, kbd, libxslt, coreutils, libgcrypt, sysvtools, docbook_xsl
|
, glib, kbd, libxslt, coreutils, libgcrypt, sysvtools, docbook_xsl
|
||||||
|
, kexectools
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert stdenv.isLinux;
|
assert stdenv.isLinux;
|
||||||
@@ -50,7 +51,7 @@ stdenv.mkDerivation rec {
|
|||||||
''
|
''
|
||||||
# FIXME: patch this in systemd properly (and send upstream).
|
# FIXME: patch this in systemd properly (and send upstream).
|
||||||
# FIXME: use sulogin from util-linux once updated.
|
# 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
|
test -e $i
|
||||||
substituteInPlace $i \
|
substituteInPlace $i \
|
||||||
--replace /bin/mount ${utillinux}/bin/mount \
|
--replace /bin/mount ${utillinux}/bin/mount \
|
||||||
@@ -60,7 +61,8 @@ stdenv.mkDerivation rec {
|
|||||||
--replace /sbin/fsck ${utillinux}/sbin/fsck \
|
--replace /sbin/fsck ${utillinux}/sbin/fsck \
|
||||||
--replace /bin/echo ${coreutils}/bin/echo \
|
--replace /bin/echo ${coreutils}/bin/echo \
|
||||||
--replace /bin/cat ${coreutils}/bin/cat \
|
--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
|
done
|
||||||
|
|
||||||
substituteInPlace src/journal/catalog.c \
|
substituteInPlace src/journal/catalog.c \
|
||||||
|
|||||||
Reference in New Issue
Block a user