git.annexia.org
/
libguestfs.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
debian: Note that libconfig-dev ought to be required.
[libguestfs.git]
/
recipes
/
squashfs.sh
1
#!/bin/sh -
2
3
datadir=/usr/share/man/man8
4
rm -f test.sqsh
5
/sbin/mksquashfs $datadir test.sqsh
6
7
guestfish -N fs -a test.sqsh <<'EOF'
8
mkmountpoint /output
9
mkmountpoint /squash
10
mount-options "" /dev/sda1 /output
11
mount-options "" /dev/sdb /squash
12
cp-a /squash /output/man8
13
umount /squash
14
df-h
15
umount /output
16
EOF
17
18
rm test.sqsh