blob: bf84163a74f071f4e61a59253159b22e79e1cda2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/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" \
inspect mount \
--skip-filesums \
"$mountpoint"
|