live: Install /etc/*-release files if needed

Seems some other branding-*-release can be installed in live
chroot and post of needed branding-*-release package don't copy
these files.
This commit is contained in:
Mikhail Efremov 2017-10-30 20:51:10 +03:00 committed by Michael Shigorin
parent e307a3dbdb
commit 410a00d40c

View File

@ -0,0 +1,7 @@
#!/bin/sh
# Install /etc/*-release files on live if needed
if [ -d /usr/share/branding-data-current ] && \
! [ -e /etc/altlinux-release ] && \
! [ -e /etc/os-release ]; then
cp -a /usr/share/branding-data-current/release/*-release /etc/
fi