Beautify 'mount -a' error message at boot

This patch from TroglOS makes sure to print any error message from mount
after [FAIL] is printed.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2016-10-22 18:36:51 +02:00
parent 5fc3a0a3b9
commit 4f8211f6a1
+1 -6
View File
@@ -232,7 +232,6 @@ static void emergency_shell(void)
int main(int argc, char* argv[])
{
int err;
char *devfsd;
uev_ctx_t loop;
@@ -367,11 +366,7 @@ int main(int argc, char* argv[])
plugin_run_hooks(HOOK_ROOTFS_UP);
umask(0);
print_desc("Mounting filesystems", NULL);
err = run("/bin/mount -na");
print_result(err);
if (err)
if (run_interactive("/bin/mount -na", "Mounting filesystems"))
plugin_run_hooks(HOOK_MOUNT_ERROR);
run("/sbin/swapon -ea");