diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2023-05-06 17:54:46 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2023-05-06 17:54:46 -0600 |
commit | 8dd4dfc841de65af95b716515cbfe55b3630a390 (patch) | |
tree | 5f06743a987bb8bca832d9174c163381565c5997 /examples/mount.sh | |
parent | a029039acf979ec19a4a889bc73e1574f31bb65b (diff) |
mv scripts examples
Diffstat (limited to 'examples/mount.sh')
-rwxr-xr-x | examples/mount.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/examples/mount.sh b/examples/mount.sh new file mode 100755 index 0000000..4894e94 --- /dev/null +++ b/examples/mount.sh @@ -0,0 +1,21 @@ +#!/bin/bash +readonly image=../scratch/dump-zero.img + +###################################################################### + +set -e +set -x + +make build + +gendir="${image%.img}.gen" +mountpoint="${image%.img}.mnt" +mkdir -p "$mountpoint" + +sudo ./bin/btrfs-rec \ + --pv="$image" + --mappings="$gendir/2.mappings.json" \ + --rebuild \ + inspect mount \ + --skip-filesums \ + "$mountpoint" |