certififcates: reduce log noise when mounting the certificates partition

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2021-10-13 10:51:21 +02:00
parent 2c37a6983f
commit 3cad34e1b9

View File

@@ -9,8 +9,8 @@ boot() {
local mtd=$(find_mtd_index certificates)
[ -n "$mtd" -a -f /sys/class/mtd/mtd$mtd/oobsize ] && ubiattach -p /dev/mtd$mtd
if [ -n "$(ubinfo -a | grep certificates)" ]; then
mount -t ubifs ubi0:certificates /certificates
mount -t ubifs ubi1:certificates /certificates
[ -e /dev/ubi0 ] && mount -t ubifs ubi0:certificates /certificates
[ -e /dev/ubi1 ] && mount -t ubifs ubi1:certificates /certificates
else
mount -t squashfs /dev/mtdblock$mtd /certificates
fi