@@ -180,35 +180,6 @@ in
180180 # programs to be wrapped.
181181 WRAPPER_PATH=${config.system.path}/bin:${config.system.path}/sbin
182182
183− # Remove the old /var/setuid-wrappers path from the system...
184− #
185− # TODO: this is only necessary for upgrades 16.09 => 17.x;
186− # this conditional removal block needs to be removed after
187− # the release.
188− if [ -d /var/setuid-wrappers ]; then
189− rm -rf /var/setuid-wrappers
190− ln -s /run/wrappers/bin /var/setuid-wrappers
191− fi
192−
193− # Remove the old /run/setuid-wrappers-dir path from the
194− # system as well...
195− #
196− # TODO: this is only necessary for upgrades 16.09 => 17.x;
197− # this conditional removal block needs to be removed after
198− # the release.
199− if [ -d /run/setuid-wrapper-dirs ]; then
200− rm -rf /run/setuid-wrapper-dirs
201− ln -s /run/wrappers/bin /run/setuid-wrapper-dirs
202− fi
203−
204− # TODO: this is only necessary for upgrades 16.09 => 17.x;
205− # this conditional removal block needs to be removed after
206− # the release.
207− if readlink -f /run/booted-system | grep nixos-17 > /dev/null; then
208− rm -rf /run/setuid-wrapper-dirs
209− rm -rf /var/setuid-wrappers
210− fi
211−
212183 # We want to place the tmpdirs for the wrappers to the parent dir.
213184 wrapperDir=$(mktemp --directory --tmpdir="${parentWrapperDir}" wrappers.XXXXXXXXXX)
214185 chmod a+rx $wrapperDir