Re: Problem with clearpart

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

 



On 2002.09.11 17:20 Mike Snitzer wrote:
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?

Yes 7.3, my mistake with 'devices' it should have read 'drives'.


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.


I considered this, the problem is that existing machines may
be being upgraded - they will currently have NT on them.
I think  therefore, that this will not work.

Looking at the code snippet above it, suggests that only
the specified drives will be processed. Why does it
even look at other drives? Thanks.

--
Ian Leonard
eMail: ileonard@xxxxxxxxxxxx
Phone: +44 (0)1865 765273

Please ignore spelling and punctuation - I did.





[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