X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=source%2Fsteps%2FInstallBootstrapFS.py;fp=source%2Fsteps%2FInstallBootstrapFS.py;h=70d22a55a0a69da760d6a3c52d5131a07ec9e9e1;hb=f6377042fcf61e48c52c814aee70733701739dbf;hp=24ea4bfd96c7620783c6d91a7a16b77955fd72d3;hpb=64ddfcb8ba5498bd25f469d5daabdbcafbc41821;p=bootmanager.git diff --git a/source/steps/InstallBootstrapFS.py b/source/steps/InstallBootstrapFS.py index 24ea4bf..70d22a5 100644 --- a/source/steps/InstallBootstrapFS.py +++ b/source/steps/InstallBootstrapFS.py @@ -78,6 +78,13 @@ def Run(vars, upgrade, log): bs_request = BootServerRequest.BootServerRequest(vars) + # in upgrade mode, since we skip InstallPartitionDisks + # we need to run this + if upgrade: + log.write("Running vgscan for devices (upgrade mode)\n") + systeminfo.get_block_devices_dict(vars, log) + utils.sysexec_noerr("vgscan", log) + log.write("turning on swap space\n") utils.sysexec("swapon {}".format(PARTITIONS["swap"]), log)