Commit 5518192d authored by Anton Midyukov's avatar Anton Midyukov

init: not copy os-release in live, rescue (more not needed)

The problem was earlier bacause of that the with /etc/os-release package was installed too early. See also commit 8551e710
parent 665620cd
#!/bin/sh
# Install /etc/*-release files if needed
rel_file=
for rel_file in altlinux-release os-release; do
if ! [ -e /etc/"$rel_file" ]; then
# in case it is dangling symlink
rm -f /etc/"$rel_file"
if [ -r /usr/share/branding-data-current/release/"$rel_file" ]; then
cp -at /etc -- \
/usr/share/branding-data-current/release/"$rel_file"
elif [ -r /usr/lib/"$rel_file" ]; then
cp -a /usr/lib/"$rel_file" /etc/"$rel_file"
fi
fi
done
#!/bin/sh
# Install /etc/*-release files if needed
rel_file=
for rel_file in altlinux-release os-release; do
if ! [ -e /etc/"$rel_file" ]; then
# in case it is dangling symlink
rm -f /etc/"$rel_file"
if [ -r /usr/share/branding-data-current/release/"$rel_file" ]; then
cp -at /etc -- \
/usr/share/branding-data-current/release/"$rel_file"
elif [ -r /usr/lib/"$rel_file" ]; then
cp -a /usr/lib/"$rel_file" /etc/"$rel_file"
fi
fi
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment