mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
Add /etc/os-release
This file is being read by some packages to find out on what distribution they are running on. This file needs to be included in every Core Update. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
6b75121120
commit
20253656fc
@@ -28,6 +28,7 @@ etc/modules.conf
|
||||
etc/mtab
|
||||
etc/nsswitch.conf
|
||||
#etc/opt
|
||||
etc/os-release
|
||||
etc/passwd
|
||||
etc/profile
|
||||
#etc/profile.d
|
||||
|
||||
@@ -28,6 +28,7 @@ etc/modules.conf
|
||||
etc/mtab
|
||||
etc/nsswitch.conf
|
||||
#etc/opt
|
||||
etc/os-release
|
||||
etc/passwd
|
||||
etc/profile
|
||||
#etc/profile.d
|
||||
|
||||
@@ -28,6 +28,7 @@ etc/modules.conf
|
||||
etc/mtab
|
||||
etc/nsswitch.conf
|
||||
#etc/opt
|
||||
etc/os-release
|
||||
etc/passwd
|
||||
etc/profile
|
||||
#etc/profile.d
|
||||
|
||||
@@ -145,6 +145,15 @@ endif
|
||||
# System release
|
||||
echo "$(SYSTEM_RELEASE)" > /etc/system-release
|
||||
|
||||
# OS release
|
||||
: >/etc/os-release
|
||||
echo "NAME=\"$(NAME)\"" >> /etc/os-release
|
||||
echo "VERSION=\"$(VERSION)\"" >> /etc/os-release
|
||||
echo "ID=$(SNAME)" >> /etc/os-release
|
||||
echo "VERSION_ID=2" >> /etc/os-release
|
||||
echo "PRETTY_NAME=\"$(SYSTEM_RELEASE)\"" >> /etc/os-release
|
||||
echo "ANSI_COLOR=\"0:31\"" >> /etc/os-release
|
||||
|
||||
# Pakfire
|
||||
-mkdir -pv /opt/pakfire/db/core
|
||||
echo "$(CORE)" > /opt/pakfire/db/core/mine
|
||||
|
||||
Reference in New Issue
Block a user