Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   CentOS (http://www.linux-archive.org/centos/)
-   -   Don't add recovery partitions to the grub boot menu (#534066) (http://www.linux-archive.org/centos/365513-dont-add-recovery-partitions-grub-boot-menu-534066-a.html)

Chris Lumens 05-03-2010 04:38 PM

Don't add recovery partitions to the grub boot menu (#534066)
 
> diff --git a/booty/bootloaderInfo.py b/booty/bootloaderInfo.py
> index 610195f..0b50f7f 100644
> --- a/booty/bootloaderInfo.py
> +++ b/booty/bootloaderInfo.py
> @@ -281,14 +281,16 @@ class BootImages:
>
> type = part.format.type
>
> - if type in dosFilesystems and not foundDos and doesDualBoot():
> + if type in dosFilesystems and not foundDos and doesDualBoot() and
> + not part.getFlag(parted.PARTITION_DIAG):
> try:
> bootable = checkForBootBlock(part.path)
> retval.append((part, type))
> foundDos = True
> except:
> pass
> - elif type in ["ntfs", "hpfs"] and not foundDos and doesDualBoot():
> + elif type in ["ntfs", "hpfs"] and not foundDos and
> + doesDualBoot() and not part.getFlag(parted.PARTITION_DIAG):
> retval.append((part, type))
> # maybe questionable, but the first ntfs or fat is likely to
> # be the correct one to boot with XP using ntfs

ACK.

Incidentally, that second case is never going to get run for NTFS and
HPFS given what dosFilesystems looks like:

booty/bootloaderInfo.py:dosFilesystems = ('FAT', 'fat16', 'fat32', 'ntfs', 'hpfs')

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 02:48 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.