5/30/2023 0 Comments Openzfs mountpoint legacy![]() If you care about using this pool on other OpenZFS implementation don't specify this option.Īfter completing this, confirm that the pool has been created:Ĭreate the required datasets and mount root zfs create -o mountpoint=none -o canmount=off rpool/ROOT `xattr=sa` vastly improves the performance of extended attributes, but is Linux-only. It also enables `utf8only=on`, meaning that only files with valid UTF-8 filenames will be accepted. `normalization=formD` eliminates some corner cases relating to UTF-8 filename normalization. `acltype=posixacl` enables POSIX ACLs globally `ashift=12` is recommended here because many drives today have 4KiB (or larger) physical sectors, even though they present 512B logical sectors Choose wisely, as your passphrase is most likely the weakest link in this setup.Ī few notes on the options supplied to zpool: You will have to enter your passphrase at this point. O encryption=aes-256-gcm -O keylocation=prompt -O keyformat=passphrase \ O dnodesize=auto -O normalization=formD -O relatime=on -O xattr=sa \ O acltype=posixacl -O canmount=off -O compression=lz4 \ ZFS setup Create the root zpool modprobe zfs ![]() To see a list of storage devices and determine the correct one, type `sfdisk -l`.Įcho -e "/dev/sda1: start=1M,size=100M,bootable\n/dev/sda2: start=101M" | sfdisk -quiet -label dos /dev/sdaĬreate the /boot filesystem mkfs.ext4 /dev/sda1 We're assuming that `/dev/sda` is the target storage device here and in the rest of the document, but the name of the storage device you wish to install to may be different. You will be reminded again at the end of this doc.Īdd required packages apk add zfs sfdisk e2fsprogs syslinux Do not forget to go back and comment this line out when you're done since it will be enabled on the resulting machine. Change the value after `PermitRootLogin` to read `yes` You may enable sshd so you can ssh into the box and copy and paste the rest of the commands from these instructions into a terminal window.Įdit `/etc/ssh/sshd_config` and search for `Permit`. This section is optional and it assumes internet connectivity. Run the following to start the installation procedure:Īnswer all the questions, and hit ctrl-c when promted for which disk you'd like to use. Write it to a USB device and boot from it. See here.ĭownload the extended release from as only it contains the zfs kernel modules at the time of writing (). To be able to boot the system, the `/boot` partition remains unencrypted.Ī guide on OpenZFS website supports native encryption, UEFI boot and legacy boot, and multi-disk. The system will be encrypted when powered off and will need to be unlocked by typing a passphrase at boot. ![]() This is a guide for installing Alpine Linux with its root partition on an encrypted ZFS volume, using ZFS's own encryption capabilities. ![]()
0 Comments
Leave a Reply. |