-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f7bc569
commit bd9ce2b
Showing
3 changed files
with
36 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# ZFS Setup | ||
|
||
The best store to use as a backend is probably ZFS. A simple setup without | ||
changing your whole system to ZFS might look something like: | ||
|
||
|
||
``` | ||
truncate --size XG zfs.img | ||
sudo zpool create obuilder-zfs $PWD/zfs.img | ||
``` | ||
|
||
And then you can run shark (from source, in a development mode). | ||
|
||
``` | ||
sudo env "PATH=$PATH" dune exec -- shark md specs/shark.md --store=zfs:obuilder-zfs --verbose | ||
``` | ||
|
||
If your system is booted from ZFS, then there might some `<hostname>` ZFS pool, and you will want | ||
the datasets to be stored under a sub-dataset name for example `shark`. | ||
|
||
``` | ||
sudo env "PATH=$PATH" dune exec -- shark md specs/shark.md --store=zfs:<hostname>:shark --zfs-path-without-pool --verbose | ||
``` | ||
|
||
The files will be available from `/shark/results/<hash>/rootfs` after this. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule obuilder
updated
11 files
+1 −1 | lib/archive_extract.ml | |
+33 −10 | lib/build.ml | |
+2 −2 | lib/container_image_extract.ml | |
+6 −1 | lib/docker.ml | |
+2 −2 | lib/s.ml | |
+21 −8 | lib/store_spec.ml | |
+1 −1 | lib/zfs_clone.ml | |
+48 −12 | lib/zfs_store.ml | |
+2 −2 | lib/zfs_store.mli | |
+12 −0 | vendor/container-image/src/spec/config.ml | |
+3 −0 | vendor/container-image/src/spec/config.mli |