From 2269e5c9c89032c6752d9bb78d25738919854e43 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Tue, 14 Apr 2009 14:28:08 -0500 Subject: Replace unionfs with aufs Signed-off-by: Aaron Griffin --- makechrootpkg | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/makechrootpkg b/makechrootpkg index 536c4e2..78601d4 100755 --- a/makechrootpkg +++ b/makechrootpkg @@ -50,7 +50,7 @@ usage () echo "-d Add the package to a local db at /repo after building" echo "-r The chroot shell to use" echo "-I Install a package into the rw layer of the chroot" - echo "-l The directory to use as the rw layer of the unionfs" + echo "-l The directory to use as the rw layer of the union" echo " Useful for maintain multiple layers. Default: rw" exit 1 } @@ -118,14 +118,14 @@ cleanup () uniondir="$chrootdir/union" echo "building union chroot" -grep -Fq unionfs /proc/filesystems +grep -Fq aufs /proc/filesystems if [ $? -ne 0 ]; then - modprobe -q unionfs + modprobe -q aufs if [ $? -ne 0 ]; then - echo "ERROR: No unionfs available. Abandon ship!" && exit 1 + echo "ERROR: No aufs available. Abandon ship!" && exit 1 fi fi -mount -t unionfs none -o "dirs=$chrootdir/$LAYER=rw:$chrootdir/root=ro" "$uniondir" +mount -t aufs none -o "dirs=$chrootdir/$LAYER=rw:$chrootdir/root=ro" "$uniondir" trap 'cleanup' 0 1 2 15 if [ -n "$install_pkg" ]; then -- cgit v1.2.3-70-g09d2