liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit b0709a644345a84c3458d7f987495d4a9995f6f0
parent 86f5c9b568f6ef72e73563c42e782ca7df58448e
Author: Daniel Barlow <dan@telent.net>
Date:   Sun,  4 Feb 2024 17:19:03 +0000

systemconfig: fix missing backslashes on env vars

Diffstat:
Mpkgs/systemconfig/default.nix | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/pkgs/systemconfig/default.nix b/pkgs/systemconfig/default.nix @@ -92,10 +92,13 @@ in attrset: # case otherwise we will install into a ramfs/rootfs "" } - if test -d $dest/persist; then dest=$dest/persist; fi + if test -d \$dest/persist; then dest=\$dest/persist; fi cp -v -fP \$src/bin/* \$src/etc/* \$dest ${if attrset ? boot then '' - (cd \$dest && rm ./boot && ln -sf ${lib.strings.removePrefix "/" attrset.boot.target} ./boot) + (cd \$dest + if test -e boot ; then rm boot ; fi + ln -sf ${lib.strings.removePrefix "/" attrset.boot.target} ./boot + ) '' else ""} EOF chmod +x $out/bin/install