diff options
author | Peter Jones <pjones@redhat.com> | 2006-05-09 20:33:04 +0000 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2006-05-09 20:33:04 +0000 |
commit | fd705d16441d50018dfaccab6e3ade05d9db8c50 (patch) | |
tree | 4018fd27e2d97b660f0628a7ed6e9d079eec50b4 /partitions.py | |
parent | 85841a182b2ac9655c59b138e346afa8c2c42153 (diff) | |
download | anaconda-fd705d16441d50018dfaccab6e3ade05d9db8c50.tar.gz anaconda-fd705d16441d50018dfaccab6e3ade05d9db8c50.tar.xz anaconda-fd705d16441d50018dfaccab6e3ade05d9db8c50.zip |
* isys/isys.py (driveIsRemovable): Split module checking out to its
own functions. Allow usb-storage installs.
* partitions.py: warn if you're using firewire or usb
* loader2/modules.c (loadModule): Delay on reloading usb-storage, as
it takes undefined time as well. Without this /tmp/scsidisks is
wrong.
* loader2/modules.c (writeModulesConf): don't exclude usb-storage
or sbp2.
Diffstat (limited to 'partitions.py')
-rw-r--r-- | partitions.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/partitions.py b/partitions.py index 413890071..5855559f2 100644 --- a/partitions.py +++ b/partitions.py @@ -881,6 +881,9 @@ class Partitions: foundSwap = 0 swapSize = 0 + usesUSB = False + usesFireWire = False + for request in self.requests: if request.fstype and request.fstype.getName() == "swap": foundSwap = foundSwap + 1 @@ -896,6 +899,20 @@ class Partitions: rc = request.sanityCheckRaid(self) if rc: errors.append(rc) + if not hasattr(request,'drive'): + continue + for x in request.drive: + if isys.driveUsesModule(x, ["usb-storage", "ub"]): + usesUSB = True + elif isys.driveUsesModule(x, ["sbp2"]): + usesFireWire = True + + if usesUSB: + warnings.append(_("Installing on a USB device. This may " + "or may not produce a working system.")) + if usesFireWire: + warnings.append(_("Installing on a FireWire device. This may " + "or may not produce a working system.")) bootreqs = self.getBootableRequest() if bootreqs: |