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/loader.c | |
| parent | 9a5589e67a1862f7e49e62d2b65e54db54b7c787 (diff) | |
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/loader.c')
| -rw-r--r-- | loader2/loader.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/loader2/loader.c b/loader2/loader.c index 76aff1dcb..c9c0069c0 100644 --- a/loader2/loader.c +++ b/loader2/loader.c @@ -143,7 +143,7 @@ int setupRamdisk(void) { gunzip_close(f); } - if (doPwMount(RAMDISK_DEVICE, "/tmp/ramfs", "ext2", 0, 0, NULL, NULL)) + if (doPwMount(RAMDISK_DEVICE, "/tmp/ramfs", "ext2", 0, 0, NULL, NULL, 0)) logMessage("failed to mount ramfs image"); return 0; @@ -152,7 +152,7 @@ int setupRamdisk(void) { void setupRamfs(void) { mkdirChain("/tmp/ramfs"); - doPwMount("none", "/tmp/ramfs", "ramfs", 0, 0, NULL, NULL); + doPwMount("none", "/tmp/ramfs", "ramfs", 0, 0, NULL, NULL, 0); } @@ -314,9 +314,9 @@ void loadUpdates(struct knownDevices *kd, int flags) { devMakeInode(device, "/tmp/upd.disk"); if (doPwMount("/tmp/upd.disk", "/tmp/update-disk", "ext2", 1, 0, - NULL, NULL) && + NULL, NULL, 0) && doPwMount("/tmp/upd.disk", "/tmp/update-disk", "iso9660", 1, 0, - NULL, NULL)) { + NULL, NULL, 0)) { newtWinMessage(_("Error"), _("OK"), _("Failed to mount updates disk")); } else { |
