logging: curb some warnings into info's

This commit is contained in:
Ricardo Pardini
2023-05-06 16:20:49 +02:00
parent ab696d0776
commit b18cd8aaf4
3 changed files with 3 additions and 3 deletions

View File

@@ -364,7 +364,7 @@ function prepare_partitions() {
# complement extlinux config if it exists; remove armbianEnv in this case.
if [[ -f $SDCARD/boot/extlinux/extlinux.conf ]]; then
echo " append root=$rootfs $SRC_CMDLINE $MAIN_CMDLINE" >> $SDCARD/boot/extlinux/extlinux.conf
display_alert "extlinux.conf exists" "removing armbianEnv.txt" "warn"
display_alert "extlinux.conf exists" "removing armbianEnv.txt" "info"
[[ -f $SDCARD/boot/armbianEnv.txt ]] && run_host_command_logged rm -v $SDCARD/boot/armbianEnv.txt
fi

View File

@@ -153,7 +153,7 @@ function install_distribution_agnostic() {
if [[ "${KEEP_ORIGINAL_OS_RELEASE:-"no"}" != "yes" ]]; then
sed -i "s/^PRETTY_NAME=.*/PRETTY_NAME=\"${VENDOR} ${IMAGE_VERSION:-"${REVISION}"} ${RELEASE^}\"/" "${SDCARD}"/etc/os-release
else
display_alert "distro-agnostic: KEEP_ORIGINAL_OS_RELEASE" "Keeping original /etc/os-release's PRETTY_NAME as original" "warn"
display_alert "distro-agnostic: KEEP_ORIGINAL_OS_RELEASE" "Keeping original /etc/os-release's PRETTY_NAME as original" "info"
fi
# enable few bash aliases enabled in Ubuntu by default to make it even

View File

@@ -34,7 +34,7 @@ function install_distribution_specific() {
if [[ -f "${SDCARD}"/etc/systemd/resolved.conf ]]; then
sed -i "s/#DNS=.*/DNS=$NAMESERVER/g" "${SDCARD}"/etc/systemd/resolved.conf
else
display_alert "DNS fix" "/etc/systemd/resolved.conf not found: ${DISTRIBUTION} ${RELEASE}" "wrn"
display_alert "DNS fix" "/etc/systemd/resolved.conf not found: ${DISTRIBUTION} ${RELEASE}" "info"
fi
fi