1 From e4ffd6fe975888d306b5f700ba54af18b59f6759 Mon Sep 17 00:00:00 2001
2 From: Robert Yang <liezhi.yang@windriver.com>
3 Date: Thu, 20 Mar 2014 11:10:21 +0800
4 Subject: [PATCH] misc/mke2fs.c: return error when failed to populate filesystem
6 We need return retval when "mke2fs -d" failed, otherwise the "$?" would
7 be 0 which is misleading.
9 Upstream-Status Submitted
11 Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
13 misc/mke2fs.c | 7 ++++---
14 1 file changed, 4 insertions(+), 3 deletions(-)
16 diff --git a/misc/mke2fs.c b/misc/mke2fs.c
17 index a63f0b7..846190e 100644
20 @@ -2745,10 +2745,11 @@ no_journal:
23 retval = populate_fs(root, root_dir);
27 - _("\nError while populating file system"));
29 + _("\nError while populating file system\n"));
32 printf("%s", _("done\n"));