diff --git a/README.md b/README.md index bb4930c..4cdd3a4 100644 --- a/README.md +++ b/README.md @@ -327,13 +327,13 @@ Create datasets zfs create -o canmount=off zpool/data/opt zfs create zpool/data/opt/git ``` -Remember that the `zpool/data` dataset already exists and has that it has both `mountpoint=/` and `canmount=off` set. It is not and cannot be mounted itself, it instead conveniently anchors datasets at `/`. Since the `canmount` dataset property cannot be inherited and defaults to `canmount=on` we have to manually specify `-o canmount=off`. Our new `zpool/data/opt` should not automatically mount into `/opt`. +Remember that the `zpool/data` dataset already exists and that it has both `mountpoint=/` and `canmount=off` set. It is not and cannot be mounted itself, it instead conveniently anchors datasets at `/`. Since the `canmount` dataset property cannot be inherited and defaults to `canmount=on` we have to manually specify `-o canmount=off`. Our new `zpool/data/opt` should not automatically mount into `/opt`. We then create the child dataset `zpool/data/opt/git`, it defaults to `canmount=on` thus immediately shows up at `/opt/git`. Move data back into place and clean up temp directory ``` -rsync -av --remove-source-files '/opt/git'{'.bak',} +rsync -av --remove-source-files '/opt/git'{'.bak',}'/' find '/opt/git.bak' -type d -empty -delete ```