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

Michael Prokop mika at grml.org
Wed Sep 25 15:01:15 CEST 2013

  Branch: refs/heads/mika/bootflag_with_pyparted
  Home:   https://github.com/grml/grml2usb
  Commit: 360632e096cbcd38d025d610cd64ce3fbb45c131
  Author: Michael Prokop <mika at grml.org>
  Date:   2013-09-25 (Wed, 25 Sep 2013)

  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.

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

More information about the Git-commits mailing list