index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Simo Leone <simo@archlinux.org> | 2008-02-05 23:59:52 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-02-06 10:10:14 -0600 |
commit | 0b0a7b31401822a28ed2f30be1c55d5c76111528 (patch) | |
tree | dd3e4fb6a4a8715aae193208c3ee94b96404f5cd /makechrootpkg | |
parent | e0f139ad0e2b4144c39fa4431d174f453eb0ca52 (diff) |
-rwxr-xr-x | makechrootpkg | 8 |
diff --git a/makechrootpkg b/makechrootpkg index b4c94ce..cf1ee26 100755 --- a/makechrootpkg +++ b/makechrootpkg @@ -104,7 +104,13 @@ cleanup () uniondir="$chrootdir/union" echo "building union chroot" -modprobe -q unionfs +grep -Fq unionfs /proc/filesystems +if [ $? -ne 0 ]; then + modprobe -q unionfs + if [ $? -ne 0 ]; + echo "ERROR: No unionfs available. Abandon ship!" && exit 1 + fi +fi mount -t unionfs none -o "dirs=$chrootdir/rw=rw:$chrootdir/root=ro" "$uniondir" trap 'cleanup' 0 1 2 15 |