diff options
| author | Chris Lumens <clumens@redhat.com> | 2012-06-26 14:53:38 -0400 |
|---|---|---|
| committer | Chris Lumens <clumens@redhat.com> | 2012-06-26 14:53:38 -0400 |
| commit | f6fc0b41f084aa840cd035b166701bb28b1be90a (patch) | |
| tree | 67757b89cb563171e75255ef863712eb72badbf2 /pyanaconda | |
| parent | e97e86f7a721db0afe2c736218320a4a9fff39a6 (diff) | |
| download | anaconda-f6fc0b41f084aa840cd035b166701bb28b1be90a.tar.gz anaconda-f6fc0b41f084aa840cd035b166701bb28b1be90a.tar.xz anaconda-f6fc0b41f084aa840cd035b166701bb28b1be90a.zip | |
Bring live device detection in line with elsewhere.
/dev/live does not appear to be a symlink anymore. Luckily, we can read
out of /run/initramfs instead.
Diffstat (limited to 'pyanaconda')
| -rw-r--r-- | pyanaconda/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyanaconda/__init__.py b/pyanaconda/__init__.py index 5aaaee728..4a4be2a67 100644 --- a/pyanaconda/__init__.py +++ b/pyanaconda/__init__.py @@ -185,9 +185,9 @@ class Anaconda(object): def protected(self): import stat - if os.path.exists("/dev/live") and \ - stat.S_ISBLK(os.stat("/dev/live")[stat.ST_MODE]): - return [os.readlink("/dev/live")] + if os.path.exists("/run/initramfs/livedev") and \ + stat.S_ISBLK(os.stat("/run/initramfs/livedev")[stat.ST_MODE]): + return [os.readlink("/run/initramfs/livedev")] elif self.methodstr and self.methodstr.startswith("hd:"): method = self.methodstr[3:] return [method.split(":", 3)[0]] |
