HEX
Server: Apache/2.4.66 (Debian)
System: Linux 6dfabc3b2241 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64
User: (1000)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: //var/lib/dpkg/info/init-system-helpers.postinst
#!/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