Skip to content

Commit fae6309

Browse files
committed
Stop platform monitor service before fast/warm reboot
Root Cause: Access i2c bus when fast/warm reboot would cause SMBus is busy and needs recover by power cycle. Solution: Stop platform monitor service before fast/warm reboot
1 parent 238b2a2 commit fae6309

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/fast-reboot

+7
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,13 @@ then
783783
systemctl stop "$service_name"
784784
fi
785785
786+
# Stop platform monitor sevice to prevent i2c access during warm/fast reboot
787+
services=$(systemctl list-units --plain --no-pager --no-legend --type=service | grep platform-monitor | cut -f 1 -d' ')
788+
for service_name in $services
789+
do
790+
systemctl stop "$service_name"
791+
done
792+
786793
# Update the reboot cause file to reflect that user issued this script
787794
# Upon next boot, the contents of this file will be used to determine the
788795
# cause of the previous reboot

0 commit comments

Comments
 (0)