Workaround:

rm /var/aegir
mkdir /var/aegir
sudo mount -o bind /srv/aegir /var/aegir

Comments

ergonlogic’s picture

Component: Code » Debian package

Is this only in the .deb, or are we talking about something in upgrade.sh or hostmaster-migrate?

anarcat’s picture

Component: Debian package » Code

another potential workaround is to change the real root of the aegir install, by changing the home of the aegir user, this seemed to work in another instance here.

ergonlogic’s picture

It looks like we're hard-coding the aegir home in aegir2-hostmaster.postinst:

VARLIB="/var/aegir"

Am I mis-reading that? How could one even go about installing with the .debs using a different home? But, I'm not even sure that matters here...

anarcat’s picture

Assigned: Unassigned » anarcat
Issue summary: View changes
Status: Active » Fixed

i am not sure we can completely fix this in aegir: /var/aegir is managed by the debian package, and while we could mess around and make it created in preinst, that is messy. besides, with the new "distributions-based" system, we are likely to ship the hostmaster source code directly in the debian package, in which case we need to hardcode that path.

still, I have made *some* fix here, by getting the path from the aegir user's $HOME variable. we can review that decision later if we change packaging, but for now the change is localised so it will be easy to change.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.