Re: [PATCH 4/4] Set format UUID after creating a format

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

 



this looks ok.
On Tue, Mar 17, 2009 at 10:22:55PM +0100, Hans de Goede wrote:
> This fixes us having /dev/foo instead of UUID= in fstab for anaconda
> created filesystems.
> ---
>  storage/deviceaction.py |    7 ++++++-
>  1 files changed, 6 insertions(+), 1 deletions(-)
> 
> diff --git a/storage/deviceaction.py b/storage/deviceaction.py
> index f9a7322..3f7ce91 100644
> --- a/storage/deviceaction.py
> +++ b/storage/deviceaction.py
> @@ -24,7 +24,7 @@
>  import copy
>  from parted import PARTITION_BOOT
>  
> -from udev import udev_settle
> +from udev import *
>  
>  from devices import StorageDevice, PartitionDevice
>  from formats import getFormat
> @@ -278,6 +278,11 @@ class ActionCreateFormat(DeviceAction):
>          self.device.format.create(intf=intf,
>                                    device=self.device.path,
>                                    options=self.device.formatArgs)
> +        # Get the UUID now that the format is created
> +        udev_settle()
> +        self.device.updateSysfsPath()
> +        info = udev_get_block_device("/sys%s" % self.device.sysfsPath)
> +        self.device.format.uuid = udev_device_get_uuid(info)
>  
>      def cancel(self):
>          self.device.format = self.origFormat
> -- 
> 1.6.1.3
> 
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list

-- 
Joel Andres Granados
Brno, Czech Republic, Red Hat.

_______________________________________________
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