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/method.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/method.c')
-rw-r--r-- | loader2/method.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/loader2/method.c b/loader2/method.c index 6cef9be5f..b2a4ecc5f 100644 --- a/loader2/method.c +++ b/loader2/method.c @@ -134,11 +134,11 @@ int mountLoopback(char * fsystem, char * mntpoint, char * device) { close(loopfd); if (doPwMount(filename, mntpoint, "iso9660", 1, - 0, NULL, NULL)) { + 0, NULL, NULL, 0)) { if (doPwMount(filename, mntpoint, "ext2", 1, - 0, NULL, NULL)) { + 0, NULL, NULL, 0)) { if (doPwMount(filename, mntpoint, "cramfs", 1, - 0, NULL, NULL)) { + 0, NULL, NULL, 0)) { logMessage("failed to mount loop: %s", strerror(errno)); @@ -213,7 +213,7 @@ int readStampFileFromIso(char *file, char **timestamp, char **releasedescr) { if (S_ISBLK(sb.st_mode)) { filetype = 1; if (doPwMount(file, "/tmp/testmnt", - "iso9660", 1, 0, NULL, NULL)) { + "iso9660", 1, 0, NULL, NULL, 0)) { logMessage("Failed to mount device %s to get description", file); return -1; } |