From dc5006b2ee32ee0bac58a74204b211482b76ac1a Mon Sep 17 00:00:00 2001 From: Benjamin Sherman Date: Thu, 21 Mar 2024 20:35:33 -0500 Subject: [PATCH] feat: add a little uCore style to PRETTY_NAME (#134) --- ucore/install-ucore-hci.sh | 3 +++ ucore/install-ucore-minimal.sh | 3 +++ ucore/install-ucore.sh | 3 +++ 3 files changed, 9 insertions(+) diff --git a/ucore/install-ucore-hci.sh b/ucore/install-ucore-hci.sh index c642e73..9559a9d 100755 --- a/ucore/install-ucore-hci.sh +++ b/ucore/install-ucore-hci.sh @@ -5,3 +5,6 @@ set -ouex pipefail # install packages.json stuffs export IMAGE_NAME=ucore-hci /tmp/packages.sh + +# tweak os-release +sed -i '/^PRETTY_NAME/s/(uCore.*$/(uCore HCI)"/' /usr/lib/os-release diff --git a/ucore/install-ucore-minimal.sh b/ucore/install-ucore-minimal.sh index fbb7918..ecbae46 100755 --- a/ucore/install-ucore-minimal.sh +++ b/ucore/install-ucore-minimal.sh @@ -63,3 +63,6 @@ curl -L https://pkgs.tailscale.com/stable/fedora/tailscale.repo -o /etc/yum.repo # install packages.json stuffs export IMAGE_NAME=ucore-minimal /tmp/packages.sh + +# tweak os-release +sed -i '/^PRETTY_NAME/s/"$/ (uCore minimal)"/' /usr/lib/os-release diff --git a/ucore/install-ucore.sh b/ucore/install-ucore.sh index df4ff0c..e0060bc 100755 --- a/ucore/install-ucore.sh +++ b/ucore/install-ucore.sh @@ -8,3 +8,6 @@ export IMAGE_NAME=ucore # install packages direct from github /tmp/github-release-install.sh trapexit/mergerfs fc.x86_64 + +# tweak os-release +sed -i '/^PRETTY_NAME/s/(uCore.*$/(uCore)"/' /usr/lib/os-release