This repository has been archived on 2024-04-07. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/root/fstab

31 lines
948 B
Plaintext

{{@@ non_templated(_dotfile_abs_dst) @@}}
##### Dotdrop-start #####
{#@@<filesystem> <dir> <type> <options> <dump> <pass> @@#}
{%@@ set btrfs_opt_t = "rw,noatime,compress=zstd:3,subvol={}" @@%}
{%@@ set entry_t = "UUID={uuid} {path} {fs} {opts} {dump} {pass}" @@%}
UUID={{@@ boot_uuid @@}} /boot vfat rw,errors=remount-ro 0 2
{%@@ set new_partitions = filesystem.partitions.update({root_subvol: '/'}) @@%}
{%@@ for name, path in filesystem.partitions.items() @@%}
{{@@ entry_t.format(
uuid= decrypted_uuid ,
path= path ,
fs= "btrfs",
opts= btrfs_opt_t.format(name),
dump= "0",
pass= ("root" in name) | int,
) @@}}
{%@@ endfor @@%}
/swap/swapfile none swap defaults 0 0
tmpfs /tmp tmpfs rw,nodev,nosuid,size=2G 0 0
{%@@ if zram @@%}
/dev/zram0 none swap defaults,pri=100 0 0
{%@@ endif @@%}
# vim: ft=etc-fstab