Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow swap size and partition UUIDs to be specified in make-disk-image #121532

Closed
wants to merge 1 commit into from

Commits on May 2, 2021

  1. make-disk-image: allow swap size and partition UUIDs to be specified

    Specifying swap space in image builds is potentially useful, especially
    if we support ZFS in make-disk-image.nix someday, since ZVOLs cause
    system deadlocks if they are used as swap devices:
    
    https://github.com/zfsonlinux/pkg-zfs/wiki/HOWTO-use-a-zvol-as-a-swap-device
    
    Along the way, add hardcoded UUIDs for the MBR and boot/swap/root
    partitions to match nixos/modules/installer/sd-card/sd-image.nix.
    This probably isn't perfect, but makes the behavior a little closer,
    which is good for reproducibility.
    
    Add tests in image-contents.nix.
    numinit committed May 2, 2021
    Configuration menu
    Copy the full SHA
    f7ee10e View commit details
    Browse the repository at this point in the history