Re: [PATCH] Require /boot to be on a GPT or MSDOS disk label on x86 (#540588).

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

 



> > +        # Check that we've got a correct disk label.
> > +        if not disk.type in [parted.diskType["gpt"].name, parted.diskType["msdos"].name]:
> > +            errors.append(_("%s must have a GPT or MSDOS disk label.") % req.disk.name)
> 
> Why not just this instead:
> 
> if not disk.type in ["gpt", "msdos"]:

Yeah that does look less silly.  I was thinking the disk label names
might not match the parted.diskType keys, but a quick check shows that's
not the case.  I'll change it.

- Chris

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

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux