[Git-commits] [grml/grml2usb] 2b2c97: Use pyparted to check for bootflag [Closes: issue1...

Michael Prokop mika at grml.org
Tue Oct 7 07:41:58 CEST 2014


  Branch: refs/heads/master
  Home:   https://github.com/grml/grml2usb
  Commit: 2b2c97afc1aae8c4a38c31921b21638d27638240
      https://github.com/grml/grml2usb/commit/2b2c97afc1aae8c4a38c31921b21638d27638240
  Author: Michael Prokop <mika at grml.org>
  Date:   2014-10-07 (Tue, 07 Oct 2014)

  Changed paths:
    M debian/control
    M grml2usb

  Log Message:
  -----------
  Use pyparted to check for bootflag [Closes: issue1248]

The approach to check the 7th field in the MBR for the
bootable flag being set isn't enough. This fails to detect
bootable partitions if they aren't the first primary ones.

pyparted provides a way to check whether the specified
partition really has the boot flag set, so let's use this
approach, iff pyparted is available.

The check can also be completely skipped using the
--skip-bootflag parameter.

Took the get_partition_for_path function from Evgeni Golov's
https://github.com/evgeni/grml2usb/tree/pyparted with his
permission.




More information about the Git-commits mailing list