live, init: move 65-os-release from live to init
Install /etc/*-release files if needed. Reported-by: Ivan A. Melnikov <iv@altlinux.org>
This commit is contained in:
parent
5e20cec7e2
commit
efa57b9121
10
features.in/init/rescue/image-scripts.d/65-os-release
Executable file
10
features.in/init/rescue/image-scripts.d/65-os-release
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
# Install /etc/*-release files if needed
|
||||
if [ -d /usr/share/branding-data-current ]; then
|
||||
[ -e /etc/altlinux-release ] ||
|
||||
cp -at /etc -- \
|
||||
/usr/share/branding-data-current/release/altlinux-release
|
||||
[ -e /etc/os-release ] ||
|
||||
cp -at /etc -- \
|
||||
/usr/share/branding-data-current/release/os-release
|
||||
fi
|
10
features.in/init/rootfs/image-scripts.d/65-os-release
Executable file
10
features.in/init/rootfs/image-scripts.d/65-os-release
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
# Install /etc/*-release files if needed
|
||||
if [ -d /usr/share/branding-data-current ]; then
|
||||
[ -e /etc/altlinux-release ] ||
|
||||
cp -at /etc -- \
|
||||
/usr/share/branding-data-current/release/altlinux-release
|
||||
[ -e /etc/os-release ] ||
|
||||
cp -at /etc -- \
|
||||
/usr/share/branding-data-current/release/os-release
|
||||
fi
|
@ -1,7 +0,0 @@
|
||||
#!/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
|
Loading…
Reference in New Issue
Block a user