Compare commits

...

2 Commits

Author SHA1 Message Date
cyteen f4cb7cc76d Minor edit. 2026-03-17 11:12:08 +00:00
cyteen 580ef19a73 Simplify `create bpool` and create rpool/DATA for docker-volumes
 Add
-o autotrim=on: Enables continuous TRIM support for SSDs, improving
long-term performance.

-O recordsize=128K: Ensures boot filesystem stays within GRUB's block
size limit (critical when using large_blocks).

🔁 Remove
    Individual -o feature@...=enabled lines: Since compatibility=grub2
automatically enables them, listing them is redundant.
2026-03-17 11:11:45 +00:00
2 changed files with 22 additions and 26 deletions

View File

@ -53,7 +53,7 @@ must change the date of the snapshot in the `install.sh` script.
| 3.0 Beowulf | 10.4 Buster | 2023-06-11T103552Z | | 3.0 Beowulf | 10.4 Buster | 2023-06-11T103552Z |
| 4.0 Chimaera | 11.1 Bullseye | 2023-06-11T103552Z | | 4.0 Chimaera | 11.1 Bullseye | 2023-06-11T103552Z |
| 5.0 Daedalus | 12 Bookworm | 2023-10-07T150030Z | | 5.0 Daedalus | 12 Bookworm | 2023-10-07T150030Z |
| 6.0 Excalibur | 13 Trixie | testing | | 6.0 Excalibur | 13 Trixie | 2026-02-02T081703Z |
| 7.0 Freia | 14 Forky | | | 7.0 Freia | 14 Forky | |
| Ceres | Sid | unstable | | Ceres | Sid | unstable |

View File

@ -488,31 +488,21 @@ image_format_partitions_zfs() {
act "create the zfs boot pool" act "create the zfs boot pool"
#zpool create -f -m none \ #zpool create -f -m none \
zpool create -f \ zpool create -f \
-o cachefile=${zpool_cache_dir}/zpool.cache \ -o cachefile=${zpool_cache_dir}/zpool.cache \
-o ashift=${ashift} -d \ -o ashift=${ashift} \
-o feature@async_destroy=enabled \ -o autotrim=on \
-o feature@bookmarks=enabled \ -o compatibility=grub2 \
-o feature@embedded_data=enabled \ -O acltype=posixacl \
-o feature@empty_bpobj=enabled \ -O canmount=off \
-o feature@enabled_txg=enabled \ -O compression=lz4 \
-o feature@extensible_dataset=enabled \ -O devices=off \
-o feature@filesystem_limits=enabled \ -O normalization=formD \
-o feature@hole_birth=enabled \ -O relatime=on \
-o feature@large_blocks=enabled \ -O xattr=sa \
-o feature@lz4_compress=enabled \ -O mountpoint=legacy -o altroot=${strapdir} \
-o feature@spacemap_histogram=enabled \ -O recordsize=128K \
-o feature@zpool_checkpoint=enabled \ ${bpool_name} ${raid} /dev/disk/by-id/${disk_name}-part${boot_part_number} /dev/disk/by-id/${mirror_disk}-part${boot_part_number}
-O acltype=posixacl \
-O canmount=off \
-O compression=lz4 \
-O devices=off \
-O normalization=formD \
-O relatime=on \
-O xattr=sa \
-O mountpoint=legacy -o altroot=${strapdir} \
${bpool_name} ${raid} /dev/disk/by-id/${disk_name}-part${boot_part_number} /dev/disk/by-id/${mirror_disk}-part${boot_part_number}
act "create the zfs root pool" act "create the zfs root pool"
@ -545,6 +535,7 @@ image_format_partitions_zfs() {
notice "zfs system installation" notice "zfs system installation"
act "create filesystem datasets to act as containers" act "create filesystem datasets to act as containers"
zfs create -o canmount=off -o mountpoint=none ${rpool_name}/ROOT zfs create -o canmount=off -o mountpoint=none ${rpool_name}/ROOT
zfs create -o canmount=off -o mountpoint=none ${rpool_name}/DATA
zfs create -o canmount=off -o mountpoint=none ${bpool_name}/BOOT zfs create -o canmount=off -o mountpoint=none ${bpool_name}/BOOT
act "create filesystem datasets for the root and boot filesystems" act "create filesystem datasets for the root and boot filesystems"
@ -600,11 +591,16 @@ image_format_partitions_zfs() {
-o com.sun:auto-snapshot=false \ -o com.sun:auto-snapshot=false \
${rpool_name}/var/cache ${rpool_name}/var/cache
# Split docker data from images
zfs create \ zfs create \
-o mountpoint=/var/lib/docker \ -o mountpoint=/var/lib/docker \
-o com.sun:autosnapshot=false \ -o com.sun:autosnapshot=false \
${rpool_name}/docker ${rpool_name}/docker
zfs create \
-o mountpoint=/var/lib/docker/volumes \
${rpool_name}/DATA/docker-volumes
zfs create -o mountpoint=/var/log ${rpool_name}/var/log zfs create -o mountpoint=/var/log ${rpool_name}/var/log
zfs create -o mountpoint=/var/snap ${rpool_name}/var/snap zfs create -o mountpoint=/var/snap ${rpool_name}/var/snap
zfs create -o mountpoint=/var/spool ${rpool_name}/var/spool zfs create -o mountpoint=/var/spool ${rpool_name}/var/spool