mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2024-09-20 11:23:16 +00:00
main/alpine-base: move os-release to /usr
This moves os-release to /usr, and creates a relative symlink at /etc/os-release to it. The symlink is for backwards compatibility. This is the recommended way to install os-release, as described in the os-release manpage[1] 1. https://www.man7.org/linux/man-pages/man5/os-release.5.html
This commit is contained in:
parent
4464ef68d0
commit
a60311be7b
1 changed files with 4 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
||||
pkgname=alpine-base
|
||||
pkgver=3.21.0_alpha20240807
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="Meta package for minimal alpine base"
|
||||
url="https://alpinelinux.org"
|
||||
arch="noarch"
|
||||
|
@ -51,7 +51,8 @@ Kernel \\r on an \\m (\\l)
|
|||
EOF
|
||||
|
||||
# create os-release
|
||||
cat >"$subpkgdir"/etc/os-release<<EOF
|
||||
mkdir -p "$subpkgdir"/usr/lib
|
||||
cat >"$subpkgdir"/usr/lib/os-release<<EOF
|
||||
NAME="Alpine Linux"
|
||||
ID=alpine
|
||||
VERSION_ID=$pkgver
|
||||
|
@ -59,6 +60,7 @@ PRETTY_NAME="Alpine Linux $_rel"
|
|||
HOME_URL="https://alpinelinux.org/"
|
||||
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"
|
||||
EOF
|
||||
ln -s ../usr/lib/os-release "$subpkgdir"/etc/os-release
|
||||
|
||||
# create secfixes.d repository list
|
||||
mkdir -p "$subpkgdir"/etc/secfixes.d
|
||||
|
|
Loading…
Reference in a new issue