diff options
author | Erik Troan <ewt@redhat.com> | 2000-07-13 16:39:54 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2000-07-13 16:39:54 +0000 |
commit | 641cf1e56a3dfe1b3cb626270b2fde6e229efaac (patch) | |
tree | cf5d12737aaac69eb621f77715a4fef93d593239 /isys | |
parent | ee53bd6a227e8c45015cd2d830da923c1f97cd32 (diff) | |
download | anaconda-641cf1e56a3dfe1b3cb626270b2fde6e229efaac.tar.gz anaconda-641cf1e56a3dfe1b3cb626270b2fde6e229efaac.tar.xz anaconda-641cf1e56a3dfe1b3cb626270b2fde6e229efaac.zip |
ignore ejection failures
Diffstat (limited to 'isys')
-rw-r--r-- | isys/isys.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/isys/isys.py b/isys/isys.py index 5bfeccdf1..248eac99a 100644 --- a/isys/isys.py +++ b/isys/isys.py @@ -320,7 +320,13 @@ def ext2IsDirty(device): def ejectCdrom(device): makeDevInode(device, "/tmp/cdrom") fd = os.open("/tmp/cdrom", os.O_RDONLY) - _isys.ejectcdrom(fd) + + # this is a best effort + try: + _isys.ejectcdrom(fd) + except SystemError: + pass + os.close(fd) os.unlink("/tmp/cdrom") |