ROOT_MOUNTED = 1
vars['ROOT_MOUNTED'] = 1
+ utils.display_disks_status(PARTITIONS, "In ChainBootNode", log)
+
# write out the session value /etc/planetlab/session
try:
session_file_path = "{}/{}/session".format(SYSIMG_PATH, PLCONF_DIR)
# total amount of new space in gb
extended_gb_size = 0
+ utils.display_disks_status(PARTITIONS, "In CheckForNewDisks", log)
+
for device, details in devices_dict.items():
(major, minor, blocks, gb_size, readonly) = details
utils.sysexec_noerr("vgscan --mknodes", log)
# debugging info - show in either mode
- log.write("In InstallBootstrapFS : DEVICES status BEG\n")
- utils.sysexec_noerr("vgdisplay", log)
- utils.sysexec_noerr("pvdisplay", log)
- for name, path in PARTITIONS.items():
- log.write("PARTITIONS[{}]={}\n".format(name,path))
- utils.sysexec_noerr("ls -l {}".format(path), log)
- log.write("In InstallBootstrapFS : DEVICES status END\n")
+ utils.display_disks_status(PARTITIONS, "In InstallBootstrapFS", log)
+
+ utils.breakpoint("we need to make /dev/mapper/* appear")
log.write("turning on swap space\n")
utils.sysexec("swapon {}".format(PARTITIONS["swap"]), log)
# list of block devices used may be updated
vars["INSTALL_BLOCK_DEVICES"] = used_devices
+ utils.display_disks_status(PARTITIONS, "End of InstallPartitionDisks", log)
+
return 1
return m.hexdigest()
except IOError:
raise BootManagerException("Cannot calculate SHA1 hash of {}".format(filename))
+
+def display_disks_status(PARTITIONS, message, log):
+ log.write("{} - PARTITIONS status - BEG\n".format(message))
+ sysexec_noerr("vgdisplay", log)
+ sysexec_noerr("pvdisplay", log)
+ for name, path in PARTITIONS.items():
+ log.write("PARTITIONS[{}]={}\n".format(name,path))
+ sysexec_noerr("ls -l {}".format(path), log)
+ log.write("{} - PARTITIONS status - END\n".format(message))