Moved more ZFS things into 'zfs.sh'

This commit is contained in:
2025-12-31 23:40:06 -05:00
parent f41eb46966
commit a09f66e4a7
3 changed files with 38 additions and 50 deletions

34
zfs.sh
View File

@@ -235,4 +235,38 @@ elif [[ "${1}" == '--host-id' ]]; then
zgenhostid \
-f \
0x00bab10c
elif [[ "${1}" == '--home' ]]; then
zfs create\
${hostname,,}/home/${username}
zfs create\
${hostname,,}/home/${username}/.config
zfs create\
-o canmount=off\
${hostname,,}/home/${username}/.var
zfs create\
${hostname,,}/home/${username}/.var/app
zfs create\
-o canmount=off\
${hostname,,}/home/${username}/.local
zfs create\
-o canmount=off\
${hostname,,}/home/${username}/.local/share
zfs create\
${hostname,,}/home/${username}/.local/share/flatpak
elif [[ "${1}" == '--keystore' ]]; then
zfs \
set \
org.zfsbootmenu:keysource=${hostname,,}/keystore \
${hostname,,}
elif [[ "${1}" == '--splash' ]]; then
zfs \
set \
org.zfsbootmenu:commandline='quiet splash rhgb noresume' \
${hostname,,}/ROOT/${ID}
fi