about summary refs log tree commit diff
path: root/nixos/modules/installer
diff options
context:
space:
mode:
authorSamuel Dionne-Riel <samuel@dionne-riel.com>2022-01-23 21:15:26 -0500
committerGitHub <noreply@github.com>2022-01-23 21:15:26 -0500
commit18ebd1c330c43fca5b424178c603ec24f034acc0 (patch)
tree4edb3c21a49a18cdc34eca47a7b448e9bccfc6ca /nixos/modules/installer
parentd9b0b14a6651c48a8482bbb243a6f0f66fb772a9 (diff)
parent450ce00ec4c2f48fffb552f03898e5a3d64164f4 (diff)
downloadnixlib-18ebd1c330c43fca5b424178c603ec24f034acc0.tar
nixlib-18ebd1c330c43fca5b424178c603ec24f034acc0.tar.gz
nixlib-18ebd1c330c43fca5b424178c603ec24f034acc0.tar.bz2
nixlib-18ebd1c330c43fca5b424178c603ec24f034acc0.tar.lz
nixlib-18ebd1c330c43fca5b424178c603ec24f034acc0.tar.xz
nixlib-18ebd1c330c43fca5b424178c603ec24f034acc0.tar.zst
nixlib-18ebd1c330c43fca5b424178c603ec24f034acc0.zip
Merge pull request #153409 from tpwrules/fix-nonx86-iso-reproducibility
installer/cd-dvd/iso-image: avoid leaking build timestamps on non-x86
Diffstat (limited to 'nixos/modules/installer')
-rw-r--r--nixos/modules/installer/cd-dvd/iso-image.nix13
1 files changed, 6 insertions, 7 deletions
diff --git a/nixos/modules/installer/cd-dvd/iso-image.nix b/nixos/modules/installer/cd-dvd/iso-image.nix
index 30610b4f4260..3ff1b3d670e9 100644
--- a/nixos/modules/installer/cd-dvd/iso-image.nix
+++ b/nixos/modules/installer/cd-dvd/iso-image.nix
@@ -734,13 +734,13 @@ in
         { source = config.system.build.squashfsStore;
           target = "/nix-store.squashfs";
         }
-        { source = config.isoImage.splashImage;
-          target = "/isolinux/background.png";
-        }
         { source = pkgs.writeText "version" config.system.nixos.label;
           target = "/version.txt";
         }
       ] ++ optionals canx86BiosBoot [
+        { source = config.isoImage.splashImage;
+          target = "/isolinux/background.png";
+        }
         { source = pkgs.substituteAll  {
             name = "isolinux.cfg";
             src = pkgs.writeText "isolinux.cfg-in" isolinuxCfg;
@@ -761,6 +761,9 @@ in
         { source = (pkgs.writeTextDir "grub/loopback.cfg" "source /EFI/boot/grub.cfg") + "/grub";
           target = "/boot/grub";
         }
+        { source = config.isoImage.efiSplashImage;
+          target = "/EFI/boot/efi-background.png";
+        }
       ] ++ optionals (config.boot.loader.grub.memtest86.enable && canx86BiosBoot) [
         { source = "${pkgs.memtest86plus}/memtest.bin";
           target = "/boot/memtest.bin";
@@ -769,10 +772,6 @@ in
         { source = config.isoImage.grubTheme;
           target = "/EFI/boot/grub-theme";
         }
-      ] ++ [
-        { source = config.isoImage.efiSplashImage;
-          target = "/EFI/boot/efi-background.png";
-        }
       ];
 
     boot.loader.timeout = 10;