mount: don't fail if fstab doesn't exist

This commit is contained in:
Lennart Poettering
2012-04-22 15:33:43 +02:00
parent 59e132a7f4
commit e0295d2651
3 changed files with 10 additions and 3 deletions
+2 -1
View File
@@ -190,7 +190,8 @@ static char *disk_mount_point(const char *label) {
if (asprintf(&device, "/dev/mapper/%s", label) < 0)
goto finish;
if (!(f = setmntent("/etc/fstab", "r")))
f = setmntent("/etc/fstab", "r");
if (!f)
goto finish;
while ((m = getmntent(f)))