Skip to content

Support ZFS #19

Description

@grahamc

We'll do the ZFS thing if a tag named "zfs" exists on the instance on startup.

Possibly in the future, we'll support something like CPR in the customtdata field (yes, customdata - not userdata) but not right now. Would be nicer for CPR to just support ZFS.

Here are some commands Clever likes.

  zpool create -o ashift=12 -o altroot=/mnt -O compression=lz4 ${cfg.poolName} $ROOT_DEVICE
  zfs create -o mountpoint=legacy ${cfg.poolName}/root
  zfs create -o mountpoint=legacy ${cfg.poolName}/home
  zfs create -o mountpoint=legacy ${cfg.poolName}/nix
  swapon $SWAP_DEVICE
  mount -t zfs ${cfg.poolName}/root /mnt/
  mkdir /mnt/{home,nix,boot}
  mount -t zfs ${cfg.poolName}/home /mnt/home/
  mount -t zfs ${cfg.poolName}/nix /mnt/nix/
  mount $NIXOS_BOOT /mnt/boot/
  nixos-generate-config --root /mnt/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions