From e9a003e3a209b4c103a38bd1219fe0d315490535 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 6 Jun 2012 16:07:30 +0000 Subject: [PATCH] * Updated systemd to 185 (which I overlooked because of the version jump). This contains the merged udev. svn path=/nixpkgs/trunk/; revision=34371 --- pkgs/os-specific/linux/systemd/default.nix | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/pkgs/os-specific/linux/systemd/default.nix b/pkgs/os-specific/linux/systemd/default.nix index 142df5baddb4..f867b3e224b9 100644 --- a/pkgs/os-specific/linux/systemd/default.nix +++ b/pkgs/os-specific/linux/systemd/default.nix @@ -1,17 +1,19 @@ { stdenv, fetchurl, pkgconfig, intltool, gperf, libcap, udev, dbus, kmod -, xz, pam, acl, cryptsetup, libuuid, m4, utillinux }: +, xz, pam, acl, cryptsetup, libuuid, m4, utillinux, usbutils, pciutils +, glib +}: stdenv.mkDerivation rec { - name = "systemd-44"; + name = "systemd-185"; src = fetchurl { url = "http://www.freedesktop.org/software/systemd/${name}.tar.xz"; - sha256 = "0g138b5yvn419xqrakpk75q2sb4g7pj10br9b6zq4flb9d5sqnks"; + sha256 = "1iwp41xvpq0x2flhhs8lpyjbfyg1220ahmy7037zdjy26w9g82br"; }; buildInputs = [ pkgconfig intltool gperf libcap udev dbus kmod xz pam acl - cryptsetup libuuid m4 + cryptsetup libuuid m4 usbutils pciutils glib ]; configureFlags = @@ -28,10 +30,15 @@ stdenv.mkDerivation rec { preConfigure = '' - for i in units/remount-rootfs.service src/remount-api-vfs.c src/mount.c; do + # FIXME: patch this in systemd properly (and send upstream). + for i in src/remount-fs/remount-fs.c src/core/mount.c src/core/swap.c src/fsck/fsck.c; do + test -e $i substituteInPlace $i \ --replace /bin/mount ${utillinux}/bin/mount \ - --replace /bin/umount ${utillinux}/bin/umount + --replace /bin/umount ${utillinux}/bin/umount \ + --replace /sbin/swapon ${utillinux}/sbin/swapon \ + --replace /sbin/swapoff ${utillinux}/sbin/swapoff \ + --replace /sbin/fsck ${utillinux}/sbin/fsck done '';