2007-04-12 18:31:42 +02:00
|
|
|
Index: mount/mount.c
|
|
|
|
===================================================================
|
|
|
|
--- mount/mount.c.orig
|
2006-12-19 00:18:10 +01:00
|
|
|
+++ mount/mount.c
|
2007-04-23 23:27:30 +02:00
|
|
|
@@ -954,11 +954,16 @@ retry_nfs:
|
|
|
|
}
|
|
|
|
|
|
|
|
if (fake || mnt5_res == 0) {
|
|
|
|
+ int isroot;
|
|
|
|
+
|
|
|
|
/* Mount succeeded, report this (if verbose) and write mtab entry. */
|
2006-12-19 00:18:10 +01:00
|
|
|
if (loop)
|
|
|
|
opt_loopdev = loopdev;
|
|
|
|
|
2007-04-23 23:27:30 +02:00
|
|
|
- if (!(mounttype & MS_PROPAGATION)) {
|
|
|
|
+ isroot = (streq(node, "/") || streq(node, "root") ||
|
|
|
|
+ streq(node, "rootfs"));
|
|
|
|
+
|
|
|
|
+ if (!(mounttype & MS_PROPAGATION) && !isroot) {
|
|
|
|
update_mtab_entry(loop ? loopfile : spec,
|
2006-12-19 00:18:10 +01:00
|
|
|
node,
|
|
|
|
types ? types : "unknown",
|