Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fwlive.git;a=commitdiff;h=13a08ef115ae96683936e3995b244d8c3a10e58f

commit 13a08ef115ae96683936e3995b244d8c3a10e58f
Author: James Buren <[email protected]>
Date:   Mon Feb 18 00:16:33 2013 -0600

port squashfs creator

diff --git a/new/create-squashfs b/new/create-squashfs
new file mode 100755
index 0000000..db72a12
--- /dev/null
+++ b/new/create-squashfs
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+set -e
+
+ROOT="$(pwd)/root"
+
+if [ "$(id -u)" -ne 0 ]; then
+       echo "You must be root to do this."
+       exit 1
+fi
+
+# Create the root directory.
+mkdir -p $ROOT/LiveOS
+cp rootfs.img $ROOT/LiveOS/rootfs.img
+
+# Create squashfs image.
+mksquashfs $ROOT squashfs.img -noappend -comp gzip
+
+# Delete the root directory.
+rm -rf $ROOT
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to