File: init-system-helpers.postinst

package info (click to toggle)
init-system-helpers 1.69
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 308 kB
  • sloc: perl: 1,808; sh: 591; makefile: 40
file content (16 lines) | stat: -rwxr-xr-x 537 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -e

# begin-remove-after: released:forky
# Workaround for live-build issue #1111039 which affects some rootfs
# installed by the installer flavor that copies the livefs onto the rootfs
# instead of bootstrapping from packages
if [ "$1" = "configure" ] && [ -n "$2" ] && dpkg-divert --list /etc/os-release | grep -q os-release.debootstrap; then
    dpkg-divert --quiet --local --remove --no-rename /etc/os-release
    rm -f /etc/os-release
    ln -s ../usr/lib/os-release /etc/os-release
fi
# end-remove-after

#DEBHELPER#