ZFS: Difference between revisions
imported>MarcFontaine m fix layout |
imported>Stevenroose m some minor typos in the single disk install |
||
Line 241: | Line 241: | ||
# normal fstab-based mounting machinery in Linux. | # normal fstab-based mounting machinery in Linux. | ||
# '-R /mnt' is not a persistent property of the FS, it'll just be used while we're installing. | # '-R /mnt' is not a persistent property of the FS, it'll just be used while we're installing. | ||
zpool create -O mountpoint=none | zpool create -O mountpoint=none rpool $DISK-part1 | ||
# Create the filesystems. This layout is designed so that /home is separate from the root | # Create the filesystems. This layout is designed so that /home is separate from the root | ||
Line 247: | Line 247: | ||
# makes a "nixos" filesystem underneath the root, to support installing multiple OSes if | # makes a "nixos" filesystem underneath the root, to support installing multiple OSes if | ||
# that's something you choose to do in future. | # that's something you choose to do in future. | ||
zfs create -o mountpoint= | zfs create -o mountpoint=legacy rpool/root | ||
zfs create -o mountpoint=legacy rpool/root/nixos | zfs create -o mountpoint=legacy rpool/root/nixos | ||
zfs create -o mountpoint=legacy rpool/home | zfs create -o mountpoint=legacy rpool/home | ||
Line 272: | Line 272: | ||
# Also, make sure you set the networking.hostId option, which ZFS requires: | # Also, make sure you set the networking.hostId option, which ZFS requires: | ||
## ---8<-------------------------8<--- | ## ---8<-------------------------8<--- | ||
networking.hostId = "<random 8-digit hex string>" | networking.hostId = "<random 8-digit hex string>"; | ||
## ---8<-------------------------8<--- | ## ---8<-------------------------8<--- | ||
# See https://nixos.org/nixos/manual/options.html#opt-networking.hostId for more. | # See https://nixos.org/nixos/manual/options.html#opt-networking.hostId for more. |