mirror of
https://github.com/troglobit/finit.git
synced 2026-11-03 13:28:27 +00: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:
1 parent
5fc3a0a3b9
commit
4f8211f6a1
1 file changed
+1
-6
@@ -232,7 +232,6 @@ static void emergency_shell(void)
|
|||||||
|
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
int err;
|
|
||||||
char *devfsd;
|
char *devfsd;
|
||||||
uev_ctx_t loop;
|
uev_ctx_t loop;
|
||||||
|
|
||||||
@@ -367,11 +366,7 @@ int main(int argc, char* argv[])
|
|||||||
plugin_run_hooks(HOOK_ROOTFS_UP);
|
plugin_run_hooks(HOOK_ROOTFS_UP);
|
||||||
|
|
||||||
umask(0);
|
umask(0);
|
||||||
print_desc("Mounting filesystems", NULL);
|
if (run_interactive("/bin/mount -na", "Mounting filesystems"))
|
||||||
|
|
||||||
err = run("/bin/mount -na");
|
|
||||||
print_result(err);
|
|
||||||
if (err)
|
|
||||||
plugin_run_hooks(HOOK_MOUNT_ERROR);
|
plugin_run_hooks(HOOK_MOUNT_ERROR);
|
||||||
|
|
||||||
run("/sbin/swapon -ea");
|
run("/sbin/swapon -ea");
|
||||||
|
|||||||
Reference in new issue
Block a user