From: Isabel Orocu <design@missionaccomplish.com>
To: gentoo-catalyst@lists.gentoo.org
Subject: [gentoo-catalyst] Support for custom memory settings in AUFS
Date: Fri, 26 Apr 2013 13:47:31 +0000 [thread overview]
Message-ID: <517A8573.4010207@missionaccomplish.com> (raw)
In-Reply-To: <1366997059-7478-mlmmj-0c5cc6a9@lists.gentoo.org>
[-- Attachment #1: Type: text/plain, Size: 390 bytes --]
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
[-- Attachment #2: catalyst-aufs-mem-support.patch --]
[-- Type: text/x-patch, Size: 1000 bytes --]
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
next parent reply other threads:[~2013-04-26 17:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1366997059-7478-mlmmj-0c5cc6a9@lists.gentoo.org>
2013-04-26 13:47 ` Isabel Orocu [this message]
2013-04-26 18:01 ` [gentoo-catalyst] Support for custom memory settings in AUFS Rick "Zero_Chaos" Farina
2013-04-26 14:40 ` Fernando Reyes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=517A8573.4010207@missionaccomplish.com \
--to=design@missionaccomplish.com \
--cc=gentoo-catalyst@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox