Index: mount/mount.c =================================================================== --- mount/mount.c.orig +++ mount/mount.c @@ -842,6 +842,7 @@ try_mount_one (const char *spec0, const int mnt5_res = 0; /* only for gcc */ int mnt_err; int flags; + int isroot; char *extra_opts; /* written in mtab */ char *mount_opts; /* actually used on system call */ const char *opts, *spec, *node, *types; @@ -942,13 +943,17 @@ retry_nfs: if (loop) opt_loopdev = loopdev; - update_mtab_entry(loop ? loopfile : spec, + isroot = (streq (node, "/") || streq (node, "root") || + streq (node, "rootfs")); + if (!isroot) { + update_mtab_entry(loop ? loopfile : spec, node, types ? types : "unknown", fix_opts_string (flags & ~MS_NOMTAB, extra_opts, user), flags, freq, pass); + } block_signals (SIG_UNBLOCK); res = 0;