> @@ -1961,6 +1962,18 @@ class DeviceTree(object): > if name: > self.protectedDevNames.append(name) > > + # FIXME: the backing dev for the live image can't be used as an > + # install target. note that this is a little bit of a hack > + # since we're assuming that /dev/live will exist > + if os.path.exists("/dev/live") and \ > + stat.S_ISBLK(os.stat("/dev/live")[stat.ST_MODE]): > + livetarget = os.path.realpath("/dev/live") > + if livetarget.startswith("/dev"): > + livetarget = livetarget[5:] > + log.info("%s looks to be the live device; marking as protected" > + % (livetarget,)) > + self.protectedDevNames.append(livetarget) > + > # each iteration scans any devices that have appeared since the > # previous iteration > old_devices = {} Fine, though I really wish we could use storage/devices.py:devicePathToName here. - Chris _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list