From d40a3d42398fbef5bd6ca346033351bea459804a Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Mon, 25 Aug 2025 15:05:32 +0200 Subject: [PATCH] Update os-release branding to show nullpoint identity - Add nullpoint branding to /etc/os-release PRETTY_NAME field - Preserve original OS information as base system reference - Create backup of original os-release file - Display updated branding information during installation --- post-install.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/post-install.sh b/post-install.sh index 1aca601..ea7724c 100755 --- a/post-install.sh +++ b/post-install.sh @@ -160,6 +160,21 @@ $BANNER MOTD fi +# Modify /etc/os-release to show nullpoint branding +echo "[+] Updating /etc/os-release with nullpoint branding..." +if [ -f /etc/os-release ]; then + # Backup original + cp /etc/os-release /etc/os-release.bak + + # Get original PRETTY_NAME value + ORIG_PRETTY_NAME=$(grep '^PRETTY_NAME=' /etc/os-release | cut -d'"' -f2) + + # Update PRETTY_NAME to show nullpoint with base OS info + sed -i "s/^PRETTY_NAME=.*/PRETTY_NAME=\"nullpoint (base: ${ORIG_PRETTY_NAME})\"/" /etc/os-release + + echo " - Updated PRETTY_NAME to 'nullpoint (base: ${ORIG_PRETTY_NAME})'" +fi + # Install additional packages echo "[+] Installing additional packages..." dnf install -y \