Re: [PATCH 2/7] Use sysfs instead of losetup to find loop devs' backing files.

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

 



On Fri, 2011-01-07 at 17:23 -0800, Brian C. Lane wrote:
> On Fri, Jan 07, 2011 at 12:41:43PM -0600, David Lehman wrote:
> > +def get_backing_file(name):
> > +    path = ""
> > +    sys_path  = "/sys/class/block/%s/loop/backing_file" % name
> 
> Neat! But that may not always work. On the xfce livecd loop0 has this in
> it's backing_file:
> /osmin.img (deleted)

Right. /osming.img doesn't exist, either, because it's probably from
before the switchroot (or whatever it's called now). The way I see it,
it doesn't matter -- we won't ever try to manipulate those devices
anyhow. I think most, if not all, of the live-related loop devices'
backing files are not actually present in the real/final live
environment.

Dave


_______________________________________________
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