diff --git a/add-right-fit-swap-for-laptop-hibernation-during-ubuntu-20.04-full-ZFS-install.md b/add-right-fit-swap-for-laptop-hibernation-during-ubuntu-20.04-full-ZFS-install.md new file mode 100644 index 0000000..b31837c --- /dev/null +++ b/add-right-fit-swap-for-laptop-hibernation-during-ubuntu-20.04-full-ZFS-install.md @@ -0,0 +1,31 @@ + +## create swap partition to permit Hibernate + +create a swap partition right sized for hibernation. + +add theses 2 lines in : */usr/share/ubiquity/zsys-setup* + +~~~{.shell} +MEMSIZE=$(cat /proc/meminfo | grep MemTotal | awk -F' ' '{print $2}') +SWAPVOLSIZE=$(( MEMSIZE / 1024 )) +~~~ + +like bellow : + +~~~{.shell} + # Convert to MiB to align the size on the size of a block + SWAPVOLSIZE=$(( SWAPSIZE / 1024 / 1024 )) + +MEMSIZE=$(cat /proc/meminfo | grep MemTotal | awk -F' ' '{print $2}') +SWAPVOLSIZE=$(( MEMSIZE / 1024 )) + + prepare_target "${TARGET}" + format_disk "${DISK}" "${PARTBASE}" "${PARTESP}" "${PARTBPOOL}" "${PARTRPOOL}" "${SWAPVOLSIZE}" + init_zfs "${TARGET}" "${DISK}${PARTBASE}${PARTBPOOL}" "${DISK}${PARTBASE}${PARTRPOOL}" + init_system_partitions "${TARGET}" "${DISK}${PARTBASE}1" "${DISK}${PARTBASE}${PARTESP}" +~~~ + +Run ubiquity to start the installer and install as normal, selecting “Use entire disk” and the option to use ZFS. + + +source : [Linsomniac's Articles - Encrypting ZFS on Ubuntu 20.04](https://linsomniac.gitlab.io/post/2020-04-09-ubuntu-2004-encrypted-zfs/) \ No newline at end of file diff --git a/add-right-fit-swap-for-laptop-hibernation-during-ubuntu-full-ZFS-install.md b/add-right-fit-swap-for-laptop-hibernation-during-ubuntu-full-ZFS-install.md deleted file mode 100644 index 1f576c2..0000000 --- a/add-right-fit-swap-for-laptop-hibernation-during-ubuntu-full-ZFS-install.md +++ /dev/null @@ -1 +0,0 @@ -Bienvenue sur le Wiki. \ No newline at end of file