100 |
return 0 |
return 0 |
101 |
} |
} |
102 |
|
|
103 |
install_mount_rootfs() |
mount_rootfs() |
104 |
{ |
{ |
105 |
is_mounted --location "${INSTALLROOT}" || mount "${ROOTHDD}" "${INSTALLROOT}" |
local retval |
106 |
install -d ${INSTALLROOT}/boot || dialog_die |
|
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 |
install_umount_rootfs() |
umount_rootfs() |
117 |
{ |
{ |
118 |
is_mounted --location ${INSTALLROOT}/boot && umount ${INSTALLROOT}/boot |
is_mounted --location ${INSTALLROOT}/boot && umount ${INSTALLROOT}/boot |
119 |
is_mounted --location ${INSTALLROOT} && umount ${INSTALLROOT} |
is_mounted --location ${INSTALLROOT} && umount ${INSTALLROOT} |
211 |
# run this only if FDISKPARTITIONBELOW256MB is not already 1 |
# run this only if FDISKPARTITIONBELOW256MB is not already 1 |
212 |
if [[ ${FDISKPARTIONBELOW256MB} != 1 ]] |
if [[ ${FDISKPARTIONBELOW256MB} != 1 ]] |
213 |
then |
then |
214 |
if hdd_size_below_256mb ${HDD} |
if device_minimum_size "${HDD}" 256 |
215 |
then |
then |
216 |
FDISKPARTIONBELOW256MB=1 |
FDISKPARTIONBELOW256MB=1 |
217 |
else |
else |
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 |
|
|