fix(zfs): Make sure root dataset cannot be mounted on accident (#3)

This commit is contained in:
2023-10-20 22:47:05 +02:00
parent 61be86a820
commit 589d66d22b
2 changed files with 2 additions and 1 deletions

View File

@@ -196,7 +196,7 @@ function create_pool () {
}
function create_root_dataset () {
zfs create -o mountpoint=none "${zpool_name}"'/root'
zfs create -o mountpoint=none -o canmount=off "${zpool_name}"'/root'
# zfs set org.zfsbootmenu:commandline="ro quiet" "${zpool_name}"'/root'
zfs set org.zfsbootmenu:commandline="ro" "${zpool_name}"'/root'
}