# simply creating an instance of this class and listing the system
# block devices will make them show up so vgscan can find the planetlab
# volume group
- systeminfo.get_block_device_list(vars, log)
+ systeminfo.get_block_devices_dict(vars, log)
try:
utils.sysexec("vgscan", log)
utils.sysexec("vgchange -ay planetlab", log)
except BootManagerException as e:
- log.write("BootManagerException during vgscan/vgchange: {}\n"\
- .format(str(e)))
+ log.write("BootManagerException during vgscan/vgchange: {}\n".format(e))
return 0
utils.makedirs(SYSIMG_PATH)
os.stat("{}/boot/vmlinuz-{}".format(SYSIMG_PATH, kversion))
major_version = int(kversion[0]) # Check if the string looks like a kernel version
except:
- kversion = os.popen("ls -lrt {}/lib/modules | tail -1 | awk '{print $9;}'"\
+ kversion = os.popen("ls -lrt {}/lib/modules | tail -1 | awk '{{print $9;}}'"\
.format(SYSIMG_PATH)).read().rstrip()
except OSError as e:
log.write("Couldn't locate base kernel (you might be using the stock kernel).\n")