Clarify what swapfile could be used for

This commit is contained in:
Le0xFF 2022-08-09 21:50:21 +02:00
parent 02b210171e
commit 43008df3e6
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ As stated in the gist, this script provides:
- Full Disk Encryption (including `/boot`) with LUKS;
- Optional Logic Volume Management (LVM);
- BTRFS as filesystem;
- Optional swapfile enabling also [zswap](https://fedoraproject.org/wiki/Zswap);
- Optional swapfile enabling also [zswap](https://fedoraproject.org/wiki/Zswap) (swap is needed if you plan to use hibernation);
- Trim on SSD.
To know how the script works in details, please jump to the [How does it work?](#how-does-it-work) section!

2
vli.sh
View File

@ -293,7 +293,7 @@ function create_swapfile {
header_cs
echo -e -n "\nDo you want to create a \${BLUE_LIGHT}swapfile\${NORMAL} in \${BLUE_LIGHT}/var/swap/\${NORMAL} btrfs subvolume?\nThis will also enable \${BLUE_LIGHT}zswap\${NORMAL}, a cache in RAM for swap (y/n): "
echo -e -n "\nDo you want to create a \${BLUE_LIGHT}swapfile\${NORMAL} in \${BLUE_LIGHT}/var/swap/\${NORMAL} btrfs subvolume?\nThis will also enable \${BLUE_LIGHT}zswap\${NORMAL}, a cache in RAM for swap.\nA swapfile is needed if you plan to use hibernation (y/n): "
read -n 1 -r yn
if [[ "\$yn" == "y" ]] || [[ "\$yn" == "Y" ]] ; then