From 7aa89f350fad42678eea2928652f0709a658a3b0 Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Sat, 7 Sep 2024 11:54:39 +0200 Subject: [PATCH] Store VENDORPRETTYNAME to the image instead to the BSP. This is image property. --- lib/functions/rootfs/distro-agnostic.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/functions/rootfs/distro-agnostic.sh b/lib/functions/rootfs/distro-agnostic.sh index 4cd8428b84..fdefe8a153 100644 --- a/lib/functions/rootfs/distro-agnostic.sh +++ b/lib/functions/rootfs/distro-agnostic.sh @@ -483,6 +483,11 @@ function install_distribution_agnostic() { # save list of enabled extensions for this image EXTENSIONS=${ENABLE_EXTENSIONS} >> "${SDCARD}"/etc/armbian-image-release + # store vendor pretty name to image only. We don't need to save this in BSP upgrade + # files. Vendor should be only defined at build image stage. + [[ -z $VENDORPRETTYNAME ]] && VENDORPRETTYNAME="${VENDOR}" + VENDORPRETTYNAME="$VENDORPRETTYNAME" >> "${SDCARD}"/etc/armbian-image-release + # DNS fix. package resolvconf is not available everywhere if [ -d "${SDCARD}"/etc/resolvconf/resolv.conf.d ] && [ -n "$NAMESERVER" ]; then echo "nameserver $NAMESERVER" > "${SDCARD}"/etc/resolvconf/resolv.conf.d/head