ITADN

版本发布 8

1.12.0v1.12.0
? · 2025-05-30

# Changelog v1.10.0...v1.12.0 ## Features - **ZFS**: Added support for running load-key on mount/unmount operations (#921) https://github.com/nix-community/disko/pull/921 - **ZFS**: Added example for encrypted root filesystem (#966) https://github.com/nix-community/disko/pull/966 - **ZFS**: Added example for using absolute device paths with vdevs (#924) https://github.com/nix-community/disko/pull/924 - **ZFS**: Added example for swap on `zfs_volume` (#986) https://github.com/nix-community/disko/pull/986 - **bcachefs**: Improved support for bcachefs filesystem (#1013) https://github.com/nix-community/disko/pull/1013 - **bcachefs**: Added subvolume boot-time mounting capabilities (#1021) https://github.com/nix-community/disko/pull/1021 - **Partitioning**: Added configuration option for custom partition UUIDs (#951) https://github.com/nix-community/disko/pull/951 - **Images**: Added binfmt emulation with native formatting for disk images (#970) https://github.com/nix-community/disko/pull/970 - **Platform**: Enabled basic macOS support (#1007) https://github.com/nix-community/disko/pull/1007 - **Disk Management**: Added disk.destroy option (#1015) https://github.com/nix-community/disko/pull/1015 ## Bug Fixes - **Security**: Applied umask=0077 to /boot partition in all examples (#930) https://github.com/nix-community/disko/pull/930 - **Installation**: Fixed disk mappings for GRUB devices in install-cli (#935) https://github.com/nix-community/disko/pull/935 - **Disk Images**: Fixed function precedence breaking customQemu (#936) https://github.com/nix-community/disko/pull/936 - **Disk Images**: Fixed postVM not being passed when creating images (#923) https://github.com/nix-community/disko/pull/923 - **ZFS**: Fixed evaluation of `zfs_volume`'s `_unmount` when `content` is `null` (#941) https://github.com/nix-community/disko/pull/941 - **ZFS**: Fixed kernel module version to match user-space tools in make-disk-image (#960) https://github.com/nix-community/disko/pull/960 - **lib**: Fixed recursiveUpdate not properly merging lists (#963) https://github.com/nix-community/disko/pull/963 - **Disk Images**: Fixed image script stdenv and virtiofs support (#967) https://github.com/nix-community/disko/pull/967 - **Device Management**: Fixed device ordering issues (#974) https://github.com/nix-community/disko/pull/974 - **Disk Images**: Set proper `buildPlatform` in make-disk-image (#990) https://github.com/nix-community/disko/pull/990 - **Deactivation**: Fixed disk deactivation process (#993) https://github.com/nix-community/disko/pull/993, Fixed quote handling for umount arguments (#1010) https://github.com/nix-community/disko/pull/1010 - **bcachefs**: Fixed ENOENT errors during boot (#1028) https://github.com/nix-community/disko/pull/1028 ## Improvements - **UI**: Removed unnecessary newline when prompting for password (#1016) https://github.com/nix-community/disko/pull/1016 - **Documentation**: Improved disk image testing documentation (#1031) https://github.com/nix-community/disko/pull/1031 The full changelog with all entries is available at: https://github.com/nix-community/disko/compare/v1.10.0...v1.12.0

v1.11.0
? · 2025-01-14

## What's Changed * zfs: run load-key on mount/unmount by @Mic92 in https://github.com/nix-community/disko/pull/921 * doc: simple xfs with options by @aos in https://github.com/nix-community/disko/pull/928 * export nixosModule as file by @Lassulus in https://github.com/nix-community/disko/pull/934 * install-cli: use disks from diskMappings arg for grub devices by @Lassulus in https://github.com/nix-community/disko/pull/935 * make-disk-image: fix function precedence breaks customQemu by @saviosg in https://github.com/nix-community/disko/pull/936 * Fix postVM not beeing passed when creating images by @whs-dot-hk in https://github.com/nix-community/disko/pull/923 ## New Contributors * @aos made their first contribution in https://github.com/nix-community/disko/pull/928 * @provokateurin made their first contribution in https://github.com/nix-community/disko/pull/930 * @saviosg made their first contribution in https://github.com/nix-community/disko/pull/936 * @bittner made their first contribution in https://github.com/nix-community/disko/pull/938 **Full Changelog**: https://github.com/nix-community/disko/compare/v1.10.0...v1.11.0

v1.10.0
? · 2024-12-13

## What's Changed ### Features * Add declarative unmount by @Mic92 in https://github.com/nix-community/disko/pull/891 * ZFS: Add log, spare & dedup vdev types, support multiple special vdevs, fix bug with mixed vdev types by @MaienM in https://github.com/nix-community/disko/pull/883 * Add extraArgs to zfs_volume. by @0x450x6c in https://github.com/nix-community/disko/pull/916 * module: expose tests.bootCommands and tests.enableOCR by @amarshall in https://github.com/nix-community/disko/pull/882 ### Fixes * treewide: Fix using pkgs.{build,host}Platform alias by @amarshall in https://github.com/nix-community/disko/pull/852 * Add kmod to dependencies by @pinpox in https://github.com/nix-community/disko/pull/859 * outputs: make compatible with nix run and package lists by @iFreilicht in https://github.com/nix-community/disko/pull/842 * cli: Fix legacy aliases by @iFreilicht in https://github.com/nix-community/disko/pull/869 * destroy: Fix shellcheck warning in nixos 24.05 by @iFreilicht in https://github.com/nix-community/disko/pull/870 * lib: Fix jsonTypes evaluation by @iFreilicht in https://github.com/nix-community/disko/pull/874 * cli: Fix "attribute missing" error when using flake by @iFreilicht in https://github.com/nix-community/disko/pull/877 * fix: restore nix 2.3 compatibility by @zimbatm in https://github.com/nix-community/disko/pull/892 * disko-install: skip swap and allow dry-run without root by @Mic92 in https://github.com/nix-community/disko/pull/890 * zfs: fix mount options not beeing passed for the root dataset by @Mic92 in https://github.com/nix-community/disko/pull/895 * Fix evaluation when a GPT partition is left unformatted by @nbdd0121 in https://github.com/nix-community/disko/pull/897 * module: add default for tests.bootCommand by @Lassulus in https://github.com/nix-community/disko/pull/898 * make-disk-image: Compare against correct nixpkgs version by @iFreilicht in https://github.com/nix-community/disko/pull/906 * disk-image: Fix compatibility with nixpkgs unstable by @iFreilicht in https://github.com/nix-community/disko/pull/907 * tree-wide: Remove all uses of lib.mdDoc by @iFreilicht in https://github.com/nix-community/disko/pull/909 * make-disk-image: create directories images in out path by @Mic92 in https://github.com/nix-community/disko/pull/911 ### Documentation * docs: Remove non-existing flag by @iFreilicht in https://github.com/nix-community/disko/pull/860 * docs: fix inconsistent disko-install cmd by @raexera in https://github.com/nix-community/disko/pull/863 * fix documentation for offline installation by @Mic92 in https://github.com/nix-community/disko/pull/864 * Add explanatory comment to examples/zfs-over-legacy.nix by @carschandler in https://github.com/nix-community/disko/pull/886 ## New Contributors * @amarshall made their first contribution in https://github.com/nix-community/disko/pull/852 * @pinpox made their first contribution in https://github.com/nix-community/disko/pull/859 * @raexera made their first contribution in https://github.com/nix-community/disko/pull/863 * @carschandler made their first contribution in https://github.com/nix-community/disko/pull/886 * @MaienM made their first contribution in https://github.com/nix-community/disko/pull/883 * @nbdd0121 made their first contribution in https://github.com/nix-community/disko/pull/897 * @samularity made their first contribution in https://github.com/nix-community/disko/pull/901 **Full Changelog**: https://github.com/nix-community/disko/compare/v1.9.0...v1.10.0

v1.9.0
? · 2024-10-28

