Just like no /etc/fstab is not an error, having one with no entries
shouldn't be an issue either.

With systemd, this could be a valid setup, with mount points set its own
way.
---
 src/inspect-fs-unix.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/inspect-fs-unix.c b/src/inspect-fs-unix.c
index 739a431..89236ab 100644
--- a/src/inspect-fs-unix.c
+++ b/src/inspect-fs-unix.c
@@ -960,11 +960,6 @@ check_fstab (guestfs_h *g, struct inspect_fs *fs)
   if (entries == NULL)
     return -1;
 
-  if (entries[0] == NULL) {
-    error (g, _("could not parse /etc/fstab or empty file"));
-    return -1;
-  }
-
   for (entry = entries; *entry != NULL; entry++) {
     CLEANUP_FREE char *spec = NULL;
     CLEANUP_FREE char *mp = NULL;
-- 
1.9.3

_______________________________________________
Libguestfs mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libguestfs

Reply via email to