systemconfig: fix missing backslashes on env vars

mainline-omnia-wip
Daniel Barlow 2024-02-04 17:19:03 +00:00
parent 86f5c9b568
commit b0709a6443
1 changed files with 5 additions and 2 deletions

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