Creating gentoo template is pretty much like installing gentoo from scratch, you download latest stage3 unpack it in the root dir of template, chroot to it and make the usual gentoo installation except that you need baselayout-2.*
#cat /etc/portage/package.keywords
sys-apps/baselayout ~
sys-apps/makedev ~
You don't need some stuff like boot loader, ntpd and some other hardware related services you may be running in normal node.
For me there are the basic VE services i'm running
# rc-status
Runlevel: default
syslog-ng [ started ]
atd [ started ]
net.eth0 [ started ]
sshd [ started ]
vixie-cron [ started ]
local [ started ]
There are some little issues if you want to run udev - you'd need to use RC_DEVICE_TARBALL="yes" in /etc/conf.d/rc and create a couple of devices, like urandom , by hand for the first time.
This is my minimal set i've managed to work with.
# ls -la /dev
total 4
drwxr-xr-x 5 root root 360 Mar 6 21:13 .
drwxr-xr-x 17 root root 4096 Mar 6 21:13 ..
drwxr-xr-x 6 root root 140 Mar 6 21:13 .udev
crw-r--r-- 1 root root 5, 1 Feb 6 12:00 console
lrwxrwxrwx 1 root root 13 Mar 6 21:13 fd -> /proc/self/fd
prw------- 1 root root 0 Mar 6 21:13 initctl
srw-rw-rw- 1 root root 0 Mar 6 21:13 log
crw-rw-rw- 1 root root 1, 3 Feb 6 12:00 null
crw-rw-rw- 1 root tty 5, 2 Mar 10 00:34 ptmx
drwxr-xr-x 2 root root 0 Mar 6 21:13 pts
crw-r--r-- 1 root root 1, 8 Feb 6 12:01 random
drwxrwxrwt 2 root root 40 Mar 6 21:13 shm
lrwxrwxrwx 1 root root 4 Mar 6 21:13 stderr -> fd/2
lrwxrwxrwx 1 root root 4 Mar 6 21:13 stdin -> fd/0
lrwxrwxrwx 1 root root 4 Mar 6 21:13 stdout -> fd/1
crw-rw-rw- 1 root tty 5, 0 Jan 31 01:33 tty
crw-r--r-- 1 root root 4, 1 Feb 6 12:00 tty1
crw-r--r-- 1 root root 1, 9 Feb 6 12:01 urandom
You can also have a shared portage tree, distfiles & binary packages repo if you want to save time on updating the VE.
[Updated on: Sun, 09 March 2008 21:49] by Moderator
Report message to a moderator