Magellan Linux

Diff of /alx-src/trunk/alxinstall-ng/bin/alxinstall-ng.sh.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 6816 by niro, Thu Jul 23 08:47:44 2015 UTC revision 6821 by niro, Thu Jul 23 08:57:15 2015 UTC
# Line 1  Line 1 
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    
# Line 52  FORMFACTOR="desktop" Line 42  FORMFACTOR="desktop"
42  FORMAT_FILESYSTEM="ext4"  FORMAT_FILESYSTEM="ext4"
43    
44  #################################################  #################################################
45  #  DIALOG BOXEN #  #  DIALOG BOXES #
46  #################################################  #################################################
47    
48  die()  die()
# Line 375  dialog_install_meter() Line 365  dialog_install_meter()
365   return 0   return 0
366  }  }
367    
   
368  dialog_install_bootsector()  dialog_install_bootsector()
369  {  {
370   dialog \   dialog \
# Line 432  dialog_main() Line 421  dialog_main()
421  }  }
422    
423  #################################################  #################################################
424  # Install Komandos #  # Install Commands #
425  #################################################  #################################################
426  run_hardware_detection()  run_hardware_detection()
427  {  {
# Line 747  install_bootsector_chroot() Line 736  install_bootsector_chroot()
736   echo "initrd /boot/${KRNINITRD}" >> ${grubconf} || die   echo "initrd /boot/${KRNINITRD}" >> ${grubconf} || die
737   fi   fi
738    
739   # bootsector schreiben chrooted schreiben (lfs/magellan)   # write bootsector chrooted (lfs/magellan)
740   cat > ${INSTALLPATH}/root/.installrc << CHROOTEOF   cat > ${INSTALLPATH}/root/.installrc << CHROOTEOF
741  /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
742  root (hd0,0)  root (hd0,0)
# Line 897  install_system_settings() Line 886  install_system_settings()
886    
887  install_system_settings_simple()  install_system_settings_simple()
888  {  {
889   # schreibe fstab   # write fstab
890   if is_uuid_supported   if is_uuid_supported
891   then   then
892   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
# Line 928  install_do_reboot() Line 917  install_do_reboot()
917  }  }
918    
919  #################################################  #################################################
920  #     Install Ablauf Scripte #  #     Install Main Scripts #
921  #################################################  #################################################
922    
923  run_install_normal()  run_install_normal()

Legend:
Removed from v.6816  
changed lines
  Added in v.6821