summaryrefslogtreecommitdiff
path: root/src/remount-api-vfs/remount-api-vfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/remount-api-vfs/remount-api-vfs.c')
-rw-r--r--src/remount-api-vfs/remount-api-vfs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/remount-api-vfs/remount-api-vfs.c b/src/remount-api-vfs/remount-api-vfs.c
index 6cb77c1d1a..373ae25520 100644
--- a/src/remount-api-vfs/remount-api-vfs.c
+++ b/src/remount-api-vfs/remount-api-vfs.c
@@ -56,6 +56,11 @@ int main(int argc, char *argv[]) {
f = setmntent("/etc/fstab", "r");
if (!f) {
+ if (errno == ENOENT) {
+ ret = EXIT_SUCCESS;
+ goto finish;
+ }
+
log_error("Failed to open /etc/fstab: %m");
goto finish;
}