Magellan Linux

Diff of /trunk/installer-simple/bin/installer.sh.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2482 by niro, Wed Jan 8 10:32:55 2014 UTC revision 2485 by niro, Wed Jan 8 10:40:59 2014 UTC
# Line 100  install_meter() Line 100  install_meter()
100   return 0   return 0
101  }  }
102    
103    mount_rootfs()
104    {
105     is_mounted --location "${INSTALLROOT}" || mount "${ROOTHDD}" "${INSTALLROOT}"
106     install -d ${INSTALLROOT}/boot || dialog_die
107    }
108    
109    umount_rootfs()
110    {
111     is_mounted --location ${INSTALLROOT}/boot && umount ${INSTALLROOT}/boot
112     is_mounted --location ${INSTALLROOT} && umount ${INSTALLROOT}
113    }
114    
115    install_do_reboot()
116    {
117     reboot
118    }
119    
120  run_hardware_detection()  run_hardware_detection()
121  {  {
# Line 263  setup_hdd_format() Line 279  setup_hdd_format()
279   mkfs."${FORMAT_FILESYSTEM}" -q "${ROOTHDD}" || dialog_die   mkfs."${FORMAT_FILESYSTEM}" -q "${ROOTHDD}" || dialog_die
280  }  }
281    
 install_mount_rootfs()  
 {  
  is_mounted --location "${INSTALLROOT}" || mount "${ROOTHDD}" "${INSTALLROOT}"  
  install -d ${INSTALLROOT}/boot || dialog_die  
 }  
   
282  install_system_image()  install_system_image()
283  {  {
284   pushd ${INSTALLROOT} > /dev/null   pushd ${INSTALLROOT} > /dev/null
# Line 310  install_system_settings() Line 320  install_system_settings()
320   fi   fi
321  }  }
322    
 install_umount_rootfs()  
 {  
  is_mounted --location ${INSTALLROOT}/boot && umount ${INSTALLROOT}/boot  
  is_mounted --location ${INSTALLROOT} && umount ${INSTALLROOT}  
 }  
   
 install_do_reboot()  
 {  
  reboot  
 }  
   
323    
324  ### installer dialogs ###  ### installer dialogs ###
325    
# Line 483  run_install_normal() Line 482  run_install_normal()
482   task_setup_hdd_partitions_manual   task_setup_hdd_partitions_manual
483   dialog_setup_hdd_format   dialog_setup_hdd_format
484   setup_hdd_format > /dev/null   setup_hdd_format > /dev/null
485   install_mount_rootfs   mount_rootfs
486   (install_system_image > /tmp/install.log) 2> /tmp/install_errors.log | install_meter | dialog_install_system_image   (install_system_image > /tmp/install.log) 2> /tmp/install_errors.log | install_meter | dialog_install_system_image
487    
488   dialog_install_settings   dialog_install_settings
# Line 500  run_install_normal() Line 499  run_install_normal()
499   bootloader_config   bootloader_config
500   bootloader_install   bootloader_install
501    
502   install_umount_rootfs   umount_rootfs
503   dialog_install_successful   dialog_install_successful
504  }  }
505    
# Line 511  run_install_auto() Line 510  run_install_auto()
510   task_setup_hdd_partitions_auto   task_setup_hdd_partitions_auto
511   dialog_setup_hdd_format   dialog_setup_hdd_format
512   setup_hdd_format > /dev/null   setup_hdd_format > /dev/null
513   install_mount_rootfs   mount_rootfs
514   (install_system_image > /tmp/install.log) 2> /tmp/install_errors.log | install_meter | dialog_install_system_image   (install_system_image > /tmp/install.log) 2> /tmp/install_errors.log | install_meter | dialog_install_system_image
515    
516   dialog_install_settings   dialog_install_settings
# Line 528  run_install_auto() Line 527  run_install_auto()
527   bootloader_config   bootloader_config
528   bootloader_install   bootloader_install
529    
530   install_umount_rootfs   umount_rootfs
531   dialog_install_successful   dialog_install_successful
532  }  }
533    

Legend:
Removed from v.2482  
changed lines
  Added in v.2485