Fix references to current-system/sw/sbin

Changed files
+15 -15
nixos
modules
config
services
monitoring
network-filesystems
x11
display-managers
pkgs
os-specific
servers
mail
postfix
tools
networking
network-manager
+1 -1
nixos/modules/config/users-groups.nix
···
shell = mkOption {
type = types.str;
-
default = "/run/current-system/sw/sbin/nologin";
+
default = "/run/current-system/sw/bin/nologin";
description = "The path to the user's shell.";
};
+2 -2
nixos/modules/services/monitoring/munin.nix
···
cap=$(sed -nr 's/.*#%#\s+capabilities\s*=\s*(.+)/\1/p' $file)
wrapProgram $file \
-
--set PATH "/var/setuid-wrappers:/run/current-system/sw/bin:/run/current-system/sw/sbin" \
+
--set PATH "/var/setuid-wrappers:/run/current-system/sw/bin:/run/current-system/sw/bin" \
--set MUNIN_LIBDIR "${pkgs.munin}/lib" \
--set MUNIN_PLUGSTATE "/var/run/munin"
···
mkdir -p /etc/munin/plugins
rm -rf /etc/munin/plugins/*
-
PATH="/var/setuid-wrappers:/run/current-system/sw/bin:/run/current-system/sw/sbin" ${pkgs.munin}/sbin/munin-node-configure --shell --families contrib,auto,manual --config ${nodeConf} --libdir=${muninPlugins} --servicedir=/etc/munin/plugins 2>/dev/null | ${pkgs.bash}/bin/bash
+
PATH="/var/setuid-wrappers:/run/current-system/sw/bin:/run/current-system/sw/bin" ${pkgs.munin}/sbin/munin-node-configure --shell --families contrib,auto,manual --config ${nodeConf} --libdir=${muninPlugins} --servicedir=/etc/munin/plugins 2>/dev/null | ${pkgs.bash}/bin/bash
'';
serviceConfig = {
ExecStart = "${pkgs.munin}/sbin/munin-node --config ${nodeConf} --servicedir /etc/munin/plugins/";
+1 -1
nixos/modules/services/network-filesystems/drbd.nix
···
boot.extraModprobeConfig =
''
-
options drbd usermode_helper=/run/current-system/sw/sbin/drbdadm
+
options drbd usermode_helper=/run/current-system/sw/bin/drbdadm
'';
environment.etc = singleton
+1 -1
nixos/modules/services/x11/display-managers/lightdm.nix
···
[UserList]
minimum-uid=500
hidden-users=${concatStringsSep " " dmcfg.hiddenUsers}
-
hidden-shells=/run/current-system/sw/sbin/nologin
+
hidden-shells=/run/current-system/sw/bin/nologin
'';
lightdmConf = writeText "lightdm.conf"
+1 -1
nixos/modules/services/x11/display-managers/sddm.nix
···
[Users]
MaximumUid=${toString config.ids.uids.nixbld}
HideUsers=${concatStringsSep "," dmcfg.hiddenUsers}
-
HideShells=/run/current-system/sw/sbin/nologin
+
HideShells=/run/current-system/sw/bin/nologin
[XDisplay]
MinimumVT=${toString xcfg.tty}
+1 -1
pkgs/os-specific/linux/autofs/autofs-v5.nix
···
configureFlags="--disable-move-mount --with-path=$PATH"
export MOUNT=/var/run/current-system/sw/bin/mount
export UMOUNT=/var/run/current-system/sw/bin/umount
-
export MODPROBE=/var/run/current-system/sw/sbin/modprobe
+
export MODPROBE=/var/run/current-system/sw/bin/modprobe
# Grrr, rpcgen can't find cpp. (NIXPKGS-48)
mkdir rpcgen
echo "#! $shell" > rpcgen/rpcgen
+1 -1
pkgs/os-specific/linux/systemd/fixes.patch
···
- cmdline[i++] = "/sbin/fsck";
- cmdline[i++] = arg_repair;
-
+ cmdline[i++] = "/run/current-system/sw/sbin/fsck";
+
+ cmdline[i++] = "/run/current-system/sw/bin/fsck";
cmdline[i++] = "-T";
/*
+1 -1
pkgs/os-specific/linux/udisks/1-default.nix
···
substituteInPlace src/main.c --replace \
"/sbin:/bin:/usr/sbin:/usr/bin" \
-
"${utillinux}/bin:${mdadm}/sbin:/var/run/current-system/sw/bin:/var/run/current-system/sw/sbin"
+
"${utillinux}/bin:${mdadm}/sbin:/var/run/current-system/sw/bin:/var/run/current-system/sw/bin"
'';
buildInputs =
+1 -1
pkgs/os-specific/linux/udisks/2-default.nix
···
''
substituteInPlace src/main.c --replace \
"@path@" \
-
"${utillinux}/bin:${mdadm}/sbin:/var/run/current-system/sw/bin:/var/run/current-system/sw/sbin"
+
"${utillinux}/bin:${mdadm}/sbin:/var/run/current-system/sw/bin:/var/run/current-system/sw/bin"
'';
nativeBuildInputs = [ pkgconfig intltool ];
+1 -1
pkgs/os-specific/linux/util-linux/default.nix
···
--enable-mesg
--enable-ddate
--disable-use-tty-group
-
--enable-fs-paths-default=/var/setuid-wrappers:/var/run/current-system/sw/sbin:/sbin
+
--enable-fs-paths-default=/var/setuid-wrappers:/var/run/current-system/sw/bin:/sbin
${if ncurses == null then "--without-ncurses" else ""}
'';
+1 -1
pkgs/os-specific/linux/zfs/mount_zfs_prefix.patch
···
# Ignore the prefix for the mount helper. It must be installed in /sbin/
# because this path is hardcoded in the mount(8) for security reasons.
+ #
-
+ # ... except on nixos, where it really is /var/run/current-system/sw/sbin,
+
+ # ... except on nixos, where it really is /var/run/current-system/sw/bin,
+ # which is where this will end up if we put it in ${out}/sbin.
#
sbin_PROGRAMS = mount.zfs
+1 -1
pkgs/servers/mail/postfix/default.nix
···
postPatch = ''
sed -i -e s,/usr/bin,/var/run/current-system/sw/bin, \
-
-e s,/usr/sbin,/var/run/current-system/sw/sbin, \
+
-e s,/usr/sbin,/var/run/current-system/sw/bin, \
-e s,:/sbin,, src/util/sys_defs.h
'';
+2 -2
pkgs/tools/networking/network-manager/nixos-purity.patch
···
for (iter = modules; *iter; iter++) {
- char *argv[3] = { "/sbin/modprobe", *iter, NULL };
-
+ char *argv[3] = { "/var/run/current-system/sw/sbin/modprobe", *iter, NULL };
+
+ char *argv[3] = { "/var/run/current-system/sw/bin/modprobe", *iter, NULL };
char *envp[1] = { NULL };
GError *error = NULL;
···
/* Make sure /dev/ppp exists (bgo #533064) */
if (stat ("/dev/ppp", &st) || !S_ISCHR (st.st_mode))
- ignored = system ("/sbin/modprobe ppp_generic");
-
+ ignored = system ("/var/run/current-system/sw/sbin/modprobe ppp_generic");
+
+ ignored = system ("/var/run/current-system/sw/bin/modprobe ppp_generic");
connection = nm_act_request_get_connection (req);
g_assert (connection);