Skip to content

Commit 80dc2b7

Browse files
rkdevi27lguohan
authored andcommitted
[baseimage]: /host unmount timeout issue during reboot. (#5032)
Fix for the host unmount issue through PR #4558 and #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.
1 parent 210dc90 commit 80dc2b7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

files/image_config/syslog/host_umount.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55

66
journal_stop() {
77
systemctl stop systemd-journald.service
8-
systemctl stop systemd-journald.socket
9-
systemctl stop systemd-journald-audit.socket
10-
systemctl stop systemd-journald-dev-log.socket
118
}
129

1310
delete_loop_device() {
@@ -16,7 +13,10 @@ delete_loop_device() {
1613
then
1714
exit 0
1815
fi
19-
losetup -d /dev/loop1
16+
loop_exist=$(losetup -a | grep loop1 | wc -l)
17+
if [ $loop_exist -ne 0 ]; then
18+
losetup -d /dev/loop1
19+
fi
2020
}
2121

2222
case "$1" in

0 commit comments

Comments
 (0)