On the original livedvd which I initially implemented AUFS support to
allow users to use of emerge, I implemented the ability to append
"aufs_mem=X" into the kernel since the default was to use tmpfs without
"-o size" option. Attached is a patch that will reintroduce this to
catalyst.
--
Thank you,
Fernando Orocu
GPG BDD75DD7
Mission Accomplish, Inc.
Tel: 7187100008
Cell: 3479275477
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
index ff724b5..c59a100 100755
--- a/defaults/initrd.scripts
+++ b/defaults/initrd.scripts
@@ -1152,7 +1152,13 @@ setup_squashfs_aufs() {
modprobe aufs > /dev/null 2>&1
mount -t squashfs -o loop,ro "${CDROOT_PATH}/${LOOPEXT}${LOOP}" "${static}"
- mount -t tmpfs none "${overlay}"
+
+ if [ ${aufs_mem} ];then
+ mount -t tmpfs none "${overlay}"
+ else
+ mount -t tmpfs -o size=${aufs_mem} none "${overlay}"
+ fi
+
mount -t aufs -o br:${overlay}:${static} aufs "${NEW_ROOT}"
[ ! -d "${NEW_ROOT}${overlay}" ] && mkdir -p "${NEW_ROOT}${overlay}"
diff --git a/defaults/linuxrc b/defaults/linuxrc
index ba9c5d5..fef14ba 100755
--- a/defaults/linuxrc
+++ b/defaults/linuxrc
@@ -248,6 +248,9 @@ do
aufs)
USE_AUFS_NORMAL=1
;;
+ aufs_mem=*)
+ aufs_mem=${x#*=}
+ ;;
unionfs)
if [ ! -x /sbin/unionfs ]
then