* [gentoo-catalyst] Support for custom memory settings in AUFS [not found] <1366997059-7478-mlmmj-0c5cc6a9@lists.gentoo.org> @ 2013-04-26 13:47 ` Isabel Orocu 2013-04-26 18:01 ` Rick "Zero_Chaos" Farina 0 siblings, 1 reply; 3+ messages in thread From: Isabel Orocu @ 2013-04-26 13:47 UTC (permalink / raw To: gentoo-catalyst [-- 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 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [gentoo-catalyst] Support for custom memory settings in AUFS 2013-04-26 13:47 ` [gentoo-catalyst] Support for custom memory settings in AUFS Isabel Orocu @ 2013-04-26 18:01 ` Rick "Zero_Chaos" Farina 2013-04-26 14:40 ` Fernando Reyes 0 siblings, 1 reply; 3+ messages in thread From: Rick "Zero_Chaos" Farina @ 2013-04-26 18:01 UTC (permalink / raw To: gentoo-catalyst -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 04/26/2013 09:47 AM, Isabel Orocu wrote: > 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. > > This looks a lot more like genkernel than catalyst... Wrong ML perhaps? - -ZC -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJResDnAAoJEKXdFCfdEflK07wQAJlBytlansfIuZITLPdYQSvX YlGtpnzXWwxbrnbpHJqOs5whRQNfn9iTiVSb+fpttCwYnJVdLXaCarc795LiuXDa bfBJMjxHWnqOjbPBUWyfzZNI/tU7FCxzHHItRuAkGkjk7uxduCDlbLdjpyfa6fD9 s0C+94FjtlbG8qEIY5U2270D3ntBF70j4ERSR013IIIwdcbVFgRqQ4FrQYLrfWJh VCDi1c39w9/ku5jCOh3CYKi3Unp6fs+PUJbzuNbaEPkfpvzU7u/p56SfglJrGotk ErvAnQIb+ydDJ1qciBB74grr8xZPvNKK/D66njofp3RDFcne/y7/TaBPw7L+qf/4 tY5q0Esn58V2yXQc2S6UO91OuqJod+Z3Ak4cAT6sPYWf9eBN8Gd/Mg/KZsfnR7/v KrjMYGRCpWthR9xXlCLyVESJ3H/e4geJgGbMAmPtxX2Fs8eTHvjRnQ+V3T7W98B8 3yfPA3jUphW/0XL0S6ezPAIo3Ym8rInE3PAhNXyC5MYg1AqW++mGyr2yndLOw1ja pIrTjaQ1XqtlIt2YEQSvII0zEO6yqzbxYhBhDu1pdf/CXle4Jyp2sLA4L/dhIzMZ R8WhIJpT2wtg/gFKZkkGla8RJdizGoXriYjVC1Zpum8Y0e0XsVoVZnq4gUuRA8/6 cd4cZPqoDno/oD/vwALb =whYm -----END PGP SIGNATURE----- ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-catalyst] Support for custom memory settings in AUFS 2013-04-26 18:01 ` Rick "Zero_Chaos" Farina @ 2013-04-26 14:40 ` Fernando Reyes 0 siblings, 0 replies; 3+ messages in thread From: Fernando Reyes @ 2013-04-26 14:40 UTC (permalink / raw To: gentoo-catalyst [-- Attachment #1: Type: text/plain, Size: 612 bytes --] On 04/26/13 18:01, Rick "Zero_Chaos" Farina wrote: > On 04/26/2013 09:47 AM, Isabel Orocu wrote: > > 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. > > > This looks a lot more like genkernel than catalyst... Wrong ML perhaps? > > -ZC > yea my mistake. -- Thank you, Fernando Orocu GPG BDD75DD7 Mission Accomplish, Inc. Tel: 7187100008 Cell: 3479275477 [-- Attachment #2: Type: text/html, Size: 1093 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-04-26 18:40 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <1366997059-7478-mlmmj-0c5cc6a9@lists.gentoo.org> 2013-04-26 13:47 ` [gentoo-catalyst] Support for custom memory settings in AUFS Isabel Orocu 2013-04-26 18:01 ` Rick "Zero_Chaos" Farina 2013-04-26 14:40 ` Fernando Reyes
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox