1
0

/boot is a directory, copy files instead of replacing it with symlink

for the record, u-boot doesn't like having /boot/fit -> ../nix/store/..../fit
symlinks so we don't use symlinks inside /boot either
This commit is contained in:
Daniel Barlow 2025-01-01 12:29:25 +00:00
parent 3af9e86624
commit 788169586f

View File

@ -99,8 +99,10 @@ in attrset:
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 (cd \$dest
if test -e boot ; then rm boot ; fi test -d boot || mkdir boot
ln -sf ${lib.strings.removePrefix "/" attrset.boot.target} ./boot cd boot
cp ../${lib.strings.removePrefix "/" attrset.boot.target}/* .
sync; sync
) )
'' else ""} '' else ""}
EOF EOF