zectl icon indicating copy to clipboard operation
zectl copied to clipboard

Block setting org.zectl.org.zectl:<property>

Open lethedata opened this issue 3 years ago • 1 comments

zectl set org.zectl:<property>=<value> counts as a valid property leading to an org.zectl.org.zectl: entry.

I'm not sure if these entries lead to anything beyond a dud entry but zectl as it depends on how zectl and it's plugins are filtered. zectl get show the property and they can be set independent from the actual entries so it might lead to some issues.

I was able to remove the property as mentioned in https://github.com/johnramsden/zectl/issues/16#issuecomment-626260799.

TOFIX: 'zectl' needs an 'unset' subcommand

Are you just looking to "erase" a property?

be_active_ds="$(zpool get bootfs -H -o value)"
be_root="${be_active_ds%/*}"
zfs inherit org.zectl:yourprop "${be_root}"

lethedata avatar Feb 14 '22 09:02 lethedata

Right now zectl set is basically a wrapper around zfs set, so this is working as expected. However this should probably be fixed so that if you add the prefix it issues a warning or ignores it and only has the prefix once.

johnramsden avatar Mar 18 '22 21:03 johnramsden