mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-12 22:07:10 +00:00
Ensure MAAS squashfsi are clean of passwords. LP: #1764991.
This commit is contained in:
parent
bff2e8cf5e
commit
3ed266091c
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
||||
livecd-rootfs (2.523) UNRELEASED; urgency=medium
|
||||
|
||||
* Ensure MAAS squashfsi are clean of passwords. LP: #1764991.
|
||||
|
||||
-- Dimitri John Ledkov <xnox@ubuntu.com> Thu, 19 Apr 2018 13:29:08 +0100
|
||||
|
||||
livecd-rootfs (2.522) bionic; urgency=medium
|
||||
|
||||
* Remove landscape-common from minimal image, and handle restoring it in
|
||||
|
@ -44,6 +44,10 @@ mount_overlay "$SQUASH_ROOT/" "$OVERLAY_RACK_ROOT/" "$RACK_ROOT/" "RACK"
|
||||
|
||||
setup_mountpoint $RACK_ROOT
|
||||
env DEBIAN_FRONTEND=noninteractive chroot $RACK_ROOT apt-get -y install maas-rack-controller
|
||||
rm -f $RACK_ROOT/etc/maas/rackd.conf
|
||||
chroot $RACK_ROOT sh -c 'echo RESET maas/default-maas-url | debconf-communicate maas-common'
|
||||
chroot $RACK_ROOT sh -c 'echo RESET maas-rack-controller/maas-url | debconf-communicate maas-common'
|
||||
chroot $RACK_ROOT sh -c 'echo RESET maas-rack-controller/maas-url | debconf-communicate maas-rack-controller'
|
||||
teardown_mountpoint $RACK_ROOT
|
||||
|
||||
umount "$RACK_ROOT"
|
||||
@ -53,8 +57,25 @@ umount "$RACK_ROOT"
|
||||
mount_overlay "$OVERLAY_RACK_ROOT/:$SQUASH_ROOT/" "$OVERLAY_REGION_ROOT/" "$REGION_ROOT/" "REGION"
|
||||
|
||||
setup_mountpoint $REGION_ROOT
|
||||
|
||||
env DEBIAN_FRONTEND=noninteractive chroot $REGION_ROOT apt-get -y install maas
|
||||
chroot $REGION_ROOT pg_ctlcluster 10 main stop
|
||||
|
||||
# 'Reset' dbconfig state
|
||||
chroot $REGION_ROOT debconf -fnoninteractive -omaas-region-controller /var/lib/dpkg/info/maas-region-controller.prerm remove
|
||||
chroot $REGION_ROOT debconf -fnoninteractive -omaas-region-controller /var/lib/dpkg/info/maas-region-controller.postrm remove
|
||||
chroot $REGION_ROOT debconf -fnoninteractive -omaas-region-controller /var/lib/dpkg/info/maas-region-controller.postrm purge
|
||||
chroot $REGION_ROOT sh -c 'echo RESET maas/default-maas-url | debconf-communicate maas-common'
|
||||
|
||||
chroot $REGION_ROOT pg_ctlcluster $(/bin/ls $REGION_ROOT/var/lib/postgresql/) main stop || :
|
||||
|
||||
# "Forget" passwords
|
||||
rm -f $REGION_ROOT/etc/maas/rackd.conf
|
||||
rm -f $REGION_ROOT/etc/maas/regiond.conf
|
||||
|
||||
# After the install, one may call the below to "reconfigure" maas-region-controller
|
||||
## debconf -fnoninteractive -omaas-region-controller /var/lib/dpkg/info/maas-region-controller.config configure
|
||||
## debconf -fnoninteractive -omaas-region-controller /var/lib/dpkg/info/maas-region-controller.postinst configure
|
||||
|
||||
teardown_mountpoint "$REGION_ROOT"
|
||||
|
||||
umount "$REGION_ROOT"
|
||||
|
Loading…
x
Reference in New Issue
Block a user