From 1681647502aeffd2db1e9a84e6ccb4c3c6b3783b Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 11 May 2024 21:58:08 +0200 Subject: fix(sys/boot): Always update the config-file --- sys/boot/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/boot/default.nix b/sys/boot/default.nix index 68c6454a..1a849fbb 100644 --- a/sys/boot/default.nix +++ b/sys/boot/default.nix @@ -16,6 +16,10 @@ nixosDir = "/EFI/nixos"; + # FIXME: This system has two big problems: + # 1. It does not updated files, which still have the same name + # 2. It forgets about files, which were 'deleted' in this configuration (these just + # stay on disk forever) <2024-05-11> copyExtraFiles = '' echo "[systemd-boot] copying files to ${bootMountPoint}" empty_file=$(mktemp) @@ -37,10 +41,10 @@ bash */ '' - if ! [ -e ${esa "${bootMountPoint}/loader/entries/${n}"} ]; then + # if ! [ -e ${esa "${bootMountPoint}/loader/entries/${n}"} ]; then install -Dp "${pkgs.writeText n v}" ${esa "${bootMountPoint}/loader/entries/${n}"} install -D "$empty_file" ${esa "${bootMountPoint}/${nixosDir}/.extra-files/loader/entries/${n}"} - fi + # fi '') cfg.extraEntries)} ''; -- cgit 1.4.1