liminix

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

commit 6dc6a58481cc559deed92ac3ce3f13a9d0330165
parent 4d81c4f6c4709cd0bcd59835c03e9b3fd66e493e
Author: Daniel Barlow <dan@telent.net>
Date:   Sun, 29 Nov 2026 21:07:10 +0000

add warning for /boot symlink

Diffstat:
MNEWS | 14++++++++++++++
Mpkgs/systemconfig/default.nix | 6+++++-
2 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/NEWS b/NEWS @@ -186,3 +186,17 @@ which was a source of boot-time deadlocks * DCCP support has been removed from the firewall module, but it's unlikely anyone will notice (https://www.phoronix.com/news/Linux-6.16-Net-Next-Drops-DCCP) + +2026-11-28 + +Systems that boot using extlinux may have created a symlink from +/boot to some extlinux package + +boot -> nix/store/2pqnx4bcp76ng5fidw604hs9ysczhf9f-extlinux + +This is wrong and will cause update.sh to not work in inexplicable +ways. d36312c535 fixes the behaviour but if you have an existing /boot +symlink (you'll now get an error message) you need to remove +it by hand. See the install script in pkgs/systemconfig/default.nix +for more information. + diff --git a/pkgs/systemconfig/default.nix b/pkgs/systemconfig/default.nix @@ -103,9 +103,13 @@ stdenv.mkDerivation { if attrset ? boot then '' (cd \$dest + if test -l boot ; then + echo "/boot is a symlink, manual cleanup needed. See NEWS file" + exit 1 + fi test -d boot || mkdir boot cd boot - cp ../${lib.strings.removePrefix "/" attrset.boot.target}/* . + cp -a ../${lib.strings.removePrefix "/" attrset.boot.target}/* . sync; sync ) ''