Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] squashed portage tree
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
emc
Guru
Guru


Joined: 02 Jul 2004
Posts: 386
Location: Cracow, Poland

PostPosted: Tue Oct 08, 2013 5:13 pm    Post subject: [solved] squashed portage tree Reply with quote

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:
# modprobe aufs

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
View user's profile Send private message
mv
Advocate
Advocate


Joined: 20 Apr 2005
Posts: 3781

PostPosted: Wed Oct 09, 2013 9:58 am    Post subject: Reply with quote

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
View user's profile Send private message
mixam85
n00b
n00b


Joined: 30 Jan 2008
Posts: 8

PostPosted: Thu Oct 24, 2013 10:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
Yamakuzure
Veteran
Veteran


Joined: 21 Jun 2006
Posts: 1237
Location: Bardowick, Germany

PostPosted: Fri Oct 25, 2013 10:13 am    Post subject: Reply with quote

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.
_________________
I *do* know that I easily aggravate people due to my condensed writing. Rule of thumb: If I wrote anything that can be understood in two different ways, and one way offends you, then I meant the other! ;)
Back to top
View user's profile Send private message
init_6
Apprentice
Apprentice


Joined: 22 Jun 2008
Posts: 162

PostPosted: Thu Mar 20, 2014 6:54 am    Post subject: Reply with quote

By examples from old wiki i make simple bash script squashed-portage + ebuild sys-apps/squashed-portage-0.3.0 all almost the same like in old wiki.

And for my works fine.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum