Re: Problem with clearpart

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ian Leonard (ileonard@xxxxxxxxxxxx) said:

> Greetings,
   
> I assume this is a problem with --clearpart. The command
> I use is
>   
> --clearpart --all --devices=hda

I'm not sure where you got this command line; but it looks strange; are
you using rh7.3?

here's the kickstart.py clearpart snippet from rh7.3's anaconda:

    def doClearPart(self, id, args):
        type = CLEARPART_TYPE_NONE
        drives = None
        initAll = 0

        (args, extra) = isys.getopt(args, '', [ 'linux', 'all', 'drives=',
                                                'initlabel'])

        for n in args:
            (str, arg) = n
            if str == '--linux':
                type = CLEARPART_TYPE_LINUX
            elif str == '--all':
                type = CLEARPART_TYPE_ALL
            elif str == '--drives':
                drives = string.split(arg, ',')
            elif str == '--initlabel':
                initAll = 1
            
        self.setClearParts(id, type, drives, initAll = initAll)

> Checking the documentation, it appears that --all
> clears all partition on all disks. I don't know what
> clearpart does without the --all option.
> 
> How do I clear all partitions on just hda?

clearpart --linux --drives=sda
                           ^^^ hda in your case 
works for me with rh7.3 ks.

Mike





[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux