docs(os): Typo (#3)
This commit is contained in:
parent
ecc33655db
commit
8f131e3aaf
@ -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
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user