100 |
return 0 |
return 0 |
101 |
} |
} |
102 |
|
|
103 |
|
mount_rootfs() |
104 |
|
{ |
105 |
|
is_mounted --location "${INSTALLROOT}" || mount "${ROOTHDD}" "${INSTALLROOT}" |
106 |
|
[[ -d ${INSTALLROOT}/boot ]] || install -d ${INSTALLROOT}/boot |
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 |
{ |
{ |
122 |
local hwinfo |
local hwinfo |
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 |
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 |
|
|
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 |
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 |
|
|
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 |
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 |
|
|