blob: 4894e94b29afb7a8ee7dbfdf0e4e68a0d01140d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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"
|