-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, 22 Jul 2009, Chris Lumens wrote:
This means that all read-only devices (USB keys, floppies, whatever) will
be completely skipped by anaconda. The advantage is we won't get parted
error dialogs for them. Also, read-only block devices are probably far
less common than read-only filesystems so throwing them out shouldn't cause
too many problems.
---
isys/isys.py | 2 +-
partedUtils.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/isys/isys.py b/isys/isys.py
index 189a6c1..6312ba8 100644
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -300,7 +300,7 @@ def driveDict(klassArg):
devName = "/dev/%s" % (device,)
makeDevInode(device, devName)
- if not mediaPresent (device):
+ if not mediaPresent (device) or deviceIsReadOnly(device):
new[device] = dev
continue
diff --git a/partedUtils.py b/partedUtils.py
index f2bd909..9c9cd33 100644
--- a/partedUtils.py
+++ b/partedUtils.py
@@ -1223,7 +1223,7 @@ class DiskSet:
if (DiskSet.exclusiveDisks != [] and drive not in DiskSet.exclusiveDisks) or drive in DiskSet.skippedDisks:
continue
deviceFile = isys.makeDevInode(drive, "/dev/" + drive)
- if not isys.mediaPresent(drive):
+ if not isys.mediaPresent(drive) or isys.deviceIsReadOnly(drive):
self._removeDisk(drive)
continue
Looks fine.
- --
David Cantrell <dcantrell@xxxxxxxxxx>
Red Hat / Honolulu, HI
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkpnbiUACgkQ5hsjjIy1VkntNQCgk5WsaCuL+Ce02PbNMJhF0KhV
BCEAoKjfJzLFqo7/y3Bot1bMiVtHhjjk
=SIPW
-----END PGP SIGNATURE-----
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list