summaryrefslogtreecommitdiffstats
path: root/loader2/hdinstall.c
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2007-12-06 17:06:45 -0500
committerBill Nottingham <notting@redhat.com>2007-12-07 13:27:22 -0500
commit5863d19efb90b03fc2e3b59500586c4e8083d6b6 (patch)
tree4fa704bd4070bab0c20a0c5146f2538349bb1e3d /loader2/hdinstall.c
parentb343064eb725e739084840fe858aee7e7afdb074 (diff)
downloadanaconda-5863d19efb90b03fc2e3b59500586c4e8083d6b6.tar.gz
anaconda-5863d19efb90b03fc2e3b59500586c4e8083d6b6.tar.xz
anaconda-5863d19efb90b03fc2e3b59500586c4e8083d6b6.zip
Adjust to new udev world. Use actual device names, not /tmp/<whatever>.
Diffstat (limited to 'loader2/hdinstall.c')
-rw-r--r--loader2/hdinstall.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/loader2/hdinstall.c b/loader2/hdinstall.c
index a85908209..e9780d267 100644
--- a/loader2/hdinstall.c
+++ b/loader2/hdinstall.c
@@ -145,12 +145,10 @@ static char * setupIsoImages(char * device, char * dirName, char * location,
logMessage(INFO, "mounting device %s for hard drive install", device);
if (!FL_TESTING(flags)) {
- if (devMakeInode(device, "/tmp/hddev"))
- logMessage(WARNING, "devMakeInode failed!");
/* XXX try to mount as ext2 and then vfat */
for (type=typetry; *type; type++) {
- if (!doPwMount("/tmp/hddev", "/tmp/hdimage", *type,
+ if (!doPwMount(device, "/tmp/hdimage", *type,
IMOUNT_RDONLY, NULL))
break;
}
@@ -169,11 +167,11 @@ static char * setupIsoImages(char * device, char * dirName, char * location,
logMessage(INFO, "Looking for updates for HD in %s", updpath);
copyUpdatesImg(updpath);
- rc = mountLoopback(path, "/tmp/loopimage", "loop0");
+ rc = mountLoopback(path, "/tmp/loopimage", "/dev/loop0");
if (!rc) {
/* This code is for copying small stage2 into ram */
/* and mounting */
- rc = loadHDImages("/tmp/loopimage", "/", "loop1",
+ rc = loadHDImages("/tmp/loopimage", "/", "/dev/loop1",
"/mnt/runtime", location, modInfo, modLoaded, modDepsPtr);
if (rc) {
newtWinMessage(_("Error"), _("OK"),
@@ -186,7 +184,7 @@ static char * setupIsoImages(char * device, char * dirName, char * location,
}
/* we copied stage2 into RAM so we can now umount image */
- umountLoopback("/tmp/loopimage", "loop0");
+ umountLoopback("/tmp/loopimage", "/dev/loop0");
} else {
rc = 1;