diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-04-22 15:33:43 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-04-22 15:33:43 +0200 |
commit | e0295d2651cff034ab8200156f1ece06154b7bbc (patch) | |
tree | 237a6241ce0e5f6d9b92c1c427722acd264cdeea /src/remount-api-vfs | |
parent | 59e132a7f416d7c4a33a46d791f250e03d2c2cd0 (diff) |
mount: don't fail if fstab doesn't exist
Diffstat (limited to 'src/remount-api-vfs')
-rw-r--r-- | src/remount-api-vfs/remount-api-vfs.c | 5 |
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; } |