forked from acouzens/open5gs
d/changelog: 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
This commit is contained in:
parent
998e943d69
commit
71fe2a24a6
|
@ -27,7 +27,9 @@ case "$1" in
|
||||||
if test "x`systemctl is-enabled systemd-networkd`" = xdisabled; then
|
if test "x`systemctl is-enabled systemd-networkd`" = xdisabled; then
|
||||||
systemctl enable systemd-networkd
|
systemctl enable systemd-networkd
|
||||||
fi
|
fi
|
||||||
|
if test -d "/run/systemd"; then
|
||||||
deb-systemd-invoke restart systemd-networkd
|
deb-systemd-invoke restart systemd-networkd
|
||||||
|
fi
|
||||||
if test -f /etc/sysctl.d/30-open5gs.conf && grep "ogstun" /proc/net/dev > /dev/null; then
|
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
|
echo "net.ipv6.conf.ogstun.disable_ipv6=0" > /etc/sysctl.d/30-open5gs.conf
|
||||||
sysctl -p /etc/sysctl.d/30-open5gs.conf
|
sysctl -p /etc/sysctl.d/30-open5gs.conf
|
||||||
|
|
Loading…
Reference in New Issue