activation-script service: add utillinux to path

This commit is contained in:
Nikolay Amiantov 2016-09-17 13:53:12 +03:00
parent 08881b8cbe
commit 213356c927

View file

@ -19,6 +19,7 @@ let
glibc # needed for getent
shadow
nettools # needed for hostname
utillinux # needed for mount and mountpoint
];
in
@ -168,12 +169,12 @@ in
local options="$3"
local fsType="$4"
if ${pkgs.utillinux}/bin/mountpoint -q "$mountPoint"; then
if mountpoint -q "$mountPoint"; then
local options="remount,$options"
else
mkdir -m 0755 -p "$mountPoint"
fi
${pkgs.utillinux}/bin/mount -t "$fsType" -o "$options" "$device" "$mountPoint"
mount -t "$fsType" -o "$options" "$device" "$mountPoint"
}
source ${config.system.build.earlyMountScript}
'';