about summary refs log tree commit diff
path: root/nixos/modules/installer/cd-dvd
AgeCommit message (Collapse)AuthorFilesLines
2022-10-01Merge pull request #189113 from MatthewCroughan/mc/pin-installer-registryChristian Kögler1-0/+1
pin nixpkgs registry to pkgs.path via nix.settings.registry
2022-09-29nixos/iso-image: Refactor: apply / unshadowRobert Hensing1-15/+13
2022-09-29nixos/iso-image: Fix evalRobert Hensing1-6/+6
2022-09-29lib/systems/default.nix: add efiArch suffixesIvan Nikolaenko1-13/+7
Move already implemented functionality to the upper level so it could be used in a more generic way. Signed-off-by: Ivan Nikolaenko <ivan.nikolaenko@unikie.com>
2022-09-26Update nixos/modules/installer/cd-dvd/channel.nixMatthewCroughan1-1/+1
Co-authored-by: Louis Bettens <lourkeur@users.noreply.github.com>
2022-09-26nixos/modules/installer/cd-dvd/channel.nix: pin nixpkgs registry to ↵matthewcroughan1-4/+1
pkgs.path via nix.settings.registry
2022-08-31nixos/modules/installer/cd-dvd/channel.nix: pin nixpkgs registry to ↵matthewcroughan1-0/+4
pkgs.path via boot.postBootCommands
2022-08-14nixos/installer: mkForce -> mkImageMediaOverrideAndrew Marshall1-1/+1
This is image media, so use the override level designed for it. As detailed in the definition for mkImageMediaOverride: > image media profiles can be derived by inclusion into host config, > hence needing to override host config, but do allow user to mkForce
2022-08-06nixos/*: automatically convert option docspennae1-19/+19
2022-08-03nixos/*: replace </para><para> with double linebreakspennae1-1/+1
our xslt already replaces double line breaks with a paragraph close and reopen. not using explicit para tags lets nix-doc-munge convert more descriptions losslessly. only whitespace changes to generated documents, except for two strongswan options gaining paragraph two breaks they arguably should've had anyway.
2022-07-30treewide: use isx86 where appropriateAlyssa Ross1-1/+1
2022-07-30treewide: use isAarch where appropriateAlyssa Ross1-1/+1
2022-07-12nixos: remove unused "system tarball" modulesAlyssa Ross5-677/+0
This has all been commented in nixos/release.nix since at least 2015, so it's not doing us any good to keep it around.
2022-06-05installation-cd: prevent gnome from sleepingVictor Fuentes1-1/+2
2022-05-25lib/systems/inspect.nix: remove isPowerPCAdam Joseph1-1/+1
Very confusingly, the `isPowerPC` predicate in `lib/systems/inspect.nix` does *not* match `powerpc64le`! This is because `isPowerPC` is defined as isPowerPC = { cpu = cpuTypes.powerpc; }; Where `cpuTypes.powerpc` is: { bits = 32; significantByte = bigEndian; family = "power"; }; This means that the `isPowerPC` predicate actually only matches the subset of machines marketed under this name which happen to be 32-bit and running in big-endian mode which is equivalent to: with stdenv.hostPlatform; isPower && isBigEndian && is32bit This seems like a sharp edge that people could easily cut themselves on. In fact, that has already happened: in `linux/kernel/common-config.nix` there is a test which will always fail: (stdenv.hostPlatform.isPowerPC && stdenv.hostPlatform.is64bit) A more subtle case of the strict isPowerPC being used instead of the moreg general isPower accidentally are the GHC expressions: Update pkgs/development/compilers/ghc/8.10.7.nix Update pkgs/development/compilers/ghc/8.8.4.nix Update pkgs/development/compilers/ghc/9.2.2.nix Update pkgs/development/compilers/ghc/9.0.2.nix Update pkgs/development/compilers/ghc/head.nix Since the remaining legitimate use sites of isPowerPC are so few, remove the isPowerPC predicate completely. The alternative expression above is noted in the release notes as an alternative. Co-authored-by: sternenseemann <sternenseemann@systemli.org>
2022-05-19Merge #172668: installation-cd: add more guest tools to NixOS graphical ↵Vladimír Čunát1-1/+8
installation base
2022-05-17Remove mkDefaultners1-6/+6
2022-05-16installation-cd: remove broken virtualbox moduleners1-6/+8
2022-05-13Merge pull request #165876 from tpwrules/slim-eltoritoArtturi1-9/+7
iso-image: slim down UEFI El Torito image
2022-05-12installation-cd: add more guest tools to graphical installation baseners1-1/+6
2022-05-08installation-cd-base: fix evalK9001-1/+1
2022-05-03installation-cd: add calamares-plasma5 cdVictor Fuentes2-3/+50
2022-05-03installation-cd: add calamares-gnome cdVictor Fuentes4-11/+94
2022-04-30Merge pull request #169113 from ElvishJerricco/systemd-stage-1-installer-testsBernardo Meurer1-1/+2
nixos: Installer tests for systemd stage 1
2022-04-24nixos/filesystems: Make most simple filesystems compatible with systemdJanne Heß1-3/+3
This includes disabling some features in the initrd by default, this is only done when the new initrd is used. Namely, ext and bcache are disabled by default. bcache gets an own enable option while ext is detected like any other filesystem.
2022-04-17nixos: Fix channel copying in installer tests with systemd stage 1Will Fancher1-1/+2
2022-04-13iso-image: slim down UEFI El Torito imageThomas Watson1-9/+7
UEFI firmware does not have to be able to read ISO9660 filesystems, so the El Torito mechanism provides a way to specify an embedded FAT32 image which contains files the UEFI firmware itself must be able to read, such as UEFI executables. Once GRUB starts and reads its configuration, it can access the ISO9660 filesystem to load other files. This change removes the unused kernel, initrd, and GRUB font files from the El Torito image, but keeps the GRUB configuration and UEFI executables. These files have been present since EFI support was originally introduced in commit 097c656. Other distribution ISOs, such as Ubuntu 20.04, Fedora 35, and Windows 10 work this way too. This saves 24MiB on x86_64 and 61MiB on aarch64 ISOs.
2022-03-25installer/cd-dvd/iso-image: add syslinuxTheme config optionDaniel Kilimnik1-22/+33
It was not possible to change the theme used by syslinux when building an iso image.
2022-02-19installation-cd-graphical-gnome: add useful shortcuts to the dashJan Tojnar1-2/+2
The live image is primarily used for installation so we should make link to manual as well as other useful tools front and center, instead of having them buried in the app drawer. The default GNOME apps can still be found there when the ISO is used for demonstration purposes.
2022-01-05installer/cd-dvd/iso-image: avoid leaking build timestamps on non-x86Thomas Watson1-7/+6
2021-11-20treewide: refactor isi686 && isx86_64 -> isx86Ryan Burns1-1/+1
2021-10-04nixos/doc: clean up defaults and examplesNaïm Favier2-4/+4
2021-08-18Merge staging-next into staginggithub-actions[bot]2-48/+55
2021-08-12top-level: move linux kernels, packages and related functions to ↵Dominik Xaver Hörl3-3/+3
linux-kernels.nix
2021-08-03lib/modules: add mkImageMediaOverrideDavid Arnold2-16/+12
so the underlaying use case of the preceding commit is so generic, that we gain a lot in reasoning to give it an appropriate name. As the comment states: image media needs to override host config short of mkForce
2021-08-03nixos/boot-media: soft-force entire fs layoutDavid Arnold2-48/+59
https://github.com/NixOS/nixpkgs/pull/131760 was made to avo a speicific configuration conflict that errored out for multiple definitions of "/" when the installer where overlayed on any existing host configuration. --- Problem 1: It turns out that in also other mountpoints can coflict. Solution 1: use `mkOverride 60` for all mountpoints (even for the ones unlikely causing confilct for consistency sake) --- Problem 2: It turns out that on an installation media for a fresh machine (before formatting), we usually don't have any devices yet formatted. However defining for example `fileSystems.<nme>.device = "/dev/disk/by-label/...", in newer versions of nixos, seems to make the system startup fail. Similarily waiting for a non-existent swap device does not make the startup fail, but has a 1:30 min timeout. Solution 2: For an installation medium, soft-override ("unless users know what they are doing") the entire `fileSystems` and `swapDevices` definitions.
2021-07-28nixos/installer: force root fs typeDavid Arnold1-1/+5
installer media can be used on top of existing host configs. In such scenarions, root fs types will already be defined. Before this change, this will inevitably lead to the following error: ```console error: The option `fileSystems./.fsType' has conflicting definition values: - In `/nix/store/2nl5cl4mf6vnldpbxhrbzfh0n8rsv9fm-source/DevOS/os/hardware/common.nix': "ext4" - In `/nix/store/jbch90yqx6gg1h3fq30jjj2b6h6jfjgs-source/nixos/modules/installer/cd-dvd/iso-image.nix': "tmpfs" ``` With this patch, the installers will override those values according to their own local requirement. Use `mkOverride 60` so that conscientious overriding specially targeted at the installer, e.g. with `mkForce` is still straight forward.
2021-07-03installation-cd-base.nix: Add 'live.nixos.passwd' boot optionjakobrs1-0/+11
For interactive SSH access to a system without a (working) keyboard and monitor, without rebuilding the image itself.
2021-06-26Merge pull request #119657 from syncom/syncom/deterministic-efiimgSandro1-2/+12
2021-06-08treewide: Use `fileSystems.<name>.depends` option where necessaryjakobrs1-0/+6
2021-05-22iso-image: Improve disk detectionSamuel Dionne-Riel1-1/+9
This should help in rare hardware-specific situations where the root is not automatically detected properly. We search using a marker file. This should help some weird UEFI setups where the root is set to `(hd0,msdos2)` by default. Defaulting to `(hd0)` by looking for the ESP **will break themeing**. It is unclear why, but files in `(hd0,msdos2)` are not all present as they should be. This also fixes an issue introduced with cb5c4fcd3c5d4070f040d591b2dd1da580f234d1 where rEFInd stopped booting in many cases. This is because it ended up using (hd0) rather than using the `search` which was happening beforehand, which in turn uses (hd0,msdos2), which is the ESP. Putting back the `search` here fixes that.
2021-05-22iso-image: unqualified root → ($root)Samuel Dionne-Riel1-6/+6
This technically changes nothing. In practice `$root` is always the "CWD", whether searched for automatically or not. But this serves to announce we are relying on `$root`... I guess...
2021-05-22iso-image: change date on all filesSamuel Dionne-Riel1-1/+3
It may be that in some conditions dates earlier than 1980 on FAT on GRUB 2.06~ish will cause failures https://github.com/NixOS/nixpkgs/issues/123376#issuecomment-845515035
2021-05-22iso-image: Force gfxmodeSamuel Dionne-Riel1-0/+13
https://www.gnu.org/software/grub/manual/grub/html_node/gfxmode.html
2021-05-20iso-image: More concise code for fixed order mmd and mcopy operationsNing Shang1-10/+2
Thanks @misuzu for the suggestions.
2021-05-20iso-image: Workaround for better determinism in du outputNing Shang1-1/+2
The value of du output depends on the underlying file system, and thus is not fully deterministic. This workaround rounds up the disk usage size to the nearest multiple of 1MB, to increase the probability that two du output values on two different file systems fall within the same 1MB window. Note that this workaround won't make du output 100% reproducible, but will increase the probability of getting deterministic builds across different file systems.
2021-05-17iso-image: Use fixed-order mcopy instead of file globbingNing Shang1-1/+18
mcopy file globbing is non-deterministic with respect to the underlying file system. As a result, the current mcopy approach is less likely to reproduce efi.img on different machines. We replace mcopy file globbing with fixed-order mmd and mcopy operations for better determinism. We also use faketime on mmd for the same reason. We use faketime, mmd, and mcopy directly, becase they are already in PATH. Thank misuzu@ for the feedback.
2021-05-10Merge pull request #121450 from samueldr/feature/cross-uefi-isoSamuel Dionne-Riel1-5/+13
iso-image: Fixes for cross-compilation
2021-05-10Merge pull request #121834 from samueldr/feature/raspberrypi4-image-cleanupSamuel Dionne-Riel1-14/+0
sd_image_raspberrypi4: Remove, as planned initially
2021-05-08gnome: rename from gnome3Jan Tojnar1-1/+1
Since GNOME version is now 40, it no longer makes sense to use the old attribute name.