fix(zfs): Make sure root dataset cannot be mounted on accident (#3)
This commit is contained in:
2
setup.sh
2
setup.sh
@@ -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'
|
||||
}
|
||||
|
Reference in New Issue
Block a user