summaryrefslogtreecommitdiffstats
path: root/recipes/squashfs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/squashfs.sh')
-rwxr-xr-xrecipes/squashfs.sh18
1 files changed, 12 insertions, 6 deletions
diff --git a/recipes/squashfs.sh b/recipes/squashfs.sh
index 3daaf2e8..ac5bfca6 100755
--- a/recipes/squashfs.sh
+++ b/recipes/squashfs.sh
@@ -1,12 +1,18 @@
#!/bin/sh -
datadir=/usr/share/man/man8
+rm -f 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
+
+rm test.sqsh