feat(image): fix osrel in uki

This commit is contained in:
Lars Sjöström 2025-02-25 18:01:44 +01:00
parent e4ebf7ea7f
commit b3ad9f9962
No known key found for this signature in database
2 changed files with 8 additions and 9 deletions

View file

@ -19,12 +19,14 @@ rm -f $out/usr/lib/systemd/system/sysinit.target.wants/systemd-firstboot.service
rm -f $out/usr/lib/udev/rules.d/90-vconsole.rules
cat <<EOF > $out/etc/os-release
NAME="PatOS"
PRETTY_NAME="PatOS 0.0.1 (pre-alpha)"
NAME=PatOS
PRETTY_NAME=PatOS 0.0.1 (pre-alpha)
IMAGE_ID=patos
ID=patos
VERSION="0.0.1 (pre-alpha)"
VERSION_CODENAME=pre-alpha
VERSION_ID="0.0.1"
IMAGE_VERSION=0.0.1
VERSION=0.0.1
VERSION_ID=0.0.1
BUILD_ID=0.0.1
EOF
sed -i 's#After=\(.*\)#After=sysroot.mount \1#' $out/usr/lib/systemd/system/systemd-repart.service