summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e4a7747)
If we're invoking set_rw on the source device this probably
points to the source ISO which will fail.
On the other side we invoke grub-intall with and without --force
in a loop and have to unblock the underlying block device in
between as well, otherwise failing to install.
else:
grub_device = device
else:
grub_device = device
- set_rw(device)
- set_rw(grub_device)
-
logging.info("Installing grub as bootloader")
for opt in ["", "--force"]:
logging.info("Installing grub as bootloader")
for opt in ["", "--force"]:
+ set_rw(device)
+ set_rw(grub_device)
logging.debug("grub-install --recheck %s --no-floppy --root-directory=%s %s",
opt, device_mountpoint, grub_device)
proc = subprocess.Popen([GRUB_INSTALL, "--recheck", opt,
logging.debug("grub-install --recheck %s --no-floppy --root-directory=%s %s",
opt, device_mountpoint, grub_device)
proc = subprocess.Popen([GRUB_INSTALL, "--recheck", opt,
logging.debug("Source %s is not a device, therefore not mounting.", source)
return 0
logging.debug("Source %s is not a device, therefore not mounting.", source)
return 0
logging.debug("mount %s %s %s", mount_options, source, target)
proc = subprocess.Popen(["mount"] + list(mount_options) + [source, target])
proc.wait()
logging.debug("mount %s %s %s", mount_options, source, target)
proc = subprocess.Popen(["mount"] + list(mount_options) + [source, target])
proc.wait()