systemconfig: fix missing backslashes on env vars

This commit is contained in:
Daniel Barlow 2024-02-04 17:19:03 +00:00
parent 86f5c9b568
commit b0709a6443

View file

@ -92,10 +92,13 @@ in attrset:
# case otherwise we will install into a ramfs/rootfs # 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 cp -v -fP \$src/bin/* \$src/etc/* \$dest
${if attrset ? boot then '' ${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 ""} '' else ""}
EOF EOF
chmod +x $out/bin/install chmod +x $out/bin/install