New minor version with some bugfixes. Most importantly, we fixed [an issue](https://github.com/nix-community/disko/issues/850) that would cause `config.system.build.vmWithDisko` and `config.system.build.diskoImagesScript` to fail to build with the following error on nixpkgs 24.05 and older unstable versions: error: function 'anonymous lambda' called with unexpected argument 'customQemu' at /nix/store/lbqj1cndic4121whnx8xm0jgb1c8x4xx-source/pkgs/build-support/vm/default.nix:1:1: Additionally: * Whitespaces in GPT partition names are now handled correctly (#130) * `size = "100%";` now works properly for `lvm_vg` (#848) * Disks now support [a new `imageName` option](https://github.com/qbisi/disko/blob/c6ade78e9776141501a1b8bc125dce0106c1d7ee/docs/disko-images.md#additional-configuration) * Disko will no longer crash on Hetzner Rescue System (#815) We now have docs that should help with contributing and testing! Check out out [CONTRIBUTING.md](https://github.com/nix-community/disko/blob/master/CONTRIBUTING.md) and the pages linked within! ## What's Changed * disk-image: Fix "unexpected argument 'customQemu'" eval error by @iFreilicht in https://github.com/nix-community/disko/pull/851 * Fix whitespace handling by @iFreilicht in https://github.com/nix-community/disko/pull/841 * lvm_vg: fix size=100% leading to crash by @DavHau in https://github.com/nix-community/disko/pull/848 * options: make extraPostVM mergable. by @qbisi in https://github.com/nix-community/disko/pull/832 * Fix disko using system zfs by @iFreilicht in https://github.com/nix-community/disko/pull/835 * fix(docs): wrong attr path by @nilp0inter in https://github.com/nix-community/disko/pull/824 * fixed logo suffix in INDEX.md by @Mipsters in https://github.com/nix-community/disko/pull/828 * disko cli: fix misleading error message by @iFreilicht in https://github.com/nix-community/disko/pull/831 * disko-install: make output deterministic by @iFreilicht in https://github.com/nix-community/disko/pull/830 * swap: fix partition type by @iFreilicht in https://github.com/nix-community/disko/pull/834 * lib: Remove global `with lib;` by @iFreilicht in https://github.com/nix-community/disko/pull/836 * docs: Add docs for contributors by @iFreilicht in https://github.com/nix-community/disko/pull/837 * Fix eval on darwin by avoiding calling splitString with an empty string by @phaer in https://github.com/nix-community/disko/pull/846 * UX: be specific if disko-install failed or succeeded by @DavHau in https://github.com/nix-community/disko/pull/847 ## New Contributors * @nilp0inter made their first contribution in https://github.com/nix-community/disko/pull/824 * @Mipsters made their first contribution in https://github.com/nix-community/disko/pull/828 * @qbisi made their first contribution in https://github.com/nix-community/disko/pull/832 **Full Changelog**: https://github.com/nix-community/disko/compare/v1.8.2...v1.9.0

v1.8.2
? · 2024-10-11

This is a small release, only some small bugfixes and additions. This release adds the `--version` command and serves as a first test for the new release process that supports this addition. In case you're wondering what happened to v1.8.1, it was pushed to GitHub by accident. This immediately triggered a publish on [flakestry](https://flakestry.dev/flake/github/nix-community/disko/1.8.1). So I just decided to skip it. ## What's Changed * lvm: add missing dm-snapshot by @Mic92 in https://github.com/nix-community/disko/pull/796 * lvm: Always add dm-snapshot when LVM is used by @r-vdp in https://github.com/nix-community/disko/pull/797 * make-disk-image: use memSize as default build-memory in diskoImagesScript by @danjujan in https://github.com/nix-community/disko/pull/801 * interactive-vm: override `forceImportRoot` by @Enzime in https://github.com/nix-community/disko/pull/803 * interactive-vm: allow to override virtualisation.memorySize by @Mic92 in https://github.com/nix-community/disko/pull/811 * interactive-vm: use host pkgs in the launcher script. by @Mic92 in https://github.com/nix-community/disko/pull/794 * Add binlore for disko and disko-install by @Jayman2000 in https://github.com/nix-community/disko/pull/795 * disko cli: remove requirement for leading ./ by @iFreilicht in https://github.com/nix-community/disko/pull/821 * disko cli: Add version command by @iFreilicht in https://github.com/nix-community/disko/pull/819 * docs: Fix /boot security hole warning in examples by @iFreilicht in https://github.com/nix-community/disko/pull/808 * docs: Fix grammar in offline installer by @iFreilicht in https://github.com/nix-community/disko/pull/807 * docs: Grammar update on disko-install.md by @heytcass in https://github.com/nix-community/disko/pull/809 * example: Luks btrfs raid example by @iFreilicht in https://github.com/nix-community/disko/pull/806 (credit to @Sk7Str1pe for the initial PR!) ## New Contributors * @heytcass made their first contribution in https://github.com/nix-community/disko/pull/809 * @iFreilicht joined the team of maintainers in #784 **Full Changelog**: https://github.com/nix-community/disko/compare/v1.8.0...v1.8.2

v1.8.1
? · 2024-10-11

## What's Changed * imageBuilder: add defaultText by @Mic92 in https://github.com/nix-community/disko/pull/787 * interactive-vm: use host pkgs in the launcher script. by @Mic92 in https://github.com/nix-community/disko/pull/794 * Add binlore for disko and disko-install by @Jayman2000 in https://github.com/nix-community/disko/pull/795 * lvm: add missing dm-snapshot by @Mic92 in https://github.com/nix-community/disko/pull/796 * Always add dm-snapshot when LVM is used by @r-vdp in https://github.com/nix-community/disko/pull/797 * make-disk-image: use memSize as default build-memory in diskoImagesScript by @danjujan in https://github.com/nix-community/disko/pull/801 * Add --check option to formatter in flake by @beviu in https://github.com/nix-community/disko/pull/716 * interactive-vm: override `forceImportRoot` by @Enzime in https://github.com/nix-community/disko/pull/803 * Luks btrfs raid example by @iFreilicht in https://github.com/nix-community/disko/pull/806 * docs: Fix /boot security hole warning in examples by @iFreilicht in https://github.com/nix-community/disko/pull/808 * docs: Fix grammar in offline installer by @iFreilicht in https://github.com/nix-community/disko/pull/807 * Grammar update on disko-install.md by @heytcass in https://github.com/nix-community/disko/pull/809 * interactive-vm: allow to override virtualisation.memorySize by @Mic92 in https://github.com/nix-community/disko/pull/811 * disko cli: remove requirement for leading ./ by @iFreilicht in https://github.com/nix-community/disko/pull/821 ## New Contributors * @heytcass made their first contribution in https://github.com/nix-community/disko/pull/809 **Full Changelog**: https://github.com/nix-community/disko/compare/v1.8.0...v1.8.1

v1.8.0
? · 2024-09-20

## What's Changed * Add `virtualisation.vmVariantWithDisko` option by @Enzime in https://github.com/nix-community/disko/pull/766 * make-disk-image: automatically add ZFS to kernel by @Enzime in https://github.com/nix-community/disko/pull/767 * make-disk-image: convert into NixOS module by @Enzime in https://github.com/nix-community/disko/pull/771 * zfs_fs: support updating mountpoint properly by @Enzime in https://github.com/nix-community/disko/pull/762 * module: always populate system.build attributes by @Enzime in https://github.com/nix-community/disko/pull/776 * update project logo by @Mic92 in https://github.com/nix-community/disko/pull/783 **Full Changelog**: https://github.com/nix-community/disko/compare/v1.7.0...v1.8.0

v1.7.0
? · 2024-09-03

## What's Changed ### Features * zfs: add ZFS "topology" features like explicit vdevs, cache, and special by @dmadisetti in https://github.com/nix-community/disko/pull/723 * f2fs: init by @MatthewCroughan in https://github.com/nix-community/disko/pull/740 * add interactive VMs by @Lassulus in https://github.com/nix-community/disko/pull/713 * swap: support swapDevices' discardPolicy and priority options by @muggenhor in https://github.com/nix-community/disko/pull/623 and in https://github.com/nix-community/disko/pull/632 * lvm_vg: add lvm thinpool/thinlv support by @MatthewCash in https://github.com/nix-community/disko/pull/686 * swap: mountOptions; btrfs priority, options by @nvmd in https://github.com/nix-community/disko/pull/752 ### Fixes * disko: allow importing disko twice by @Mic92 in https://github.com/nix-community/disko/pull/629 * Fix xargs command not found in make-disk-image script by @danjujan in https://github.com/nix-community/disko/pull/633 * disko-install: only set NIX_STATE_DIR for load-db by @flokli in https://github.com/nix-community/disko/pull/634 * make-disk-image: make extraPostVM configurable from module.nix by @MatthewCroughan in https://github.com/nix-community/disko/pull/640 * make-disk-image: use OVMF efi always by @MatthewCroughan in https://github.com/nix-community/disko/pull/643 * add diskoScript.drvPath for offline installations by @Mic92 in https://github.com/nix-community/disko/pull/652 * add table-to-gpt migration guide by @Lassulus in https://github.com/nix-community/disko/pull/655 and by @mweinelt in https://github.com/nix-community/disko/pull/656 * cleanup host environment passed to VM for image building by @pedohorse in https://github.com/nix-community/disko/pull/639 * make-disk-image: make efi variables writeable by @Mic92 in https://github.com/nix-community/disko/pull/660 * fix option type in `mkHook` by @name-snrl in https://github.com/nix-community/disko/pull/680 * document extraRootModules better by @Lassulus in https://github.com/nix-community/disko/pull/685 * zfs: when dataset already exist, only update dataset options by @Mic92 in https://github.com/nix-community/disko/pull/689 * zfs: try to import zpool in incremental mode by @Mic92 in https://github.com/nix-community/disko/pull/691 * disko-install: don't copy channel by @Mic92 in https://github.com/nix-community/disko/pull/692 * gpt: move boot partitions to the front of disko by @Mic92 in https://github.com/nix-community/disko/pull/688 * disko: add nixos-install-tools to PATH by @beviu in https://github.com/nix-community/disko/pull/715 * make-disk-image: make pkgs, qemu and kernelPackages configurable and overridable by @MatthewCroughan in https://github.com/nix-community/disko/pull/698 * Fix options.json rendering by @SuperSandro2000 in https://github.com/nix-community/disko/pull/737 and by @Ma27 in https://github.com/nix-community/disko/pull/741 * Fix the manual by fixing string escape by @dasJ in https://github.com/nix-community/disko/pull/742 * zfs_fs: Fix errors when not changing mountpoint by @iFreilicht in https://github.com/nix-community/disko/pull/746 * swap: don't create filesystem if randomEncryption is enabled by @iFreilicht in https://github.com/nix-community/disko/pull/747 * Fix writeDashBin by @whs-dot-hk in https://github.com/nix-community/disko/pull/750 * Switch to qcow in the interactive VM to avoid hangs when using large image size. by @0x450x6c in https://github.com/nix-community/disko/pull/754 * disk-deactivate: only run zfs command if they are present by @Mic92 in https://github.com/nix-community/disko/pull/757 ## New Contributors * @muggenhor made their first contribution in https://github.com/nix-community/disko/pull/623 * @fidgetingbits made their first contribution in https://github.com/nix-community/disko/pull/630 * @flokli made their first contribution in https://github.com/nix-community/disko/pull/634 * @dasJ made their first contribution in https://github.com/nix-community/disko/pull/647 * @pedohorse made their first contribution in https://github.com/nix-community/disko/pull/639 * @ginkogruen made their first contribution in https://github.com/nix-community/disko/pull/670 * @name-snrl made their first contribution in https://github.com/nix-community/disko/pull/680 * @beviu made their first contribution in https://github.com/nix-community/disko/pull/715 * @iFreilicht made their first contribution in https://github.com/nix-community/disko/pull/746 * @whs-dot-hk made their first contribution in https://github.com/nix-community/disko/pull/750 * @0x450x6c made their first contribution in https://github.com/nix-community/disko/pull/754 * @nvmd made their first contribution in https://github.com/nix-community/disko/pull/752 * @dmadisetti made their first contribution in https://github.com/nix-community/disko/pull/723 **Full Changelog**: https://github.com/nix-community/disko/compare/v1.6.1...v1.7.0