summaryrefslogtreecommitdiffstats
path: root/nixos/modules/installer/cd-dvd/sd-image.nix
AgeCommit message (Collapse)Author
2021-02-19installer: add deprecation warning about sd-card file moveDavid Arnold
2021-02-19installer: add back-compat files for sd-card image folder moveDavid Arnold
2021-02-19installer: move ./cd-dvd/sd-card* -> ./sd-card/David Arnold
2020-12-12nixos/sd-image: explicit reference to the gawk packageMatej Urbas
The `awk` command is not installed in the standard env. So this command fails if the `awk` command is not installed by some external module.
2020-12-02sd-image: fix resizing if root is not the second partition.Jörg Thalheim
2020-11-24utillinux: rename to util-linuxGraham Christensen
2020-08-27nixos/sdImage: add postBuildCommandsRichard Marko
This allows to perform `dd if= of=$img` after the image is built which is handy to add e.g. uBoot SPL to the built image. Instructions for some ARM boards sometimes contain this step that needs to be performed manually, with this patch it can be part of the nix file used to built the image.
2020-06-21nixos/sd-image-*: use boot.loader.generic-extlinux-compatible.populateCmdFlorian Klink
While getting rid of the separate extlinux-conf-builder import, this now also honors boot.loader.timeout in the initial sd card image if specified.
2020-06-20Merge pull request #90119 from samueldr/feature/rpi4-fixupsSamuel Dionne-Riel
Fix some pitfalls from the Raspberry Pi 4 specific sd image
2020-06-14images: remove original files when using zstd for compressionPavol Rusnak
2020-06-11sd-image: Make firmware partition name configurableSamuel Dionne-Riel
This will be helpful in the now too-long-lived image for the Raspberry Pi 4. We'll be able to properly configure the partition to be useful.
2020-06-07Merge pull request #85947 from prusnak/images-zstdMarek Mahut
Use zstd for ISO and SD images
2020-06-02Merge pull request #60174 from exarkun/patch-2Graham Christensen
Fix the rootPartitionUUID description
2020-04-24sd-image: use zstd for compressionPavol Rusnak
2019-12-13nixos: compress make-ext4-fs with zstdBernardo Meurer
2019-11-05sd-image: Add the compressed file path for hydra.Colin L Rice
This makes the nixos on arm user instructions work again.
2019-09-30sdImage: add option to enable bzip2 compressionAmineChikhaoui
also make SD image compression the default setup. Fixes issues with output size such as: https://hydra.nixos.org/build/102163603
2019-09-20sdImage: use findmnt to get root device when resizing (#58059)Silvan Mosberger
sdImage: use findmnt to get root device when resizing
2019-09-01sd-image: don't use installer.cloneConfig option that is not importedBen Wolsieffer
This once again allows sd-image.nix to imported standalone to build SD images of arbitrary NixOS systems.
2019-08-31nixos/modules: Remove all usages of types.stringSilvan Mosberger
And replace them with a more appropriate type Also fix up some minor module problems along the way
2019-08-19sd-image.nix: set installer.cloneConfig to falseFlorian Klink
As SD Card images are both installation media and installation target, don't copy over a /etc/nixos/configuration.nix Closes #63576.
2019-08-18nixos/sd-image: Increase default firmware partition sizeSarah Brofeldt
2019-06-16sd-image: Adds removed options for removed optionsSamuel Dionne-Riel
This will keep configuration configuring the size of the /boot partition still build, while showing the deprecation warning. In 99.9% of cases I assume ignoring the configuration is better, as the sd-image builder already is pretty opinionated in that matter.
2019-06-16sd-image: Pull less slack in the image by accounting for slackSamuel Dionne-Riel
The slack, seemingly, accounted for more than the minimum required for slack plus the two partitions. This change makes the gap a somewhat abstracted amount, but is not configurable within the derivation.
2019-06-16sd-image: Updates commentsSamuel Dionne-Riel
2019-06-16sd-image: firmware partition reduced to 20MiBSamuel Dionne-Riel
2019-06-16sd-image: Switch /boot to the ext4 partitionSamuel Dionne-Riel
2019-06-16sd-image: Moves `/boot` into rootfsSamuel Dionne-Riel
The current FAT32 partition is kept as it is required for the Raspberry Pi family of hardware. It is where the firmware is kept. The partition is kept bootable, and the boot files kept in there until the following commits, to keep all commits of this series individually bootable.
2019-04-24Fix the rootPartitionUUID descriptionJean-Paul Calderone
The value given here is used as the ext4 filesystem uuid. It is not used as the partition uuid.
2019-03-21sdImage: use findmnt to get root device when resizingMichael Eden
2018-11-29sd-image: Do not use batch operation for `mcopy`.Samuel Dionne-Riel
``` b Batch mode. Optimized for huge recursive copies, but less secure if a crash happens during the copy. ``` It seems the "less secure if a crash happens" does not need a crash to happen. With batch mode: ``` /[...]/. Start (0) does not point to parent (___) ``` For pretty much everything copied in. Without batch mode, everything passes `fsck`. See #51150
2018-11-29sd-image: Verifies the FAT partition before copying it.Samuel Dionne-Riel
This is to ensure `mtools`-based operations don't wreck the FS.
2018-08-30reewide: Purge all uses `stdenv.system` and top-level `system`John Ericson
It is deprecated and will be removed after 18.09.
2018-08-21sd-image: Fix cross compilingWill Fancher
2018-07-12sdImage: make partition ID/UUID configurableAndrew Dunham
2018-04-02nixos/sd-image: Make it more similar to iso-image.nixTuomas Tynkkynen
- Add `imageName` and `imageBaseName` options similar to the `isoName` and `isoBaseName` options - Make the filename of the iso match what iso-image.nix does - Generate a nix-support/hydra-build-products like iso-image.nix does
2016-04-25treewide: Use correct output in ${config.nix.package}/binTuomas Tynkkynen
2016-02-01sd-image.nix: Move the /boot partition up to 8MTuomas Tynkkynen
Reportedly some ARM boards need some boot code at the start of a SD card that could be larger than a megabyte. Change it to 8M, and while at it reduce the /boot size such that the root partition should now start on a 128M boundary (the flash on SD cards really don't like non-aligned writes these days).
2015-07-26nixos: Add derivations for SD card installation images on ARMTuomas Tynkkynen
The resulting image can be copied to a SD card with `dd` and is directly bootable by a suitably configured U-Boot. Though depending on the board, some extra steps are required for copying U-Boot itself to the SD card. Inside the image is a partition table, with a FAT32 /boot and a normal writable EXT4 rootfs. It's possible to directly reuse the SD image's partition layout and "install" NixOS on the same SD card by replacing the default configuration.nix and nixos-rebuild, and actually is the preferred way to use these images. To assist in this installation method, the boot scripts on the image automatically resize the rootfs partition to fit the SD card on the first boot. The SD images come in two flavors; one for the ARMv6 Raspberry Pi, and one multiplatform image for all the boards supported by the mainline kernel's multi_v7_defconfig config target. At the moment, these have been tested on: - Raspberry Pi Model B (512MB model) - NVIDIA Jetson TK1 - Linksprite pcDuino3 Nano To build, run: nix-build '<nixpkgs/nixos>' -A config.system.build.sdImage \ -I nixos-config='<nixpkgs/nixos/modules/installer/cd-dvd/sd-image-armv7l-multiplatform.nix>'