Compare commits

...

2 Commits

Author SHA1 Message Date
Oliver Smith c5bad381d9 Release 2.4.8+nmu5~sysmocom
* d/postinst: don't restart service in chroot
2023-01-30 09:44:55 +01:00
Oliver Smith d9af612a2f d/postinst: don't restart service in chroot
Don't attempt to restart systemd-networkd if systemd is not running
(e.g. installing open5gs inside a chroot).

Fix for:
  System has not been booted with systemd as init system (PID 1). Can't operate.
  Failed to connect to bus: Host is down
  dpkg: error processing package open5gs-upf:amd64 (--configure):
   installed open5gs-upf:amd64 package post-installation script subprocess returned error exit status 1
2023-01-30 09:41:51 +01:00
2 changed files with 9 additions and 1 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
open5gs (2.4.8+nmu5~sysmocom) unstable; urgency=medium
* d/postinst: don't restart service in chroot
-- Oliver Smith <osmith@sysmocom.de> Mon, 30 Jan 2023 09:42:49 +0100
open5gs (2.4.8+nmu4~sysmocom) unstable; urgency=medium
* Fix APN selection

View File

@ -27,7 +27,9 @@ case "$1" in
if test "x`systemctl is-enabled systemd-networkd`" = xdisabled; then
systemctl enable systemd-networkd
fi
deb-systemd-invoke restart systemd-networkd
if test -d "/run/systemd"; then
deb-systemd-invoke restart systemd-networkd
fi
if test -f /etc/sysctl.d/30-open5gs.conf && grep "ogstun" /proc/net/dev > /dev/null; then
echo "net.ipv6.conf.ogstun.disable_ipv6=0" > /etc/sysctl.d/30-open5gs.conf
sysctl -p /etc/sysctl.d/30-open5gs.conf