100 |
return 0 |
return 0 |
101 |
} |
} |
102 |
|
|
103 |
|
mount_rootfs() |
104 |
|
{ |
105 |
|
local retval |
106 |
|
|
107 |
|
if is_mounted --location "${INSTALLROOT}" |
108 |
|
then |
109 |
|
echo $"${INSTALLROOT} already mounted" >&2 |
110 |
|
else |
111 |
|
mount "${ROOTHDD}" "${INSTALLROOT}" || dialog_die $"Could not mount rootfs - drive'${ROOTHDD}' -> '${INSTALLROOT}'" |
112 |
|
fi |
113 |
|
[[ -d ${INSTALLROOT}/boot ]] || install -d ${INSTALLROOT}/boot |
114 |
|
} |
115 |
|
|
116 |
|
umount_rootfs() |
117 |
|
{ |
118 |
|
is_mounted --location ${INSTALLROOT}/boot && umount ${INSTALLROOT}/boot |
119 |
|
is_mounted --location ${INSTALLROOT} && umount ${INSTALLROOT} |
120 |
|
} |
121 |
|
|
122 |
|
install_do_reboot() |
123 |
|
{ |
124 |
|
reboot |
125 |
|
} |
126 |
|
|
127 |
run_hardware_detection() |
run_hardware_detection() |
128 |
{ |
{ |
129 |
local hwinfo |
local hwinfo |
286 |
mkfs."${FORMAT_FILESYSTEM}" -q "${ROOTHDD}" || dialog_die |
mkfs."${FORMAT_FILESYSTEM}" -q "${ROOTHDD}" || dialog_die |
287 |
} |
} |
288 |
|
|
|
install_mount_rootfs() |
|
|
{ |
|
|
is_mounted --location "${INSTALLROOT}" || mount "${ROOTHDD}" "${INSTALLROOT}" |
|
|
install -d ${INSTALLROOT}/boot || dialog_die |
|
|
} |
|
|
|
|
289 |
install_system_image() |
install_system_image() |
290 |
{ |
{ |
291 |
pushd ${INSTALLROOT} > /dev/null |
pushd ${INSTALLROOT} > /dev/null |
327 |
fi |
fi |
328 |
} |
} |
329 |
|
|
|
install_umount_rootfs() |
|
|
{ |
|
|
is_mounted --location ${INSTALLROOT}/boot && umount ${INSTALLROOT}/boot |
|
|
is_mounted --location ${INSTALLROOT} && umount ${INSTALLROOT} |
|
|
} |
|
|
|
|
|
install_do_reboot() |
|
|
{ |
|
|
reboot |
|
|
} |
|
|
|
|
330 |
|
|
331 |
### installer dialogs ### |
### installer dialogs ### |
332 |
|
|
489 |
task_setup_hdd_partitions_manual |
task_setup_hdd_partitions_manual |
490 |
dialog_setup_hdd_format |
dialog_setup_hdd_format |
491 |
setup_hdd_format > /dev/null |
setup_hdd_format > /dev/null |
492 |
install_mount_rootfs |
mount_rootfs |
493 |
(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 |
494 |
|
|
495 |
dialog_install_settings |
dialog_install_settings |
506 |
bootloader_config |
bootloader_config |
507 |
bootloader_install |
bootloader_install |
508 |
|
|
509 |
install_umount_rootfs |
umount_rootfs |
510 |
dialog_install_successful |
dialog_install_successful |
511 |
} |
} |
512 |
|
|
517 |
task_setup_hdd_partitions_auto |
task_setup_hdd_partitions_auto |
518 |
dialog_setup_hdd_format |
dialog_setup_hdd_format |
519 |
setup_hdd_format > /dev/null |
setup_hdd_format > /dev/null |
520 |
install_mount_rootfs |
mount_rootfs |
521 |
(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 |
522 |
|
|
523 |
dialog_install_settings |
dialog_install_settings |
534 |
bootloader_config |
bootloader_config |
535 |
bootloader_install |
bootloader_install |
536 |
|
|
537 |
install_umount_rootfs |
umount_rootfs |
538 |
dialog_install_successful |
dialog_install_successful |
539 |
} |
} |
540 |
|
|