liminix

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

commit 788169586f68da4998657067f91d3b9feb3ba542
parent 3af9e86624631f19f73b0b4b410c7f56391ca2b5
Author: Daniel Barlow <dan@telent.net>
Date:   Wed,  1 Jan 2025 12:29:25 +0000

/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

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

diff --git a/pkgs/systemconfig/default.nix b/pkgs/systemconfig/default.nix @@ -99,8 +99,10 @@ in attrset: cp -v -fP \$src/bin/* \$src/etc/* \$dest ${if attrset ? boot then '' (cd \$dest - if test -e boot ; then rm boot ; fi - ln -sf ${lib.strings.removePrefix "/" attrset.boot.target} ./boot + test -d boot || mkdir boot + cd boot + cp ../${lib.strings.removePrefix "/" attrset.boot.target}/* . + sync; sync ) '' else ""} EOF