Add comments and pointers to bugs.
This commit is contained in:
parent
92df0e040b
commit
b98c37b5e2
|
@ -50,15 +50,27 @@ class InstallpathModel(object):
|
|||
'maas-password': 'maas-region-controller maas/password password %s' % results['password'],
|
||||
}
|
||||
self.curtin['late_commands'] = {
|
||||
# Maintainer scripts cache results, from config files, if they exist
|
||||
# These shouldn't exist, since this was fixed in livecd-rootfs
|
||||
# but remove these, just to be sure
|
||||
'900-maas': ['rm', '-f', '/target/etc/maas/rackd.conf'],
|
||||
'901-maas': ['rm', '-f', '/target/etc/maas/region.conf'],
|
||||
# All the crazy things are workarounds for maas maintainer scripts deficiencies
|
||||
# see https://bugs.launchpad.net/ubuntu/+source/maas/+bugs?field.tag=subiquity
|
||||
#
|
||||
# uuid is not initialized by reconfigure, maybe it should, if it is at all used
|
||||
# make it so, to make it match the udeb/deb installs
|
||||
'902-maas': ['curtin', 'in-target', '--', 'maas-rack', 'config', '--init'],
|
||||
# this should do setups of maas-url for the rack controller, and secret if needed.
|
||||
'903-maas': ['curtin', 'in-target', '--', 'dpkg-reconfigure', '-u', '-fnoninteractive', 'maas-rack-controller'],
|
||||
# Below are workaround to make postgresql database running, and invoke-rc.d --force to not fail
|
||||
# And a running postgresql is needed, to change the role password and to create an admin user
|
||||
'904-maas': ['mount', '-o', 'bind', '/proc', '/target/proc'],
|
||||
'905-maas': ['mount', '-o', 'bind', '/sys', '/target/sys'],
|
||||
'906-maas': ['mount', '-o', 'bind', '/dev', '/target/dev'],
|
||||
'907-maas': ['mount', '-o', 'bind', '/target/bin/true', '/target/usr/sbin/invoke-rc.d'],
|
||||
'908-maas': ['chroot', '/target', 'sh', '-c', 'pg_ctlcluster --skip-systemctl-redirect $(/bin/ls /var/lib/postgresql/) main start'],
|
||||
# These are called like this, because reconfigure doesn't create nor change an admin user account, nor regens the semi-autogenerated maas-url
|
||||
'909-maas': ['chroot', '/target', 'sh', '-c', 'debconf -fnoninteractive -omaas-region-controller /var/lib/dpkg/info/maas-region-controller.config configure'],
|
||||
'910-maas': ['chroot', '/target', 'sh', '-c', 'debconf -fnoninteractive -omaas-region-controller /var/lib/dpkg/info/maas-region-controller.postinst configure'],
|
||||
'911-maas': ['chroot', '/target', 'sh', '-c', 'pg_ctlcluster --skip-systemctl-redirect $(/bin/ls /var/lib/postgresql/) main stop'],
|
||||
|
|
Loading…
Reference in New Issue