summaryrefslogtreecommitdiffstats
path: root/isys/imount.c
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-02-18 00:45:54 +0000
committerJeremy Katz <katzj@redhat.com>2003-02-18 00:45:54 +0000
commit0c8eba97b35d7503336bc7b2ea154ce98aebaaf2 (patch)
tree7f8da4dbbf3dde47de40ba8eea7a6b583b10e15e /isys/imount.c
parent9a5589e67a1862f7e49e62d2b65e54db54b7c787 (diff)
downloadanaconda-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 'isys/imount.c')
-rw-r--r--isys/imount.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/isys/imount.c b/isys/imount.c
index a17628fc7..a249888a0 100644
--- a/isys/imount.c
+++ b/isys/imount.c
@@ -14,7 +14,7 @@
static int mkdirIfNone(char * directory);
int doPwMount(char * dev, char * where, char * fs, int rdonly, int istty,
- char * acct, char * pw) {
+ char * acct, char * pw, int bindmnt) {
char * buf = NULL;
int isnfs = 0;
char * mount_opt = NULL;
@@ -82,6 +82,8 @@ int doPwMount(char * dev, char * where, char * fs, int rdonly, int istty,
flag = MS_MGC_VAL;
if (rdonly)
flag |= MS_RDONLY;
+ if (bindmnt)
+ flag |= MS_BIND;
if (!strncmp(fs, "vfat", 4))
mount_opt="check=relaxed";