summaryrefslogtreecommitdiffstats
path: root/loader/modules.c
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-08-23 04:02:45 +0000
committerJeremy Katz <katzj@redhat.com>2002-08-23 04:02:45 +0000
commite5ce17bbf42ecebde570d7a34247003055b465d8 (patch)
treea1ce6bd252528e53c396db5c1a7ad6fd6d96a094 /loader/modules.c
parent3844e138ffd7b440495aefe377bca30fda65fc7d (diff)
downloadanaconda-e5ce17bbf42ecebde570d7a34247003055b465d8.tar.gz
anaconda-e5ce17bbf42ecebde570d7a34247003055b465d8.tar.xz
anaconda-e5ce17bbf42ecebde570d7a34247003055b465d8.zip
make sure we successfully unmount the driver disk/pcmciadd. if not, sleep and try again. it's a bad hack, but I can't see anything holding the device busy and get -EBUSY on umount.
Diffstat (limited to 'loader/modules.c')
-rw-r--r--loader/modules.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/loader/modules.c b/loader/modules.c
index 58671ca47..5ed349984 100644
--- a/loader/modules.c
+++ b/loader/modules.c
@@ -425,11 +425,16 @@ static char * filterDriverModules(struct driverDiskInfo * ddi,
myCpioFilterArchive(from, to, pattern);
- newtPopWindow();
-
gunzip_close(from);
gunzip_close(to);
- umount("/tmp/drivers");
+ while(1) {
+ int rc;
+ rc = umount("/tmp/drivers");
+ if (rc != -1)
+ break;
+ }
+
+ newtPopWindow();
return toPath;
}