mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07:00
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user