[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:
rkdevi27 2020-07-25 13:57:58 +05:30 committed by Abhishek Dosi
parent 652aa3b072
commit 5ddfc13a75

View File

@ -5,9 +5,6 @@
journal_stop() { journal_stop() {
systemctl stop systemd-journald.service 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() { delete_loop_device() {
@ -16,7 +13,10 @@ delete_loop_device() {
then then
exit 0 exit 0
fi 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 case "$1" in