Skip to content

Commit 41917b8

Browse files
committed
systemvmtemplate: don't slow VR reboot for vmware
VMware router will be rebooted based on #2794, per current config the VRs on reboot will go through fsck checks slowing down the deployment process by few seconds. This will ensure that fsck checks are done on every 3rd boot of the VR. The `4` is used because 1st boot is done during the build of systemvmtemplate appliance. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent e4ec123 commit 41917b8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/appliance/systemvmtemplate/scripts/apt_upgrade.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
set -e
2020
set -x
2121

22-
# Perform fsck check on every 2nd boot
22+
# Perform fsck check on every 3rd boot
2323
function fix_tune2fs() {
2424
for partition in $(blkid -o list | grep ext | awk '{print $1}')
2525
do
2626
tune2fs -m 0 $partition
27-
tune2fs -c 3 $partition
27+
tune2fs -c 4 $partition
2828
done
2929
fdisk -l
3030
df -h

0 commit comments

Comments
 (0)