Skip to content

openrc initd for mounting Gentoo portage on tmpfs, keeping the ebuild repo persistent in fast memory instead of disk

Notifications You must be signed in to change notification settings

nabbi/gentoo-portage-tmpfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Gentoo Portage ebuild tmpfs

If you are hosting a busy portage rsync or nfs server, and have 2GB free non-swappable memory, this initd script migrates portage into fast tmpfs which persists server reboots.

setup

copy portage-tmpfs into /etc/init.d/, run setup, then start

wget https://raw.githubusercontent.com/nabbi/gentoo-portage-tmpfs/master/portage-tmpfs -O /etc/init.d/portage-tmpfs
chmod +x /etc/init.d/portage-tmpfs

/etc/init.d/portage-tmpfs setup
/etc/init.d/portage-tmpfs start
rc-update add portage-tmpfs

removal

revert back to normal non-tmpfs portage

/etc/init.d/portage-tmpfs stop
/etc/init.d/portage-tmpfs remove
rc-update del portage-tmpfs
rm /etc/init.d/portage-tmpfs

About

openrc initd for mounting Gentoo portage on tmpfs, keeping the ebuild repo persistent in fast memory instead of disk

Topics

Resources

Stars

Watchers

Forks

Languages