diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/inspect_fs_unix.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/inspect_fs_unix.c b/src/inspect_fs_unix.c index 42707128..00d3cd7d 100644 --- a/src/inspect_fs_unix.c +++ b/src/inspect_fs_unix.c @@ -704,6 +704,9 @@ add_fstab_entry (guestfs_h *g, struct inspect_fs *fs, else if (STRPREFIX (spec, "LABEL=")) device = guestfs_findfs_label (g, &spec[6]); /* Ignore "/.swap" (Pardus) and pseudo-devices like "tmpfs". */ + else if (STREQ (spec, "/dev/root")) + /* Resolve /dev/root to the current device. */ + device = safe_strdup (g, fs->device); else if (STRPREFIX (spec, "/dev/")) /* Resolve guest block device names. */ device = resolve_fstab_device (g, spec); |