git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Version 1.10.10.
[libguestfs.git]
/
recipes
/
squashfs.sh
diff --git
a/recipes/squashfs.sh
b/recipes/squashfs.sh
index
3daaf2e
..
ac5bfca
100755
(executable)
--- a/
recipes/squashfs.sh
+++ b/
recipes/squashfs.sh
@@
-1,12
+1,18
@@
#!/bin/sh -
datadir=/usr/share/man/man8
#!/bin/sh -
datadir=/usr/share/man/man8
+rm -f test.sqsh
/sbin/mksquashfs $datadir test.sqsh
/sbin/mksquashfs $datadir test.sqsh
-guestfish <<EOF
-alloc test.img 10M
-add test.sqsh
-run
-mount /dev/sdb /
-ll /
+guestfish -N fs -a test.sqsh <<'EOF'
+ mkmountpoint /output
+ mkmountpoint /squash
+ mount-options "" /dev/sda1 /output
+ mount-options "" /dev/sdb /squash
+ cp-a /squash /output/man8
+ umount /squash
+ df-h
+ umount /output
EOF
EOF
+
+rm test.sqsh