Re: [PATCH] Use a different method to get the sysfs_path for device-mapper devices (#665643).

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

 



> > Since self.device is a full path this will never work -- just pass
> > self.device's basename.
> 
> If I were less lazy, I'd attach a screenshot here showing you that it
> did, in fact, work.

By which I mean:

clumens@exeter:~/src$ sudo PATH=/sbin:/usr/sbin:/bin:/usr/bin ipython
...
In [2]: import pyanaconda.anaconda_log

In [3]: pyanaconda.anaconda_log.init()

In [4]: from pyanaconda.storage.devicelibs.dm import dm_node_from_name

In [5]: dm_node_from_name("/dev/mapper/VolGroup00-LogVol00")
Out[5]: 'dm-0'

- 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