+ MINIMUM_FREE_DATA=3072
+ MNT=
+ default_path=/boot/grub/default
+ grub_verify_tmp=/tmp/grub.verify.tmp
+ tmp_prefix=SAFE.3413
+ ret=1
+ STAGE_FILE_CORRUPTED=4
+ PREVENT_CORRUPTION=5
+ PARTITION_TABLE_MISMATCH=6
+ grub_stagefile_arch=i386
++ uname -m
+ '[' Xi686 = Xx86_64 ']'
+ DEFAULT_STAGE1_FILE=/usr/lib/grub/i386-pc/stage1
+ DEFAULT_STAGE2_FILE=/usr/lib/grub/i386-pc/stage2
+ STAGE1_FILE=/boot/grub/stage1
+ STAGE2_FILE=/boot/grub/stage2
+ PREVIOUS_MBR_PARTITION_TABLE=/tmp/previous_mbr_table
+ CDROM_UPGRADE_PATH=/data/cdrom_upgrade
+ SUPPORTED_GRUB_BOOTING=2
+ GRUB_BOOTING_FILE=/usr/share/stonegate/grub_booting_method
+ LEGACY_GRUB_FILE=/data/boot/grub/legacy_grub_booting
+ GRUB_UPGRADE_DONE=/tmp/grub_install_U_done
+ RUN_AT_BOOT_FILE=/data/run-at-boot
+ RUN_AT_BOOT_GOING=/data/config/base/grub_boot_going
++ date
+ echo '/usr/share/stonegate/grub_install started at Tue Oct  9 15:44:00 EDT 2012. '
/usr/share/stonegate/grub_install started at Tue Oct  9 15:44:00 EDT 2012. 
+ '[' -f /mnt/etc/stonegate-version ']'
++ /usr/sbin/sg-version
+ echo 'Re-installing grub with version Stonesoft SSL VPN version 1.5.100.1563'
Re-installing grub with version Stonesoft SSL VPN version 1.5.100.1563
+ echo ''

++ df -k /data
++ grep /data
++ sed '-es,  *, ,g'
++ cut -d ' ' -f 4
+ data_size=323560
+ '[' 323560 -le 3072 ']'
++ cat /etc/stonegate-version
++ cut -d . -f 1
+ current_version=1
++ cat /etc/stonegate-version
++ cut -d . -f 2
+ current_minor_version=5
++ cat /etc/stonegate-version
++ cut -d . -f 3
+ current_micro_version=100
++ grep FW /etc/productname
+ is_fw=
++ grep SSL-VPN /etc/productname
+ is_sslvpn=SSL-VPN
+ '[' -z '' -a '(' '!' -z SSL-VPN ')' ']'
+ '[' 1 -eq 1 -a '(' 5 -lt 4 -o '(' 5 -eq 4 -a 100 -lt 5 ')' ')' ']'
+ '[' '!' -f /data/cdrom_upgrade -a '!' -z '' -a '!' -f /data/config/base/grub_boot_going -a 1 -lt 5 -a '!' -f /data/boot/grub/grub_m -o '(' '!' -z '' -a -f /data/boot/grub/grub_m -a -f /data/boot/grub/legacy_grub_booting -a '!' -f /data/config/base/grub_boot_going -a 1 -lt 5 ')' ']'
+ test_only=
+ no_verify=
+ update_master_grub=
+ reinstall_grub=
+ getopts RCUtnm: opt
+ case $opt in
+ check_and_reinstall_raid_grub=yes
+ getopts RCUtnm: opt
+ shift 1
+ '[' '!' -d /sys/block ']'
+ '[' -z ']'
+ MNT=
+ '[' -f /sbin/grub ']'
+ echo 'mount point MNT='
mount point MNT=
+ '[' -f //usr/share/stonegate/grub_booting_method ']'
+ . /usr/share/stonegate/sg_install_utils
++ PART_MASTER_GRUB=1
++ PART_A_GRUB=2
++ PART_B_GRUB=3
++ PART_A=5
++ PART_B=6
++ PART_SWAP=7
++ PART_DATA=8
++ PART_SPOOL=9
++ INVALID_DISCNUM=N/A
+ delete_temporaries
+ rm -f /boot/grub/stage1.tmp /boot/grub/stage2.tmp /boot/grub/default.tmp /tmp/grub.verify.tmp
+ '[' '!' -e /dev/.devfsd ']'
+ sync
++ grep /data /proc/mounts
+ dev='/dev/sda8 /data ext3 rw,relatime,errors=remount-ro,data=journal 0 0'
+ '[' -n yes ']'
+ disc0=/dev/discs/disc0/disc
+ disc1=/dev/discs/disc1/disc
+ disc0_p1=/dev/discs/disc0/part1
+ disc1_p1=/dev/discs/disc1/part1
+ '[' -e /dev/discs/disc0/disc -a -e /dev/discs/disc1/disc -a -e /dev/discs/disc0/part1 -a -e /dev/discs/disc1/part1 ']'
+ exit 0
