Browse Source

kernel 3.4.3-1 で aufs が組み込みになったので modprobe に失敗し aufs
mountができなくなっていた。/proc/filesystem を参照するように変更。


git-svn-id: http://trac.vinelinux.org/repos/projects/vbootstrap/trunk@6376 ec354946-7b23-47d6-9f5a-488ba84defc7

daisuke 12 years ago
parent
commit
6315619616
1 changed files with 2 additions and 1 deletions
  1. 2 1
      vbuilder.sh.in

+ 2 - 1
vbuilder.sh.in

@@ -523,7 +523,8 @@ mount-chroot-mount(){
 	unionfs_dir)
 	    if [ $with_unionfs -eq 1 ]; then
 		[ -d ${UNIONFS_ROOT} ] || mkdir -p ${UNIONFS_ROOT}
-		if ( /sbin/modprobe aufs >& /dev/null ) ; then
+		/sbin/modprobe aufs >& /dev/null ||:
+		if ( grep -q aufs /proc/filesystem ) ; then
 		    [ -z "$(mount | grep ${UNIONFS_ROOT})" ] && \
 		        mount -t aufs -o br=${UNIONFS_ROOT}=rw:${BUILD_ROOT}=ro aufs ${BUILD_ROOT}
 		else