diff options
author | Karel Zak | 2011-03-31 21:26:57 +0200 |
---|---|---|
committer | Karel Zak | 2011-03-31 21:26:57 +0200 |
commit | a362ae601a4f047d56fc8487155733309da5a7ec (patch) | |
tree | 43cb2e779a382f7634d936d61dc1edefc06bdb55 /shlibs/mount/src/context.c | |
parent | tests: add dump from PPC64 to lscpu tests (diff) | |
download | kernel-qcow2-util-linux-a362ae601a4f047d56fc8487155733309da5a7ec.tar.gz kernel-qcow2-util-linux-a362ae601a4f047d56fc8487155733309da5a7ec.tar.xz kernel-qcow2-util-linux-a362ae601a4f047d56fc8487155733309da5a7ec.zip |
libmount: support /run/mount rather than /dev/.mount
The /run directory should be preferred on distributions where this
directory exists.
http://thread.gmane.org/gmane.linux.redhat.fedora.devel/146976
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/mount/src/context.c')
-rw-r--r-- | shlibs/mount/src/context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shlibs/mount/src/context.c b/shlibs/mount/src/context.c index f24e90ebb..eedb82345 100644 --- a/shlibs/mount/src/context.c +++ b/shlibs/mount/src/context.c @@ -71,7 +71,7 @@ struct libmnt_context *mnt_new_context(void) mnt_has_regular_mtab(&cxt->mtab_path, &cxt->mtab_writable); if (!cxt->mtab_writable) - /* use /dev/.mount/utab if /etc/mtab is useless */ + /* use /run/mount/utab if /etc/mtab is useless */ mnt_has_regular_utab(&cxt->utab_path, &cxt->utab_writable); return cxt; @@ -1228,7 +1228,7 @@ int mnt_context_merge_mflags(struct libmnt_context *cxt) } /* - * Prepare /etc/mtab or /dev/.mount/utab + * Prepare /etc/mtab or /run/mount/utab */ int mnt_context_prepare_update(struct libmnt_context *cxt) { |