nixos/systemd-boot-builder: remove old devicetree files (#439585)

authored by Jared Baur and committed by GitHub 231bf43f 33d95fc7

+2
+2
nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py
··· 258 258 bootspec = get_bootspec(gen.profile, gen.generation) 259 259 known_paths.append(copy_from_file(bootspec.kernel, True).name) 260 260 known_paths.append(copy_from_file(bootspec.initrd, True).name) 261 + if bootspec.devicetree is not None: 262 + known_paths.append(copy_from_file(bootspec.devicetree, True).name) 261 263 for path in (BOOT_MOUNT_POINT / "loader/entries").glob("nixos*-generation-[1-9]*.conf", case_sensitive=False): 262 264 if rex_profile.match(path.name): 263 265 prof = rex_profile.sub(r"\1", path.name)