Re: [PATCH] ActionDestroyFormat setup device before modifying the partition table

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

 



On Wed, 2009-10-07 at 19:50 +0200, Hans de Goede wrote:
> ---
>  storage/deviceaction.py |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)

Ack.

> 
> diff --git a/storage/deviceaction.py b/storage/deviceaction.py
> index 7e73dfb..44ba8a6 100644
> --- a/storage/deviceaction.py
> +++ b/storage/deviceaction.py
> @@ -297,13 +297,14 @@ class ActionDestroyFormat(DeviceAction):
>      def execute(self, intf=None):
>          """ wipe the filesystem signature from the device """
>          if self.origFormat:
> +            self.device.setup()
> +
>              if isinstance(self.device, PartitionDevice) and \
>                 self.origFormat.partedFlag is not None:
>                  # unset partition flags and commit
>                  self.device.unsetFlag(self.origFormat.partedFlag)
>                  self.device.disk.format.commitToDisk()
>  
> -            self.device.setup()
>              self.origFormat.destroy()
>              udev_settle()
>              self.device.teardown()

_______________________________________________
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