1 |
On Tue, 5 May 2009 10:27:52 -0400 |
2 |
Simon <turner25@×××××.com> wrote: |
3 |
|
4 |
... |
5 |
> Right now, here's the base of the process to get one PC updated |
6 |
> (without my unison world): |
7 |
> host> emerge --sync |
8 |
> host> emerge -uDN sum(worlds) [builds binpkgs] |
9 |
> <sync host's portage with PC's portage> |
10 |
> PC> emerge -uDN -k world |
11 |
> ----- |
12 |
> |
13 |
> Here's the process ( a bit more complicated ) using unionfs: |
14 |
> host> emerge --sync |
15 |
> host> emerge -uDN world |
16 |
> <start unionfs over the whole root and chroot in union mount point> |
17 |
> host> emerge -uDN -k sum(worlds) |
18 |
> <exit chroot> |
19 |
> host> rsync -ah --progress /path/to/rootunionfs/usr/portage/packages/* |
20 |
> /usr/portage/packages/ |
21 |
> host> rm -Rvf /path/to/rootunionfs |
22 |
> <sync and emerge on PC as with previous method> |
23 |
> ---- |
24 |
... |
25 |
> What do you think? Should i start working on this? Or is there |
26 |
> anything better out there? |
27 |
|
28 |
Storage space comes pretty cheap these days, so prehaps it's just |
29 |
easier to get dirt-cheap 80G harddisk and build (and keep) all the |
30 |
packages from sum of the worlds on it in a dedicated chroot or VM? |
31 |
|
32 |
To sync world, make.conf and /etc/portage you can easily use distributed |
33 |
VCS like git or mercurial, keeping each host's files in separate |
34 |
branche on this server. |
35 |
It has added benefit of keeping all the history of your configuration, |
36 |
should you need to fall back to some stable state. Also, it's much |
37 |
easier to sync any changes in any way between the hosts that way. |
38 |
|
39 |
sshfs (prehaps with something like funionfs if you keep local packages |
40 |
too) should be enough to mount generated packages to any host and deploy |
41 |
them. |
42 |
|
43 |
To avoid unnecessary syncing of portage trees (even with one local |
44 |
server) you can just mount it when needed, along with the packages, |
45 |
since it doesn't need write access anyway. |
46 |
|
47 |
-- |
48 |
Mike Kazantsev // fraggod.net |