View previous topic :: View next topic |
Author |
Message |
emc Guru
Joined: 02 Jul 2004 Posts: 564 Location: Cracow, Poland
|
Posted: Tue Oct 08, 2013 5:13 pm Post subject: [solved] squashed portage tree |
|
|
Hi,
I want setup 'squashed portage tree'. I just found a bit outdated https://github.com/init6/init_6/wiki/squashed-portage-tree. Copy of realy old gentoo wiki. BTW I found odd that there isn't any articel about it on current wiki. I'm not sure is just old technic or just lack of documentation.
So I try to setup it and after few obvious steps, like:
Code: |
[*] emerge -av squashfs-tools
[*] emerge -av aufs3
[*] kernel:
Device Drivers --->
Block Devices --->
<M> Loopback device support
File systems --->
Miscellaneous Filesystems --->
<M> SquashFS
[*] move layman overlay and distfiles outside /usr/portage
[*] add init.d/squash_portage
change source /etc/make.conf to source /etc/portage/make.conf
[*] conf.d/squash_portage
use SYNC_CMDS="/usr/bin/layman -S; /usr/bin/eix-sync"
[*] chmod 755 /etc/init.d/squash_portage
|
I did:
Code: | # cat /proc/filesystems
nodev sysfs
nodev rootfs
nodev bdev
nodev proc
nodev cgroup
nodev cpuset
nodev tmpfs
nodev devtmpfs
nodev debugfs
nodev sockfs
nodev pipefs
nodev anon_inodefs
nodev configfs
nodev devpts
ext3
ext2
ext4
squashfs
nodev ramfs
vfat
iso9660
udf
nodev mqueue
nodev rpc_pipefs
nodev nfs
nodev nfs4
fuseblk
nodev fuse
nodev fusectl
nodev aufs |
but I got:
Code: | # /etc/init.d/squash_portage start
/etc/init.d/squash_portage: line 44: nodev: command not found
* ERROR: aufs filesystem support is not available.
* ERROR: squash_portage failed to start |
And question for the end do I need: sys-apps/squashed-portage::init6
Probably I miss something small i think.... anyway any suggestions?
Last edited by emc on Wed Oct 09, 2013 11:28 am; edited 1 time in total |
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Wed Oct 09, 2013 9:58 am Post subject: |
|
|
I recommend to use sys-fs/squashmount from the mv overlay. Be aware to read its README and edit /etc/squashmount.pl according to your needs. |
|
Back to top |
|
|
mixam85 n00b
Joined: 30 Jan 2008 Posts: 9
|
Posted: Thu Oct 24, 2013 10:47 pm Post subject: |
|
|
I know this post is marked as solved but since the answer in not really helpful and this is the first resuilt on google here is my solution :
Code: |
diff /etc/init.d/squash_portage.orig /etc/init.d/squash_portage
44c44
< if ! $(grep -s $'\taufs$' /proc/filesystems) ; then
---
> if [ -z "$(grep -s $'\taufs$' /proc/filesystems)" ] ; then
48c48
< if ! $(grep -s $'\tsquashfs$' /proc/filesystems) ; then
---
> if [ -z "$(grep -s $'\tsquashfs$' /proc/filesystems)" ] ; then
|
|
|
Back to top |
|
|
Yamakuzure Advocate
Joined: 21 Jun 2006 Posts: 2283 Location: Adendorf, Germany
|
Posted: Fri Oct 25, 2013 10:13 am Post subject: |
|
|
emc wrote: | I just found a bit outdated | outdated is the word to highlight.
Don't meddle with the stuff yourself. Use squashmount from the mv overlay and be happy. I am currently using it for: Code: | ~ $ sudo squashmount -v -v status 2>&1 | grep -P " (aufs|DIR|COMPRESSION)"
* [db]: aufs
DIR: /var/db
COMPRESSION: xz
* [tex]: aufs
DIR: /usr/share/texmf-dist
COMPRESSION: xz
* [portage]: aufs
DIR: /usr/portage
COMPRESSION: xz
* [layman]: aufs
DIR: /var/lib/layman
COMPRESSION: xz
* [games]: aufs
DIR: /usr/share/games
COMPRESSION: lzo
* [office]: aufs
DIR: /usr/lib64/libreoffice
COMPRESSION: xz
* [firefox]: aufs
DIR: /usr/lib64/firefox
COMPRESSION: xz | All squashes are backup'd and stored on a different partition, everything goes nice and easy and flexible. _________________ Important German:- "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
- "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
|
|
Back to top |
|
|
188562 Apprentice
Joined: 22 Jun 2008 Posts: 186
|
|
Back to top |
|
|
|