This commit is contained in:
Michel Le Cocq 2020-06-21 12:03:17 +02:00
parent af6dc2e3d5
commit 963cf34ddc

View File

@ -38,9 +38,9 @@ then connect remotely with : *ssh*
# update zsys-setup # update zsys-setup
to enable zfs encryption and create a swap partition right sized for hibernation. to enable zfs encryption and create a swap partition right sized for hibernation.
SWAPSIZE=$(cat /proc/meminfo | grep MemTotal | awk -F' ' '{print $2}') ## enable zfs encyption on rpool
## enable zfs encyption bpool remain unencrypt.
~~~ ~~~
Boot the Ubuntu 20.04 Desktop installer/live CD. Boot the Ubuntu 20.04 Desktop installer/live CD.
@ -64,14 +64,17 @@ Run ubiquity to start the installer and install as normal, selecting “Use enti
# Convert to MiB to align the size on the size of a block # Convert to MiB to align the size on the size of a block
SWAPVOLSIZE=$(( SWAPSIZE / 1024 / 1024 )) SWAPVOLSIZE=$(( SWAPSIZE / 1024 / 1024 ))
MEMSIZE=$(cat /proc/meminfo | grep MemTotal | awk -F' ' '{print $2}')
SWAPVOLSIZE=$(( MEMSIZE / 1024 ))
prepare_target "${TARGET}" prepare_target "${TARGET}"
SWAPVOLSIZE=$(( 32768 ))
format_disk "${DISK}" "${PARTBASE}" "${PARTESP}" "${PARTBPOOL}" "${PARTRPOOL}" "${SWAPVOLSIZE}" format_disk "${DISK}" "${PARTBASE}" "${PARTESP}" "${PARTBPOOL}" "${PARTRPOOL}" "${SWAPVOLSIZE}"
init_zfs "${TARGET}" "${DISK}${PARTBASE}${PARTBPOOL}" "${DISK}${PARTBASE}${PARTRPOOL}" init_zfs "${TARGET}" "${DISK}${PARTBASE}${PARTBPOOL}" "${DISK}${PARTBASE}${PARTRPOOL}"
init_system_partitions "${TARGET}" "${DISK}${PARTBASE}1" "${DISK}${PARTBASE}${PARTESP}" init_system_partitions "${TARGET}" "${DISK}${PARTBASE}1" "${DISK}${PARTBASE}${PARTESP}"
~~~ ~~~
source : [Linsomniac's Articles - Encrypting ZFS on Ubuntu 20.04](https://linsomniac.gitlab.io/post/2020-04-09-ubuntu-2004-encrypted-zfs/) source : [Linsomniac's Articles - Encrypting ZFS on Ubuntu 20.04](https://linsomniac.gitlab.io/post/2020-04-09-ubuntu-2004-encrypted-zfs/)
boot after press esc then F12 boot after press esc then F12