1 |
#!/bin/sh |
#!/bin/sh |
2 |
# |
# $Id$ |
|
# $Header: /home/cvsd/alx-cvs/alx-src/alxinstall-ng/bin/alxinstall-ng.sh,v 1.15 2008-06-28 00:37:45 niro Exp $ |
|
|
# |
|
|
# AutoSta_LX Installation Script |
|
|
# |
|
|
# Niels Rogalla <niro@magellan-linux.de> |
|
|
# <rogalla@augusta-bochum.de> |
|
|
# |
|
|
# |
|
|
# Install Navigation Gui |
|
|
# |
|
3 |
|
|
4 |
# ignore environment! |
# ignore environment! |
5 |
LC_ALL=C |
LC_ALL=C |
6 |
|
|
7 |
MLIBDIR="/usr/lib/alxinstall-ng" |
MLIBDIR="/usr/lib/alxinstall-ng" |
8 |
|
|
9 |
#images: (get ${CDIMAGENAME}) |
# images: (get ${CDIMAGENAME}) |
10 |
source /mnt/cdrom/system/images.conf |
source /mnt/cdrom/system/images.conf |
11 |
|
|
12 |
# includes |
# includes |
13 |
source ${MLIBDIR}/functions/hwdetection.sh |
source ${MLIBDIR}/functions/hwdetection.sh |
14 |
|
|
15 |
### System/Config Version |
### System/Config Version |
16 |
VERSION="%VERSIONTAG%" |
VERSION="@@VERSION@@" |
17 |
TITLE="alxinstall-ng - ${VERSION}" |
TITLE="alxinstall-ng - ${VERSION}" |
18 |
|
|
19 |
CDPATH="/mnt/cdrom" |
CDPATH="/mnt/cdrom" |
20 |
INSTALLPATH="/mnt/magellan" |
INSTALLPATH="/mnt/magellan" |
21 |
|
|
22 |
### WICHTIG: anzahl lines in der autosta_lx.tar.gz -1 |
### linecount of system.tar.gz -1 ! |
23 |
CURRENTLINE=0 |
CURRENTLINE=0 |
24 |
#TOTALLINES=11072 # -> now in images.conf |
#TOTALLINES=11072 # -> now in images.conf |
25 |
|
|
42 |
FORMAT_FILESYSTEM="ext4" |
FORMAT_FILESYSTEM="ext4" |
43 |
|
|
44 |
################################################# |
################################################# |
45 |
# DIALOG BOXEN # |
# DIALOG BOXES # |
46 |
################################################# |
################################################# |
47 |
|
|
48 |
die() |
die() |
365 |
return 0 |
return 0 |
366 |
} |
} |
367 |
|
|
|
|
|
368 |
dialog_install_bootsector() |
dialog_install_bootsector() |
369 |
{ |
{ |
370 |
dialog \ |
dialog \ |
421 |
} |
} |
422 |
|
|
423 |
################################################# |
################################################# |
424 |
# Install Komandos # |
# Install Commands # |
425 |
################################################# |
################################################# |
426 |
run_hardware_detection() |
run_hardware_detection() |
427 |
{ |
{ |
428 |
local hwinfo |
local hwinfo |
|
|
|
429 |
hwinfo="$(hwinfo --bios --storage --pci --gfxcard --sys)" |
hwinfo="$(hwinfo --bios --storage --pci --gfxcard --sys)" |
430 |
|
|
431 |
# check for special devices/clients: |
# check for special devices/clients: |
735 |
echo "initrd /boot/${KRNINITRD}" >> ${grubconf} || die |
echo "initrd /boot/${KRNINITRD}" >> ${grubconf} || die |
736 |
fi |
fi |
737 |
|
|
738 |
# bootsector schreiben chrooted schreiben (lfs/magellan) |
# write bootsector chrooted (lfs/magellan) |
739 |
cat > ${INSTALLPATH}/root/.installrc << CHROOTEOF |
cat > ${INSTALLPATH}/root/.installrc << CHROOTEOF |
740 |
/usr/sbin/grub --no-floppy --batch << "EOF" 1> /dev/null 2> /dev/null |
/usr/sbin/grub --no-floppy --batch << "EOF" 1> /dev/null 2> /dev/null |
741 |
root (hd0,0) |
root (hd0,0) |
885 |
|
|
886 |
install_system_settings_simple() |
install_system_settings_simple() |
887 |
{ |
{ |
888 |
# schreibe fstab |
# write fstab |
889 |
if is_uuid_supported |
if is_uuid_supported |
890 |
then |
then |
891 |
echo -e "UUID=$(get_uuid ${ROOTHDD})\t/\t${FORMAT_FILESYSTEM}\tnoatime\t0 0" > ${INSTALLPATH}/etc/fstab || die |
echo -e "UUID=$(get_uuid ${ROOTHDD})\t/\t${FORMAT_FILESYSTEM}\tnoatime\t0 0" > ${INSTALLPATH}/etc/fstab || die |
916 |
} |
} |
917 |
|
|
918 |
################################################# |
################################################# |
919 |
# Install Ablauf Scripte # |
# Install Main Scripts # |
920 |
################################################# |
################################################# |
921 |
|
|
922 |
run_install_normal() |
run_install_normal() |