Skip to content

Commit f387dc5

Browse files
Harish Venkatramanjleveque
Harish Venkatraman
authored andcommitted
[sonic-utilities] Add fstrim to reboot (sonic-net#535)
Signed-off-by: Harish Venkatraman <[email protected]>
1 parent 024e61f commit f387dc5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/reboot

+1
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ clear_warm_boot
116116
# cause of the previous reboot
117117
echo "User issued 'reboot' command [User: ${REBOOT_USER}, Time: ${REBOOT_TIME}]" > ${REBOOT_CAUSE_FILE}
118118
sync
119+
/sbin/fstrim -av
119120
sleep 3
120121

121122
# sync the current system time to CMOS

0 commit comments

Comments
 (0)