[baseimage]: /host unmount timeout issue during reboot. (#5032)
Fix for the host unmount issue through PR https://github.com/Azure/sonic-buildimage/pull/4558 and https://github.com/Azure/sonic-buildimage/pull/4865 creates the timeout of syslog.socket closure during reboot since the journald socket closure has been included in syslog.socket Removed the journal socket closure. The host unmount is fixed with just stopping the services which gets restarted only after /var/log unmount and not causing the unmount issues.
This commit is contained in:
parent
2e8992d24a
commit
26050ffef8
@ -5,9 +5,6 @@
|
||||
|
||||
journal_stop() {
|
||||
systemctl stop systemd-journald.service
|
||||
systemctl stop systemd-journald.socket
|
||||
systemctl stop systemd-journald-audit.socket
|
||||
systemctl stop systemd-journald-dev-log.socket
|
||||
}
|
||||
|
||||
delete_loop_device() {
|
||||
@ -16,7 +13,10 @@ delete_loop_device() {
|
||||
then
|
||||
exit 0
|
||||
fi
|
||||
losetup -d /dev/loop1
|
||||
loop_exist=$(losetup -a | grep loop1 | wc -l)
|
||||
if [ $loop_exist -ne 0 ]; then
|
||||
losetup -d /dev/loop1
|
||||
fi
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
|
Loading…
Reference in New Issue
Block a user