IBT-FMI / gebuilder

Gentoo System and Image Builder
GNU General Public License v3.0
11 stars 0 forks source link

Not auto-syncing gentoo repo? #7

Closed TheChymera closed 4 years ago

TheChymera commented 6 years ago

@Doeme , is there any reason we set auto-sync to no here?

Doeme commented 6 years ago

Yes, there was a reason, namely that we do not want the specialized systems to automatically sync the /usr/portage, because this gets bind-mounted from the stemgentoo (It's considered bad style to sync a portage repo multiple times in a row)

TheChymera commented 6 years ago

Ok, that makes a lot of sense, but one effect of that is, that the general-purpose OpenStack systems do not behave as expected when running e.g. eix-sync or emerge --sync. Any ideas how this can be addressed rather than requiring yet another manual configuration step when starting out with one of our images?

Doeme commented 6 years ago

Probably just sed it away ('/auto-sync=no/d') in a scripts/openstack_image/*.sh step?

TheChymera commented 4 years ago

The commit is only a partial fix, since it's restricted to the openstack_image command. Ideally this would be done more generally so that it applies to all the image variants.

Doeme commented 4 years ago

Then we probably should sed it in in scripts/update/default/xxx.sh and away in scripts/update/default/zzz.sh.

Or rather, do it just before and after issuing emerge --sync, id est: here https://github.com/IBT-FMI/gebuilder/blob/c2fffa772c8223c15ab90181342ed13a297d3fdf/gebuilder/scripts/common/sync.sh#L10

TheChymera commented 4 years ago

Is emaint sync -a in this file really the only sync we want to protect against?

Doeme commented 4 years ago

I think so, yes.