mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
logging: curb some warnings into info's
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user