10 |
source /mnt/cdrom/system/images.conf |
source /mnt/cdrom/system/images.conf |
11 |
|
|
12 |
# includes |
# includes |
13 |
|
source ${MLIBDIR}/functions/generic.sh |
14 |
source ${MLIBDIR}/functions/hwdetection.sh |
source ${MLIBDIR}/functions/hwdetection.sh |
15 |
|
|
16 |
### System/Config Version |
### System/Config Version |
17 |
VERSION="@@VERSION@@" |
VERSION="@@VERSION@@" |
18 |
TITLE="alxinstall-ng - ${VERSION}" |
TITLE="alxinstall-ng - ${VERSION}" |
19 |
|
|
20 |
|
# locations |
21 |
CDPATH="/mnt/cdrom" |
CDPATH="/mnt/cdrom" |
22 |
INSTALLPATH="/mnt/magellan" |
INSTALLPATH="/mnt/magellan" |
23 |
|
|
24 |
### linecount of system.tar.gz -1 ! |
# default system settings |
|
CURRENTLINE=0 |
|
|
#TOTALLINES=11072 # -> now in images.conf |
|
|
|
|
25 |
# standard kernel opts |
# standard kernel opts |
26 |
KERNELOPTS="quiet video=1024x768" |
DEFAULT_KERNELOPTS="quiet video=1024x768" |
27 |
|
|
28 |
# grub options |
# grub options |
29 |
GRUBLEGACYOPTS="" |
DEFAULT_GRUBLEGACYOPTS="" |
30 |
GRUB2OPTS="" |
DEFAULT_GRUB2OPTS="" |
31 |
GRUB2GFXPAYLOAD="1024x768x16,1024x768" |
DEFAULT_GRUB2GFXPAYLOAD="1024x768x16,1024x768" |
|
|
|
|
# fdisk options |
|
|
FDISKPARTIONBELOW256MB=0 |
|
32 |
|
|
33 |
# default specialdevices |
# default specialdevices |
34 |
SPECIALDEVICE="" |
DEFAULT_FORMFACTOR="desktop" |
|
FORMFACTOR="desktop" |
|
35 |
|
|
36 |
# target filesystem |
# target filesystem |
37 |
FORMAT_FILESYSTEM="ext4" |
DEFAULT_FORMAT_FILESYSTEM="ext4" |
38 |
|
|
39 |
|
# initialize global variables so they are exportable |
40 |
|
INSTALL_METHOD="" |
41 |
|
KERNELOPTS="" |
42 |
|
GRUBLEGACYOPTS="" |
43 |
|
GRUB2OPTS="" |
44 |
|
GRUB2GFXPAYLOAD="" |
45 |
|
FORMFACTOR="" |
46 |
|
FORMAT_FILESYSTEM="" |
47 |
|
FDISKPARTIONBELOW256MB=0 |
48 |
|
SPECIALDEVICE="" |
49 |
|
### linecount of system.tar.gz -1 ! |
50 |
|
CURRENTLINE=0 |
51 |
|
#TOTALLINES=11072 # -> now in images.conf |
52 |
|
|
53 |
################################################# |
################################################# |
54 |
# DIALOG BOXES # |
# DIALOG BOXES # |
82 |
|
|
83 |
dialog_setup_hdd_info() |
dialog_setup_hdd_info() |
84 |
{ |
{ |
85 |
|
case "${INSTALL_METHOD}" in |
86 |
|
auto) |
87 |
|
dialog_setup_hdd_info_auto |
88 |
|
dialog_setup_hdd_create_partitions |
89 |
|
;; |
90 |
|
normal) dialog_setup_hdd_info_normal ;; |
91 |
|
single) dialog_setup_hdd_info_single ;; |
92 |
|
esac |
93 |
|
} |
94 |
|
|
95 |
|
dialog_setup_hdd_info_normal() |
96 |
|
{ |
97 |
local SHDD="$(echo ${HDD} | sed 's/\/dev\///')" |
local SHDD="$(echo ${HDD} | sed 's/\/dev\///')" |
98 |
|
|
99 |
dialog \ |
dialog \ |
157 |
if [[ ${RES} -eq 0 ]] |
if [[ ${RES} -eq 0 ]] |
158 |
then |
then |
159 |
case "${i}" in |
case "${i}" in |
160 |
"1") run_install_auto ;; |
"1") run_install auto ;; |
161 |
"2") run_install_normal ;; |
"2") run_install normal ;; |
162 |
"3") run_install_single ;; |
"3") run_install single ;; |
163 |
"") dialog_setup_system_menu;; |
"") dialog_setup_system_menu;; |
164 |
esac |
esac |
165 |
fi |
fi |
230 |
fi |
fi |
231 |
} |
} |
232 |
|
|
233 |
dialog_setup_hdd_partitions_manuell() |
dialog_setup_hdd_partitions() |
234 |
{ |
{ |
235 |
local i |
local i |
236 |
|
|
263 |
if [[ ${RES} -eq 0 ]] |
if [[ ${RES} -eq 0 ]] |
264 |
then |
then |
265 |
dialog_setup_hdd_info |
dialog_setup_hdd_info |
266 |
setup_hdd_partitions_manuell |
setup_hdd_partitions |
|
fi |
|
|
fi |
|
|
} |
|
|
|
|
|
dialog_setup_hdd_partitions_manuell_single() |
|
|
{ |
|
|
local i |
|
|
|
|
|
if [[ -z ${ALL_DISKS} ]] |
|
|
then |
|
|
dialog \ |
|
|
--backtitle "${TITLE}" \ |
|
|
--ok-label "Beenden" \ |
|
|
--msgbox "Kein geeignetes Laufwerk gefunden.\nDie Installation ist fehlgeschlagen." 6 70 |
|
|
exit 1 |
|
|
else |
|
|
|
|
|
echo "dialog \\" > /tmp/hddtmp.sh |
|
|
echo "--backtitle \"${TITLE}\" \\" >> /tmp/hddtmp.sh |
|
|
echo "--ok-label \"Weiter\" \\" >> /tmp/hddtmp.sh |
|
|
echo "--cancel-label \"Beenden\" \\" >> /tmp/hddtmp.sh |
|
|
echo "--stdout \\" >> /tmp/hddtmp.sh |
|
|
echo "--menu \"Installations Laufwerk auswaehlen:\" 10 70 3 \\" >> /tmp/hddtmp.sh |
|
|
|
|
|
for i in ${ALL_DISKS} |
|
|
do |
|
|
echo "\"${i}\" \"\" \\" >> /tmp/hddtmp.sh |
|
|
done |
|
|
echo -e "\n" >> /tmp/hddtmp.sh |
|
|
|
|
|
chmod a+x /tmp/hddtmp.sh |
|
|
HDD="$(/tmp/hddtmp.sh)" |
|
|
RES=$? |
|
|
[[ ${RES} -eq 1 ]] && return 1 |
|
|
if [[ ${RES} -eq 0 ]] |
|
|
then |
|
|
dialog_setup_hdd_info_single |
|
|
setup_hdd_partitions_manuell_single |
|
|
fi |
|
|
fi |
|
|
} |
|
|
|
|
|
dialog_setup_hdd_partitions_auto() |
|
|
{ |
|
|
local i |
|
|
|
|
|
if [[ -z ${ALL_DISKS} ]] |
|
|
then |
|
|
dialog \ |
|
|
--backtitle "${TITLE}" \ |
|
|
--ok-label "Beenden" \ |
|
|
--msgbox "Kein geeignetes Laufwerk gefunden.\nDie Installation ist fehlgeschlagen." 6 70 |
|
|
exit 1 |
|
|
else |
|
|
|
|
|
echo "dialog \\" > /tmp/hddtmp.sh |
|
|
echo "--backtitle \"${TITLE}\" \\" >> /tmp/hddtmp.sh |
|
|
echo "--ok-label \"Weiter\" \\" >> /tmp/hddtmp.sh |
|
|
echo "--cancel-label \"Beenden\" \\" >> /tmp/hddtmp.sh |
|
|
echo "--stdout \\" >> /tmp/hddtmp.sh |
|
|
echo "--menu \"Installations Laufwerk auswaehlen:\" 10 70 3 \\" >> /tmp/hddtmp.sh |
|
|
|
|
|
for i in ${ALL_DISKS} |
|
|
do |
|
|
echo "\"${i}\" \"\" \\" >> /tmp/hddtmp.sh |
|
|
done |
|
|
echo -e "\n" >> /tmp/hddtmp.sh |
|
|
|
|
|
chmod a+x /tmp/hddtmp.sh |
|
|
HDD="$(/tmp/hddtmp.sh)" |
|
|
RES=$? |
|
|
[[ ${RES} -eq 1 ]] && return 1 |
|
|
if [[ ${RES} -eq 0 ]] |
|
|
then |
|
|
dialog_setup_hdd_info_auto |
|
|
dialog_setup_hdd_create_partitions |
|
|
setup_hdd_partitions_auto |
|
267 |
fi |
fi |
268 |
fi |
fi |
269 |
} |
} |
474 |
return "${retval}" |
return "${retval}" |
475 |
} |
} |
476 |
|
|
477 |
setup_hdd_partitions_auto() |
setup_hdd_partitions() |
478 |
{ |
{ |
479 |
ROOTHDD="${HDD}1" |
case "${INSTALL_METHOD}" in |
480 |
|
normal) |
481 |
|
BOOTHDD="${HDD}1" |
482 |
|
SWAPHDD="${HDD}2" |
483 |
|
ROOTHDD="${HDD}3" |
484 |
|
;; |
485 |
|
|
486 |
|
single|auto) |
487 |
|
BOOTHDD="" |
488 |
|
SWAPHDD="" |
489 |
|
ROOTHDD="${HDD}1" |
490 |
|
;; |
491 |
|
esac |
492 |
|
|
493 |
# run this only if FDISKPARTITIONBELOW256MB is not already 1 |
if [[ ${INSTALL_METHOD} = auto ]] |
|
if [[ ${FDISKPARTIONBELOW256MB} != 1 ]] |
|
494 |
then |
then |
495 |
if hdd_size_below_256mb ${HDD} |
# run this only if FDISKPARTITIONBELOW256MB is not already 1 |
496 |
|
if [[ ${FDISKPARTIONBELOW256MB} != 1 ]] |
497 |
then |
then |
498 |
FDISKPARTIONBELOW256MB=1 |
if hdd_size_below_256mb ${HDD} |
499 |
else |
then |
500 |
FDISKPARTIONBELOW256MB=0 |
FDISKPARTIONBELOW256MB=1 |
501 |
|
else |
502 |
|
FDISKPARTIONBELOW256MB=0 |
503 |
|
fi |
504 |
fi |
fi |
|
fi |
|
505 |
|
|
506 |
## delete disk |
## delete disk |
507 |
dd if=/dev/zero of=${HDD} count=1 &> /dev/null || die |
dd if=/dev/zero of=${HDD} count=1 &> /dev/null || die |
508 |
|
|
509 |
if [[ ${FDISKPARTIONBELOW256MB} = 1 ]] |
if [[ ${FDISKPARTIONBELOW256MB} = 1 ]] |
510 |
then |
then |
511 |
## setup one bootable partition |
## setup one bootable partition |
512 |
#1. n= new disk |
#1. n= new disk |
513 |
#2. p= primary disk |
#2. p= primary disk |
514 |
#3. 1= first partition |
#3. 1= first partition |
515 |
#4. 2= default sector start // small disk needs more space for grub2 mbr sector |
#4. 2= default sector start // small disk needs more space for grub2 mbr sector |
516 |
#5. ''= defaul sector end |
#5. ''= defaul sector end |
517 |
#6. a= bootable flag |
#6. a= bootable flag |
518 |
#7. 1= boot flag for partition 1 |
#7. 1= boot flag for partition 1 |
519 |
#8. w= write/quit |
#8. w= write/quit |
520 |
fdisk ${HDD} &> /dev/null << EOF |
fdisk ${HDD} &> /dev/null << EOF |
521 |
n |
n |
522 |
p |
p |
523 |
1 |
1 |
527 |
1 |
1 |
528 |
w |
w |
529 |
EOF |
EOF |
530 |
else |
else |
531 |
## setup one bootable partition |
## setup one bootable partition |
532 |
#1. n= new disk |
#1. n= new disk |
533 |
#2. p= primary disk |
#2. p= primary disk |
534 |
#3. 1= first partition |
#3. 1= first partition |
535 |
#4. ''= default sector start |
#4. ''= default sector start |
536 |
#5. ''= defaul sector end |
#5. ''= defaul sector end |
537 |
#6. a= bootable flag |
#6. a= bootable flag |
538 |
#7. 1= boot flag for partition 1 |
#7. 1= boot flag for partition 1 |
539 |
#8. w= write/quit |
#8. w= write/quit |
540 |
fdisk ${HDD} &> /dev/null << EOF |
fdisk ${HDD} &> /dev/null << EOF |
541 |
n |
n |
542 |
p |
p |
543 |
1 |
1 |
547 |
1 |
1 |
548 |
w |
w |
549 |
EOF |
EOF |
550 |
|
fi |
551 |
|
else |
552 |
|
## hdds partitionieren manuell |
553 |
|
cfdisk ${HDD} || die |
554 |
fi |
fi |
555 |
} |
} |
556 |
|
|
|
setup_hdd_partitions_manuell() |
|
|
{ |
|
|
BOOTHDD="${HDD}1" |
|
|
SWAPHDD="${HDD}2" |
|
|
ROOTHDD="${HDD}3" |
|
|
|
|
|
## hdds partitionieren manuell |
|
|
cfdisk ${HDD} || die |
|
|
} |
|
|
|
|
|
setup_hdd_partitions_manuell_single() |
|
|
{ |
|
|
ROOTHDD="${HDD}1" |
|
|
|
|
|
## hdds partitionieren manuell |
|
|
cfdisk ${HDD} || die |
|
|
} |
|
|
|
|
557 |
setup_hdd_format() |
setup_hdd_format() |
558 |
{ |
{ |
559 |
mkswap ${SWAPHDD} || die |
if [[ -n ${SWAPHDD} ]] |
560 |
mke2fs -j -q ${BOOTHDD} || die |
then |
561 |
mke2fs -j -q ${ROOTHDD} || die |
mkswap ${SWAPHDD} || die |
562 |
} |
fi |
563 |
|
if [[ -n ${BOOTHDD} ]] |
564 |
setup_hdd_format_single() |
then |
565 |
{ |
mkfs.${FORMAT_FILESYSTEM} -q ${BOOTHDD} || die |
566 |
mke2fs -j -q ${ROOTHDD} || die |
fi |
567 |
|
if [[ -n ${ROOTHDD} ]] |
568 |
|
then |
569 |
|
mkfs.${FORMAT_FILESYSTEM} -q ${ROOTHDD} || die |
570 |
|
fi |
571 |
} |
} |
572 |
|
|
573 |
install_mount_rootfs() |
install_mount_rootfs() |
574 |
{ |
{ |
575 |
swapon ${SWAPHDD} || die |
if [[ -n ${SWAPHDD} ]] |
576 |
mount ${ROOTHDD} ${INSTALLPATH} || die |
then |
577 |
install -d ${INSTALLPATH}/boot || die |
swapon ${SWAPHDD} || die |
578 |
mount ${BOOTHDD} ${INSTALLPATH}/boot || die |
fi |
579 |
cd ${INSTALLPATH} || die |
if [[ -n ${ROOTHDD} ]] |
580 |
} |
then |
581 |
|
mount ${ROOTHDD} ${INSTALLPATH} || die |
582 |
|
fi |
583 |
|
if [[ -n ${BOOTHDD} ]] |
584 |
|
then |
585 |
|
install -d ${INSTALLPATH}/boot || die |
586 |
|
mount ${BOOTHDD} ${INSTALLPATH}/boot || die |
587 |
|
fi |
588 |
|
|
|
install_mount_rootfs_single() |
|
|
{ |
|
|
mount ${ROOTHDD} ${INSTALLPATH} || die |
|
|
install -d ${INSTALLPATH}/boot || die |
|
589 |
cd ${INSTALLPATH} || die |
cd ${INSTALLPATH} || die |
590 |
} |
} |
591 |
|
|
717 |
|
|
718 |
install_initrd_chroot() |
install_initrd_chroot() |
719 |
{ |
{ |
720 |
|
local CONFIG |
721 |
|
|
722 |
# only generate initrds if the cmd exists |
# only generate initrds if the cmd exists |
723 |
is_initrd_supported || return 0 |
is_initrd_supported || return 0 |
724 |
|
|
744 |
fi |
fi |
745 |
|
|
746 |
# install an appropriate uvesafb.conf |
# install an appropriate uvesafb.conf |
747 |
install -d ${INSTALLPATH}/etc/modprobe.d || die |
CONFIG=${INSTALLPATH}/etc/modprobe.d/uvesafb.conf |
748 |
echo "options uvesafb mode_option=1024x768-32@60 scroll=ywrap" > ${INSTALLPATH}/etc/modprobe.d/uvesafb.conf || die |
clearconfig |
749 |
|
addconfig "options uvesafb mode_option=1024x768-32@60 scroll=ywrap" |
750 |
|
|
751 |
# install an appropriate viafb.conf |
# install an appropriate viafb.conf |
752 |
echo "options viafb viafb_mode=1024x768 viafb_refresh=60" > ${INSTALLPATH}/etc/modprobe.d/viafb.conf || die |
CONFIG=${INSTALLPATH}/etc/modprobe.d/viafb.conf |
753 |
|
clearconfig |
754 |
|
addconfig "options viafb viafb_mode=1024x768 viafb_refresh=60" |
755 |
|
|
756 |
# install an appropriate i810fb.conf |
# install an appropriate i810fb.conf |
757 |
echo "options i810fb xres=1024 yres=768 bpp=16 mtrr=1 hsync1=30 hsync2=62 vsync1=30 vsync2=60" > ${INSTALLPATH}/etc/modprobe.d/i810fb.conf || die |
CONFIG=${INSTALLPATH}/etc/modprobe.d/i810fb.conf |
758 |
|
clearconfig |
759 |
|
addconfig "options i810fb xres=1024 yres=768 bpp=16 mtrr=1 hsync1=30 hsync2=62 vsync1=30 vsync2=60" |
760 |
|
|
761 |
cat > ${INSTALLPATH}/root/.installrc << CHROOTEOF |
cat > ${INSTALLPATH}/root/.installrc << CHROOTEOF |
762 |
echo "MODULES=\"${FORMAT_FILESYSTEM} ${DISKMODS} ${OLDATAMODS} ${PATAMODS} ${SATAMODS} ${DRMMODS} ${FBMODS} ${OTHERMODS}\"" > /etc/conf.d/mkinitrd |
echo "MODULES=\"${FORMAT_FILESYSTEM} ${DISKMODS} ${OLDATAMODS} ${PATAMODS} ${SATAMODS} ${DRMMODS} ${FBMODS} ${OTHERMODS}\"" > /etc/conf.d/mkinitrd |
813 |
# schreibe fstab |
# schreibe fstab |
814 |
if is_uuid_supported |
if is_uuid_supported |
815 |
then |
then |
816 |
echo -e "UUID=$(get_uuid ${BOOTHDD})\t/boot\t${FORMAT_FILESYSTEM}\tnoatime,noauto\t1 1" > ${INSTALLPATH}/etc/fstab || die |
if [[ -n ${BOOTHDD} ]] |
817 |
echo -e "UUID=$(get_uuid ${ROOTHDD})\t/\t${FORMAT_FILESYSTEM}\tnoatime\t0 0" >> ${INSTALLPATH}/etc/fstab || die |
then |
818 |
|
echo -e "UUID=$(get_uuid ${BOOTHDD})\t/boot\t${FORMAT_FILESYSTEM}\tnoatime,noauto\t1 1" > ${INSTALLPATH}/etc/fstab || die |
819 |
|
fi |
820 |
|
if [[ -n ${ROOTHDD} ]] |
821 |
|
then |
822 |
|
echo -e "UUID=$(get_uuid ${ROOTHDD})\t/\t${FORMAT_FILESYSTEM}\tnoatime\t0 0" >> ${INSTALLPATH}/etc/fstab || die |
823 |
|
fi |
824 |
else |
else |
825 |
echo -e "${BOOTHDD}\t/boot\t${FORMAT_FILESYSTEM}\tnoatime,noauto\t1 1" > ${INSTALLPATH}/etc/fstab || die |
if [[ -n ${BOOTHDD} ]] |
826 |
echo -e "${ROOTHDD}\t/\t${FORMAT_FILESYSTEM}\tnoatime\t0 0" >> ${INSTALLPATH}/etc/fstab || die |
then |
827 |
|
echo -e "${BOOTHDD}\t/boot\t${FORMAT_FILESYSTEM}\tnoatime,noauto\t1 1" > ${INSTALLPATH}/etc/fstab || die |
828 |
|
fi |
829 |
|
if [[ -n ${ROOTHDD} ]] |
830 |
|
then |
831 |
|
echo -e "${ROOTHDD}\t/\t${FORMAT_FILESYSTEM}\tnoatime\t0 0" >> ${INSTALLPATH}/etc/fstab || die |
832 |
|
fi |
833 |
fi |
fi |
834 |
# not needed busybox loads all with swapon -a, even if not mentioned in fstab |
# not needed busybox loads all with swapon -a, even if not mentioned in fstab |
835 |
#echo -e "UUID='$(get_uuid ${SWAPHDD})'\tswap\tswap\tpri=1\t0 0" >> ${INSTALLPATH}/etc/fstab || die |
#echo -e "UUID='$(get_uuid ${SWAPHDD})'\tswap\tswap\tpri=1\t0 0" >> ${INSTALLPATH}/etc/fstab || die |
853 |
fi |
fi |
854 |
} |
} |
855 |
|
|
|
install_system_settings_single() |
|
|
{ |
|
|
# write fstab |
|
|
if is_uuid_supported |
|
|
then |
|
|
echo -e "UUID=$(get_uuid ${ROOTHDD})\t/\t${FORMAT_FILESYSTEM}\tnoatime\t0 0" > ${INSTALLPATH}/etc/fstab || die |
|
|
else |
|
|
echo -e "${ROOTHDD}\t/\t${FORMAT_FILESYSTEM}\tnoatime\t0 0" > ${INSTALLPATH}/etc/fstab || die |
|
|
fi |
|
|
echo -e "proc\t/proc\tproc\tdefaults\t0 0" >> ${INSTALLPATH}/etc/fstab || die |
|
|
echo -e "shm\t/dev/shm\ttmpfs\tdefaults\t0 0" >> ${INSTALLPATH}/etc/fstab || die |
|
|
} |
|
|
|
|
856 |
install_umount_rootfs() |
install_umount_rootfs() |
857 |
{ |
{ |
858 |
cd / |
cd / |
859 |
umount ${INSTALLPATH}/boot || die |
if [[ -n ${BOOTHDD} ]] |
860 |
umount ${INSTALLPATH} || die |
then |
861 |
swapoff ${SWAPHDD} || die |
umount ${INSTALLPATH}/boot || die |
862 |
} |
fi |
863 |
|
if [[ -n ${ROOTHDD} ]] |
864 |
install_umount_rootfs_single() |
then |
865 |
{ |
umount ${INSTALLPATH} || die |
866 |
cd / |
fi |
867 |
umount ${INSTALLPATH} || die |
if [[ -n ${SWAPHDD} ]] |
868 |
|
then |
869 |
|
swapoff ${SWAPHDD} || die |
870 |
|
fi |
871 |
} |
} |
872 |
|
|
873 |
install_do_reboot() |
install_do_reboot() |
879 |
# Install Main Scripts # |
# Install Main Scripts # |
880 |
################################################# |
################################################# |
881 |
|
|
882 |
run_install_normal() |
run_install() |
883 |
{ |
{ |
884 |
|
local method="$1" |
885 |
|
|
886 |
|
# setup install environment |
887 |
|
export KERNELOPTS="${DEFAULT_KERNELOPTS}" |
888 |
|
export GRUBLEGACYOPTS="${GRUBLEGACYOPTS}" |
889 |
|
export GRUB2OPTS="${GRUB2OPTS}" |
890 |
|
export GRUB2GFXPAYLOAD="${DEFAULT_GRUB2GFXPAYLOAD}" |
891 |
|
export FORMFACTOR="${DEFAULT_FORMFACTOR}" |
892 |
|
export FORMAT_FILESYSTEM="${DEFAULT_FORMAT_FILESYSTEM}" |
893 |
|
|
894 |
|
case "${method}" in |
895 |
|
auto) |
896 |
|
export INSTALL_METHOD="${method}" |
897 |
|
;; |
898 |
|
normal) |
899 |
|
export INSTALL_METHOD="${method}" |
900 |
|
;; |
901 |
|
single) |
902 |
|
export INSTALL_METHOD="${method}" |
903 |
|
;; |
904 |
|
*) |
905 |
|
echo "Unknown install method '${method}', aborting." |
906 |
|
exit 1 |
907 |
|
;; |
908 |
|
esac |
909 |
|
|
910 |
dialog_hardware_detection |
dialog_hardware_detection |
911 |
|
|
912 |
dialog_setup_hdd_partitions_manuell |
dialog_setup_hdd_partitions |
913 |
dialog_setup_hdd_format |
dialog_setup_hdd_format |
914 |
setup_hdd_format > /dev/null |
setup_hdd_format > /dev/null |
915 |
install_mount_rootfs |
install_mount_rootfs |
927 |
dialog_install_successful |
dialog_install_successful |
928 |
} |
} |
929 |
|
|
|
run_install_single() |
|
|
{ |
|
|
dialog_hardware_detection |
|
|
|
|
|
dialog_setup_hdd_partitions_manuell_single |
|
|
dialog_setup_hdd_format |
|
|
setup_hdd_format_single > /dev/null |
|
|
install_mount_rootfs_single |
|
|
(install_system_image > /tmp/install.log) 2> /tmp/install_errors.log | dialog_install_meter | dialog_install_system_image |
|
|
|
|
|
dialog_install_settings |
|
|
sleep 1 |
|
|
install_system_settings_single |
|
|
install_initrd_chroot |
|
|
|
|
|
dialog_install_bootsector |
|
|
install_bootsector_chroot |
|
|
|
|
|
install_umount_rootfs_single |
|
|
dialog_install_successful |
|
|
} |
|
|
|
|
|
run_install_auto() |
|
|
{ |
|
|
dialog_hardware_detection |
|
|
|
|
|
dialog_setup_hdd_partitions_auto |
|
|
dialog_setup_hdd_format |
|
|
setup_hdd_format_single > /dev/null |
|
|
install_mount_rootfs_single |
|
|
(install_system_image > /tmp/install.log) 2> /tmp/install_errors.log | dialog_install_meter | dialog_install_system_image |
|
|
|
|
|
dialog_install_settings |
|
|
sleep 1 |
|
|
install_system_settings_single |
|
|
install_initrd_chroot |
|
|
|
|
|
dialog_install_bootsector |
|
|
install_bootsector_chroot |
|
|
|
|
|
install_umount_rootfs_single |
|
|
dialog_install_successful |
|
|
} |
|
|
|
|
930 |
dialog_main |
dialog_main |
931 |
|
|
932 |
exit 0 |
exit 0 |