* Log details about autoPartitionRequests * Log details about skipped stage1 and biosboot * Log candidate disks and devices * Log to storage instead of anaconda in bootloader.py --- pyanaconda/bootloader.py | 2 +- pyanaconda/storage/partitioning.py | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py index 31a78c8..6447c86 100644 --- a/pyanaconda/bootloader.py +++ b/pyanaconda/bootloader.py @@ -38,7 +38,7 @@ _ = lambda x: gettext.ldgettext("anaconda", x) N_ = lambda x: x import logging -log = logging.getLogger("anaconda") +log = logging.getLogger("storage") def get_boot_block(device, seek_blocks=0): diff --git a/pyanaconda/storage/partitioning.py b/pyanaconda/storage/partitioning.py index d4cf141..3396d59 100644 --- a/pyanaconda/storage/partitioning.py +++ b/pyanaconda/storage/partitioning.py @@ -121,12 +121,15 @@ def _schedulePartitions(storage, disks): # there should never be a need for more than one of these # partitions, so skip them. log.info("skipping unneeded stage1 request") + log.debug(request) + log.debug(storage.bootLoaderDevice) continue elif request.fstype == "biosboot" and storage.anaconda: boot_disk = storage.anaconda.bootloader.stage1_drive if boot_disk and boot_disk.format.labelType != "gpt": # biosboot is only needed for gpt disklabels on non-efi x86 log.info("skipping bios boot request for msdos disklabel") + log.debug(request) continue gpt_check = getattr(storage.anaconda.bootloader, @@ -234,7 +237,7 @@ def doAutoPartition(anaconda): log.debug("lvmAutoPart: %s" % anaconda.storage.lvmAutoPart) log.debug("clearPartType: %s" % anaconda.storage.config.clearPartType) log.debug("clearPartDisks: %s" % anaconda.storage.config.clearPartDisks) - log.debug("autoPartitionRequests: %s" % anaconda.storage.autoPartitionRequests) + log.debug("autoPartitionRequests:\n%s" % "".join([str(p) for p in anaconda.storage.autoPartitionRequests])) log.debug("storage.disks: %s" % [d.name for d in anaconda.storage.disks]) log.debug("storage.partitioned: %s" % [d.name for d in anaconda.storage.partitioned]) log.debug("all names: %s" % [d.name for d in anaconda.storage.devices]) @@ -254,6 +257,8 @@ def doAutoPartition(anaconda): if anaconda.storage.doAutoPart: disks = _getCandidateDisks(anaconda.storage) devs = _schedulePVs(anaconda.storage, disks) + log.debug("candidate disks: %s" % disks) + log.debug("devs: %s" % devs) if disks == []: if anaconda.ksdata: -- 1.7.4.4 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list