forked from mirrors/nixpkgs
* Use the right mount command in the filesystems job so that
NTFS-3G works properly. svn path=/nixos/trunk/; revision=12565
This commit is contained in:
parent
2783f96ce7
commit
ffe45949e8
|
@ -371,7 +371,9 @@ in
|
|||
extraHosts = mkOption {
|
||||
default = "";
|
||||
example = "192.168.0.1 lanlocalhost";
|
||||
description = "Pasted verbatim into /etc/hosts.";
|
||||
description = ''
|
||||
Additional entries to be appended to <filename>/etc/hosts</filename>.
|
||||
'';
|
||||
};
|
||||
|
||||
useDHCP = mkOption {
|
||||
|
|
|
@ -108,7 +108,7 @@ rec {
|
|||
# The services (Upstart) configuration for the system.
|
||||
upstartJobs = import ../upstart-jobs/default.nix {
|
||||
inherit config pkgs nix modprobe nssModulesPath nixEnvVars
|
||||
optionDeclarations kernelPackages;
|
||||
optionDeclarations kernelPackages mount;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{config, pkgs, nix, modprobe, nssModulesPath, nixEnvVars, optionDeclarations, kernelPackages}:
|
||||
{config, pkgs, nix, modprobe, nssModulesPath, nixEnvVars, optionDeclarations, kernelPackages, mount}:
|
||||
|
||||
let
|
||||
|
||||
|
@ -118,6 +118,7 @@ let
|
|||
|
||||
# Mount file systems.
|
||||
(import ../upstart-jobs/filesystems.nix {
|
||||
inherit mount;
|
||||
inherit (pkgs) utillinux e2fsprogs;
|
||||
fileSystems = config.fileSystems;
|
||||
})
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{utillinux, e2fsprogs, fileSystems}:
|
||||
{utillinux, e2fsprogs, fileSystems, mount}:
|
||||
|
||||
let
|
||||
|
||||
|
@ -61,7 +61,7 @@ script
|
|||
# remount to change the options but nothing else.
|
||||
if cat /proc/mounts | grep -F -q \" $mountPoint \"; then
|
||||
echo \"remounting $device on $mountPoint\"
|
||||
${utillinux}/bin/mount -t \"$fsType\" \\
|
||||
${mount}/bin/mount -t \"$fsType\" \\
|
||||
-o remount,\"$options\" \\
|
||||
\"$device\" \"$mountPoint\" || true
|
||||
continue
|
||||
|
@ -84,7 +84,7 @@ script
|
|||
|
||||
if test \"$prevMountPoint\" = \"$mountPoint\"; then
|
||||
echo \"remounting $device on $mountPoint\"
|
||||
${utillinux}/bin/mount -t \"$fsType\" \\
|
||||
${mount}/bin/mount -t \"$fsType\" \\
|
||||
-o remount,\"$options\" \\
|
||||
\"$device\" \"$mountPoint\" || true
|
||||
continue
|
||||
|
@ -92,7 +92,7 @@ script
|
|||
|
||||
if test -n \"$prevMountPoint\"; then
|
||||
echo \"unmount $device from $prevMountPoint\"
|
||||
${utillinux}/bin/umount \"$prevMountPoint\" || true
|
||||
${mount}/bin/umount \"$prevMountPoint\" || true
|
||||
fi
|
||||
|
||||
fi
|
||||
|
@ -106,7 +106,7 @@ script
|
|||
|
||||
if test \"\$autocreate\" = 1; then mkdir -p \"\$mountPoint\"; fi
|
||||
|
||||
if ${utillinux}/bin/mount -t \"$fsType\" -o \"$options\" \"$device\" \"$mountPoint\"; then
|
||||
if ${mount}/bin/mount -t \"$fsType\" -o \"$options\" \"$device\" \"$mountPoint\"; then
|
||||
newDevices=1
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue