Re: [PATCH 3/7] Run clearpart, autopart, bootloader from the storage spoke.

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

 



> diff --git a/pyanaconda/ui/gui/spokes/storage.py b/pyanaconda/ui/gui/spokes/storage.py
> index ee7af5e..c3eb48d 100644
> --- a/pyanaconda/ui/gui/spokes/storage.py
> +++ b/pyanaconda/ui/gui/spokes/storage.py
> @@ -249,9 +249,29 @@ class StorageSpoke(NormalSpoke):
>      def apply(self):
>          self.data.clearpart.drives = self.selected_disks[:]
>          self.data.autopart.autopart = self.autopart
> +
> +        # no thanks, lvm
> +        self.data.autopart.lvm = False
> +
> +        if self.autopart:
> +            self.clearPartType = CLEARPART_TYPE_ALL
> +        else:
> +            self.clearPartType = CLEARPART_TYPE_NONE
> +
>          self.data.bootloader.location = "mbr"
> +
> +        # Pick the first disk to be the destination device for the bootloader.
> +        # This appears to be the minimum amount of configuration required to
> +        # make autopart happy with the bootloader settings.
> +        if not self.data.bootloader.bootDrive:
> +            self.data.bootloader.bootDrive = self.storage.bootloader.disks[0].name
> +
>          self.data.clearpart.type = self.clearPartType
>  
> +        self.data.clearpart.execute(self.storage, self.data, self.instclass)
> +        self.data.bootloader.execute(self.storage, self.data, self.instclass)
> +        self.data.autopart.execute(self.storage, self.data, self.instclass)
> +
>      @property
>      def completed(self):
>          return self.status != _("No disks selected")

apply may run multiple times (in fact, it will run every time the spoke
is left).  Will the above code handle being run like that?

- 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