summary refs log tree commit diff
path: root/nixos/modules/installer/netboot/netboot.nix
Commit message (Collapse)AuthorAge
* netboot: Support cmdline variable from netboot.xyzMichael Hoang2021-12-23
|
* nixos/doc: clean up defaults and examplesNaïm Favier2021-10-04
|
* lib/modules: add mkImageMediaOverrideDavid Arnold2021-08-03
| | | | | | | | | 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
* nixos/boot-media: soft-force entire fs layoutDavid Arnold2021-08-03
| | | | | | | | | | | | | | | | | | 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.
* nixos/installer: force root fs typeDavid Arnold2021-07-28
| | | | | | | | | | | | | | | | | | 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.
* treewide: Use `fileSystems.<name>.depends` option where necessaryjakobrs2021-06-08
|
* lib: Clean up how linux and gcc config is specifiedJohn Ericson2021-01-23
| | | | | | | Second attempt of 8929989614589ee3acd070a6409b2b9700c92d65; see that commit for details. This reverts commit 0bc275e63423456d6deb650e146120c39c1e0723.
* Revert "lib: Clean up how linux and gcc config is specified"Jonathan Ringer2021-01-22
| | | | | | | This is a stdenv-rebuild, and should not be merged into master This reverts commit 8929989614589ee3acd070a6409b2b9700c92d65.
* lib: Clean up how linux and gcc config is specifiedJohn Ericson2021-01-21
| | | | | | | | | | | | | | | | The `platform` field is pointless nesting: it's just stuff that happens to be defined together, and that should be an implementation detail. This instead makes `linux-kernel` and `gcc` top level fields in platform configs. They join `rustc` there [all are optional], which was put there and not in `platform` in anticipation of a change like this. `linux-kernel.arch` in particular also becomes `linuxArch`, to match the other `*Arch`es. The next step after is this to combine the *specific* machines from `lib.systems.platforms` with `lib.systems.examples`, keeping just the "multiplatform" ones for defaulting.
* Revert "Revert "Merge master into staging-next""Frederik Rietdijk2020-02-05
| | | | | | | | In 87a19e9048773d5a363679617406ad148d36c3b8 I merged staging-next into master using the GitHub gui as intended. In ac241fb7a570d6cf81d229ad22a8889602639160 I merged master into staging-next for the next staging cycle, however, I accidentally pushed it to master. Thinking this may cause trouble, I reverted it in 0be87c79797a5fa384fbc356c74ed54f9f7829ea. This was however wrong, as it "removed" master. This reverts commit 0be87c79797a5fa384fbc356c74ed54f9f7829ea.
* Revert "Merge master into staging-next"Frederik Rietdijk2020-02-05
| | | | | | | | I merged master into staging-next but accidentally pushed it to master. This should get us back to 87a19e9048773d5a363679617406ad148d36c3b8. This reverts commit ac241fb7a570d6cf81d229ad22a8889602639160, reversing changes made to 76a439239eb310d9ad76d998b34d5d3bc0e37acb.
* use overlayfs by default for netboot and isoRichard Marko2020-02-05
|
* treewide: remove redundant recvolth2019-08-28
|
* nixos netboot: explicitly specify initrdNikolay Amiantov2019-07-15
| | | | Needed for iPXE on UEFI, see http://forum.ipxe.org/archive/index.php/thread-7589.html
* nixos/netboot: import -> callPackagevolth2019-04-18
| | | | | Copy-paste from iso-image.nix Besides the simplification, it should use `pkgs.buildPackages.squashfsTools` because it is used in `nativeBuildInputs` instead of incorrect `pkgs.squashfsTools` which was forced by `import'
* reewide: Purge all uses `stdenv.system` and top-level `system`John Ericson2018-08-30
| | | | It is deprecated and will be removed after 18.09.
* nixos/netboot: Remove redundant settingJohn Ericson2018-08-20
| | | @volth tells me that is the default for `system.boot.loader.kernelFile` anyways.
* treewide: Purge `stdenv.platform` and top-level `platform`John Ericson2018-08-20
| | | | Progress towards #27069
* nixos/netboot: Fix evaluation erroraszlig2018-03-03
| | | | | | | | | | | The function arguments for make-squashfs.nix have changed in df117acab7bf345500ffada26c240c9f815b7c21, so we need to change them here as well. The boot.netboot NixOS VM test now succeeds again. Signed-off-by: aszlig <aszlig@nix.build> Cc: @edolstra
* Netboot: Add aarch64Graham Christensen2017-12-11
|
* nixos installer: don't log refused packets to consoleFranz Pletz2017-01-09
| | | | Fixes #19764.
* make the /nix/store writable under netboot imagesmichael bishop2016-11-29
|
* installer: simple PXE bootable NixOS installerNahum Shalman2016-04-29
The Nix store squashfs is stored inside the initrd instead of separately (cherry picked from commit 976fd407796877b538c470d3a5253ad3e1f7bc68) Signed-off-by: Domen Kožar <domen@dev.si>