diff options
author | Jeremy Katz <katzj@redhat.com> | 2003-02-18 00:45:54 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2003-02-18 00:45:54 +0000 |
commit | 0c8eba97b35d7503336bc7b2ea154ce98aebaaf2 (patch) | |
tree | 7f8da4dbbf3dde47de40ba8eea7a6b583b10e15e /loader2/driverdisk.c | |
parent | 9a5589e67a1862f7e49e62d2b65e54db54b7c787 (diff) | |
download | anaconda-0c8eba97b35d7503336bc7b2ea154ce98aebaaf2.tar.gz anaconda-0c8eba97b35d7503336bc7b2ea154ce98aebaaf2.tar.xz anaconda-0c8eba97b35d7503336bc7b2ea154ce98aebaaf2.zip |
support bind mounts for upgrade/rescue mode.
basically, create a new filesystem type and device which get used and add
a keyword parameter for mounting
the diff looks large, but most of it is adjusting callers of doPwMount in
the loader
Diffstat (limited to 'loader2/driverdisk.c')
-rw-r--r-- | loader2/driverdisk.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/loader2/driverdisk.c b/loader2/driverdisk.c index 18386aa1f..3a0ca7b02 100644 --- a/loader2/driverdisk.c +++ b/loader2/driverdisk.c @@ -224,9 +224,9 @@ int loadDriverFromMedia(int class, moduleList modLoaded, devMakeInode(device, "/tmp/dddev"); logMessage("trying to mount %s", device); - if (doPwMount("/tmp/dddev", "/tmp/drivers", "vfat", 1, 0, NULL, NULL)) { - if (doPwMount("/tmp/dddev", "/tmp/drivers", "ext2", 1, 0, NULL, NULL)) { - if (doPwMount("/tmp/dddev", "/tmp/drivers", "iso9660", 1, 0, NULL, NULL)) { + if (doPwMount("/tmp/dddev", "/tmp/drivers", "vfat", 1, 0, NULL, NULL, 0)) { + if (doPwMount("/tmp/dddev", "/tmp/drivers", "ext2", 1, 0, NULL, NULL, 0)) { + if (doPwMount("/tmp/dddev", "/tmp/drivers", "iso9660", 1, 0, NULL, NULL, 0)) { newtWinMessage(_("Error"), _("OK"), _("Failed to mount driver disk.")); stage = DEV_INSERT; @@ -394,15 +394,15 @@ void useKickstartDD(struct loaderData_s * loaderData, int argc, devMakeInode(dev, "/tmp/dddev"); if (fstype) { if (!doPwMount("/tmp/dddev", "/tmp/drivers", fstype, 1, 0, - NULL, NULL)) { + NULL, NULL, 0)) { logMessage("unable to mount %s as %s", dev, fstype); return; } } - if (doPwMount("/tmp/dddev", "/tmp/drivers", "vfat", 1, 0, NULL, NULL)) { - if (doPwMount("/tmp/dddev", "/tmp/drivers", "ext2", 1, 0, NULL, NULL)) { - if (doPwMount("/tmp/dddev", "/tmp/drivers", "iso9660", 1, 0, NULL, NULL)) { + if (doPwMount("/tmp/dddev", "/tmp/drivers", "vfat", 1, 0, NULL, NULL, 0)) { + if (doPwMount("/tmp/dddev", "/tmp/drivers", "ext2", 1, 0, NULL, NULL, 0)) { + if (doPwMount("/tmp/dddev", "/tmp/drivers", "iso9660", 1, 0, NULL, NULL, 0)) { logMessage("unable to mount driver disk %s", dev); return; } |