fix the startup script to run on dash based systems

This commit is contained in:
Michael Bishop 2018-12-07 05:00:32 -04:00
parent 113d8c6b42
commit e8d57a08bc
No known key found for this signature in database
GPG Key ID: C294FC1A485A409A

View File

@ -70,7 +70,8 @@ in rec {
makeStartup = { target, nixUserChrootFlags, nix-user-chroot', run }:
writeScript "startup" ''
.${nix-user-chroot'}/bin/nix-user-chroot -n ./nix ${nixUserChrootFlags} -- ${target}${run} $@
#!/bin/sh
.${nix-user-chroot'}/bin/nix-user-chroot -n ./nix ${nixUserChrootFlags} -- ${target}${run} $@
'';
nix-bootstrap = { target, extraTargets ? [], run, nix-user-chroot' ? nix-user-chroot, nixUserChrootFlags ? "" }: