Skip to content

Commit

Permalink
[sonic-utilities] Add fstrim to reboot (sonic-net#535)
Browse files Browse the repository at this point in the history
Signed-off-by: Harish Venkatraman <[email protected]>
  • Loading branch information
Harish Venkatraman authored and jleveque committed Jul 24, 2019
1 parent 024e61f commit f387dc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/reboot
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ clear_warm_boot
# cause of the previous reboot
echo "User issued 'reboot' command [User: ${REBOOT_USER}, Time: ${REBOOT_TIME}]" > ${REBOOT_CAUSE_FILE}
sync
/sbin/fstrim -av
sleep 3

# sync the current system time to CMOS
Expand Down

0 comments on commit f387dc5

Please sign in to comment.