Ignore:
Timestamp:
Jun 19, 2013 7:13:34 AM (13 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2
Children:
506d427
Parents:
d4ca180
Message:

Move grub stamp to later in install, after we have a chance to run scripts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/pc-sysinstall/backend/functions-cleanup.sh

    rd4ca180 rcce092d  
    384384}; 
    385385 
    386 # Script which stamps grub on the specified disks 
    387 setup_grub()  
    388 { 
    389   # Mount devfs 
    390   rc_halt "mount -t devfs devfs ${FSMNT}/dev" 
    391  
    392   # Make sure to copy zpool.cache first 
    393   rc_halt "cp /boot/zfs/zpool.cache ${FSMNT}/boot/zfs/" 
    394  
    395   # Read through our list and stamp grub for each device 
    396   while read line 
    397   do 
    398     # Make sure we have a /dev in front of the disk name 
    399     echo $line | grep -q '/dev/' 
    400     if [ $? -eq 0 ] ; then 
    401       gDisk="$line" 
    402     else 
    403       gDisk="/dev/$line" 
    404     fi 
    405  
    406     # Stamp GRUB now 
    407     rc_halt "chroot ${FSMNT} grub-install --force $gDisk" 
    408   done < ${TMPDIR}/.grub-install 
    409  
    410   # Make sure we re-create the default grub.cfg 
    411   rc_halt "chroot ${FSMNT} grub-mkconfig -o /boot/grub/grub.cfg" 
    412  
    413   # Sleep and cleanup 
    414   sleep 5 
    415   rc_halt "umount ${FSMNT}/dev" 
    416 }; 
    417  
    418386run_final_cleanup() 
    419387{ 
     
    443411  setup_fstab 
    444412 
    445   # Check if we need to setup GRUB 
    446   if [ -e "${TMPDIR}/.grub-install" ] ; then setup_grub; fi 
    447  
    448 }; 
     413}; 
Note: See TracChangeset for help on using the changeset viewer.