From a837a624ce53c840c0e7db5a23fadaea873ded39 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Mon, 29 Jul 2019 09:37:20 +0200 Subject: [PATCH] Log info on ext4 check --- .../package/base-files/files/lib/preinit/80_mount_root | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/root/package/base-files/files/lib/preinit/80_mount_root b/root/package/base-files/files/lib/preinit/80_mount_root index ec254a82..2be3c19c 100644 --- a/root/package/base-files/files/lib/preinit/80_mount_root +++ b/root/package/base-files/files/lib/preinit/80_mount_root @@ -18,7 +18,13 @@ do_mount_root() { } } [ -n "$(mount | grep ext4 | grep ro)" ] && { - [ -e /dev/mmcblk0p2 ] && /usr/sbin/e2fsck -y -v -f /dev/mmcblk0p2 >/dev/null 2>&1 - [ -e /dev/sda2 ] && /usr/sbin/e2fsck -y -v -f /dev/sda2 >/dev/null 2>&1 + [ -e /dev/mmcblk0p2 ] && { + echo "Checking ext4 FS on mmcblk0p2..." + /usr/sbin/e2fsck -y -f /dev/mmcblk0p2 >/dev/null 2>&1 + } + [ -e /dev/sda2 ] && { + echo "Checking ext4 FS on sda2..." + /usr/sbin/e2fsck -y -f /dev/sda2 >/dev/null 2>&1 + } } [ "$INITRAMFS" = "1" ] || boot_hook_add preinit_main do_mount_root