X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=source%2Fsteps%2FInstallBootstrapFS.py;h=70d22a55a0a69da760d6a3c52d5131a07ec9e9e1;hb=f6377042fcf61e48c52c814aee70733701739dbf;hp=8875394c7734b05a082fbcf0fba6c9572117f7db;hpb=d7f858a139c1b935b65e38a2d2b364a578b0a26f;p=bootmanager.git diff --git a/source/steps/InstallBootstrapFS.py b/source/steps/InstallBootstrapFS.py index 8875394..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) @@ -257,6 +264,7 @@ def CleanupSysimgBeforeUpgrade(sysimg, target_nodefamily, log): if line.startswith(prefix): installed_nodefamily = line.replace(prefix,"").strip() installed_pldistro, installed_fcdistro, installed_arch = installed_nodefamily.split('-') + # do not break here, bm-install is additive, we want the last one.. with open("{}/etc/planetlab/virt".format(sysimg)) as infile: installed_virt = infile.read().strip() except Exception as e: