Bug 590755

Summary: 'system-config-kickstart --generate ' is not capturing the current partition information of the system
Product: Red Hat Enterprise Linux 5 Reporter: Jeff Bastian <jbastian>
Component: system-config-kickstartAssignee: Chris Lumens <clumens>
Status: CLOSED WONTFIX QA Contact: Release Test Team <release-test-team-automation>
Severity: low Docs Contact:
Priority: low    
Version: 5.5CC: tao
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-05-10 16:56:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jeff Bastian 2010-05-10 15:50:17 UTC
Description of problem:
'system-config-kickstart --generate' creates a kickstart file based on the current system.  It correctly captures packages, root password, locale data and more, however, the disk partitioning section is very generic:
   # Clear the Master Boot Record
   zerombr
   # Partition clearing information
   clearpart --linux

Version-Release number of selected component (if applicable):
system-config-kickstart-2.6.19.8-2.el5.noarch

How reproducible:
every time

Steps to Reproduce:
1. system-config-kickstart --generate /tmp/ks.cfg
  
Actual results:
no partition commands in /tmp/ks.cfg

Expected results:
partition commands based on system profile

Additional info:
From examining /usr/share/system-config-kickstart/profileSystem.py I can see that it queries the system for locale, timezone, root password, etc:
        self.getLang()
        self.getKeyboard()
        self.getTimezone()
        self.getRootPassword()
        self.getSELinux()
        self.getPackages()

But for the disk partitioning, it's just sets some defaults:
        self.kickstartData.zerombr = True
        self.kickstartData.clearpart["type"] = CLEARPART_TYPE_LINUX

Comment 1 Chris Lumens 2010-05-10 16:06:14 UTC
Yeah, this is known.  system-config-kickstart's partitioning support is pretty lacking.  For instance, it doesn't even support LVM.  Since we don't even have support for better profiling in rawhide or RHEL6, there's no code I can use to backport so it's highly unlikely I'm going to be able to fix this.

Comment 2 RHEL Program Management 2010-05-10 16:56:29 UTC
Development Management has reviewed and declined this request.  You may appeal
this decision by reopening this request.