Skip to content
Snippets Groups Projects
Commit 67737ff3 authored by Simon McVittie's avatar Simon McVittie
Browse files

base: Move /etc/os-release to /usr/lib/os-release if necessary

parent 4f3500d2
No related branches found
No related tags found
No related merge requests found
......@@ -113,6 +113,11 @@ actions:
cp "$ROOTDIR/usr/manifest.dpkg" "$ARTIFACTDIR/{{ $artifact_prefix }}.manifest.dpkg"
cp "$ROOTDIR/usr/manifest.dpkg.built-using" "$ARTIFACTDIR/{{ $artifact_prefix }}.manifest.dpkg.built-using"
cp "$ROOTDIR/usr/manifest.deb822.gz" "$ARTIFACTDIR/{{ $artifact_prefix }}.manifest.deb822.gz"
if test -e "$ROOTDIR/etc/os-release" && ! test -e "$ROOTDIR/usr/lib/os-release"; then
rm -f "$ROOTDIR/usr/lib/os-release"
mv "$ROOTDIR/etc/os-release" "$ROOTDIR/usr/lib/os-release"
ln -fns ../usr/lib/os-release "$ROOTDIR/etc/os-release"
fi
if test -e "$ROOTDIR/usr/lib/os-release" && test -n "{{ $build_id }}"; then
sed -n -i -e '/^BUILD_ID=/!p' "$ROOTDIR/usr/lib/os-release"
echo 'BUILD_ID="{{ $build_id }}"' >> "$ROOTDIR/usr/lib/os-release"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment