Git-Url: 
https://github.com/frugalware/fwlive/commit/a64d16a60465b7855569623cb4ede0008a4deae0

commit a64d16a60465b7855569623cb4ede0008a4deae0
Author: Baste <ba...@frugalware.org>
Date:   Fri Nov 11 11:48:37 2011 +0100

* Add test if squashfs is present

diff --git a/bin/create-rootfs b/bin/create-rootfs
index f613f21..c52b5cd 100755
--- a/bin/create-rootfs
+++ b/bin/create-rootfs
@@ -7,6 +7,11 @@ if [ "`id -u`" != 0 ]; then
echo "Building the chroot as an unprivileged user is not possible."
exit 1
fi
+## Check package needs for build
+if [ "`pacman-g2 -Q squashfs &>/dev/null;echo $?`" != 0 ]; then
+       echo "Installing Squashfs"
+       pacman-g2 -S squashfs  --noconfirm
+fi

# Mount loop
mkdir -p $CHROOTDIR
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to