git init
[tools/sbs.git] / share / sbs / scripts / 330.makeimage-hook.create-ext4-tgz.fakeroot
1 #!/bin/sh
2
3 PATH="$PATH:/sbin:/usr/sbin:/usr/local/sbin"
4
5 set -e
6 set -x
7
8 cd ..
9
10 partitions="rootdir data"
11
12 for i in $partitions; do
13         ( cd $i && tar cpszf ../${i}.tgz --one-file-system . )
14 done
15