Fix autoinstall logic when configured memory is lower than needed 0.0.57
authorMitchell E Berger <mitchb@mit.edu>
Sat, 2 Feb 2019 21:55:37 +0000 (16:55 -0500)
committerMitchell E Berger <mitchb@mit.edu>
Sat, 2 Feb 2019 21:55:37 +0000 (16:55 -0500)
invirt-database: Fix the autoinstall logic so that if we've
increased the memory temporarily for the autoinstall above
the machine's database setting, we also bring maxmem up to
the same level.  Otherwise the machine doesn't turn on
because it's requesting to start with more memory than maxmem,
and this failure mode is silent to the user.

debian/changelog
invirt-database

index 40ff336..c0ac0ae 100644 (file)
@@ -1,3 +1,14 @@
+invirt-xen-config (0.0.57) unstable; urgency=low
+
+  * invirt-database: Fix the autoinstall logic so that if we've
+    increased the memory temporarily for the autoinstall above
+    the machine's database setting, we also bring maxmem up to
+    the same level.  Otherwise the machine doesn't turn on
+    because it's requesting to start with more memory than maxmem,
+    and this failure mode is silent to the user.
+
+ -- Mitchell Berger <mitchb@mit.edu>  Sat, 02 Feb 2019 16:52:00 -0500
+
 invirt-xen-config (0.0.56) unstable; urgency=low
 
   * vif-invirtroute: Kill arpspoof with SIGKILL when we're done.  The
index 5e7b772..11fefb5 100644 (file)
@@ -101,6 +101,7 @@ if 'installer_options' in locals(): #Installer
     codepath = None
 
     memory = max(memory, 768)
+    maxmem = memory
 elif cdrom is not None:
     disk.append('phy:/dev/xenvg/image_' + cdrom.cdrom_id + ',hdc:cdrom,r')
     boot = 'd'