Magellan Linux

Diff of /trunk/installer-simple/bin/installer.sh.in

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

revision 2341 by niro, Fri Jan 3 14:38:46 2014 UTC revision 2398 by niro, Tue Jan 7 13:06:55 2014 UTC
# Line 16  INSTALLER_LIBDIR="%LIBDIR%" Line 16  INSTALLER_LIBDIR="%LIBDIR%"
16  # -> now in images.conf  # -> now in images.conf
17  CURRENTLINE=0  CURRENTLINE=0
18    
19    die()
20    {
21     echo "Error: $@"
22     exit 1
23    }
24    
25  # configuration  # configuration
26  if [ -e %SYSCONFDIR%/installer.conf ]  if [ -e %SYSCONFDIR%/installer.conf ]
27  then  then
# Line 46  source ${INSTALLER_LIBDIR}/functions/hwd Line 52  source ${INSTALLER_LIBDIR}/functions/hwd
52  VERSION="%VERSIONTAG%"  VERSION="%VERSIONTAG%"
53  TITLE="${DEFAULT_TITLE} - ${VERSION}"  TITLE="${DEFAULT_TITLE} - ${VERSION}"
54    
55  CDPATH="${DEFAULT_CDPATH}"  CDROOT="${DEFAULT_CDROOT}"
56  INSTALLPATH="${DEFAULT_INSTALLPATH}"  INSTALLROOT="${DEFAULT_INSTALLROOT}"
57    
58  # standard kernel opts  # standard kernel opts
59  KERNELOPTS="quiet video=1024x768"  KERNELOPTS="quiet video=1024x768"
# Line 70  FORMAT_FILESYSTEM="${DEFAULT_FILESYSTEM} Line 76  FORMAT_FILESYSTEM="${DEFAULT_FILESYSTEM}
76  #  DIALOG BOXEN #  #  DIALOG BOXEN #
77  #################################################  #################################################
78    
 die()  
 {  
  echo "Error: $@"  
  exit 1  
 }  
   
79  dialog_die()  dialog_die()
80  {  {
81   ERROR="$1"   ERROR="$1"
# Line 86  dialog_die() Line 86  dialog_die()
86    
87  dialog_warning()  dialog_warning()
88  {  {
89   dialog \   local retval
90   --backtitle "${TITLE}" \  
91   --colors \   yesnobox $"\Z1 !!! Warning !!! \Zn\n\n\This harddrive will be irreversibly erased.\n\n\Do you want to continue ?"
92   --defaultno \   retval=$?
93   --yesno "\Z1 !!! Achtung !!! \Zn\n\n\   if [[ ${retval} -eq 1 ]]
  Diese Festplatte wird unwiederruflich geloescht werden.\n\n\  
  Soll ich wirklich fortfahren ?" 10 70  
  RES=$?  
  if [[ ${RES} -eq 1 ]]  
94   then   then
95   clear   clear
96   echo "Der Vorgang wurde abgebrochen."   echo $"The process was aborted."
97   exit 1   exit 1
98   fi   fi
99  }  }
# Line 180  dialog_hardware_detection() Line 176  dialog_hardware_detection()
176   local i   local i
177   local hwtmp   local hwtmp
178    
179   if [ -x $(which mktemp &> /dev/null) ]   if [ -x $(type -P mktemp) ]
180   then   then
181   hwtmp="$(mktemp)"   hwtmp="$(mktemp)"
182   else   else
183   hwtmp="/tmp/hwtmp.sh"   hwtmp="/tmp/hwtmp.sh"
184   fi   fi
185    
186   [[ ! -z ${installdevs} ]] && installdevs=""   run_hardware_detection_disks
187    
188   echo "dialog \\"  > ${hwtmp}   echo "dialog \\"  > ${hwtmp}
189   echo "--backtitle \"${TITLE}\" \\" >> ${hwtmp}   echo "--backtitle \"${TITLE}\" \\" >> ${hwtmp}
# Line 197  dialog_hardware_detection() Line 193  dialog_hardware_detection()
193   echo "--msgbox \"Gefundene Hardware:\n\n \\" >> ${hwtmp}   echo "--msgbox \"Gefundene Hardware:\n\n \\" >> ${hwtmp}
194   echo " Festplatten:\n \\" >> ${hwtmp}   echo " Festplatten:\n \\" >> ${hwtmp}
195    
196   if [[ ! -z ${scsidisks} ]]   if [[ ! -z ${ALL_DISKS} ]]
197   then   then
198   for i in ${scsidisks}   for i in ${ALL_DISKS}
199   do   do
200   if [[ ${i} != ${cdromdev} ]]   echo " \\Z3${i}\\Zn\n \\" >> ${hwtmp}
  then  
  echo " \\Z7SCSI: \\Z3${i}\\Zn\n \\" >> ${hwtmp}  
  installdevs="${installdevs} ${i}"  
  fi  
201   done   done
202   fi   fi
203    
204   if [[ ! -z ${idedisks} ]]   if [[ ! -z ${ALL_CDROMS} ]]
205   then   then
206   for i in ${idedisks}   echo " \n \\" >> ${hwtmp}
207     echo " CDROM Laufwerke:\n \\" >> ${hwtmp}
208     for i in ${ALL_CDROMS}
209   do   do
210   if [[ ${i} != ${cdromdev} ]]   echo " \\Z3${i}\\Zn\n \\" >> ${hwtmp}
  then  
  echo " \\Z7IDE:  \\Z3${i}\\Zn\n \\" >> ${hwtmp}  
  installdevs="${installdevs} ${i}"  
  fi  
211   done   done
212   fi   fi
213    
  if [[ ! -z ${cdromdev} ]]  
  then  
  echo " \n \\" >> ${hwtmp}  
  echo " \\Z7andere Laufwerke:\n \\" >> ${hwtmp}  
  echo " CDROM: \\Z3${cdromdev}\\Zn\n \\" >> ${hwtmp}  
  fi  
   
214   # other devices   # other devices
215   run_hardware_detection   run_hardware_detection
216   case "${SPECIALDEVICE}" in   case "${SPECIALDEVICE}" in
# Line 367  dialog_setup_hdd_partitions_auto() Line 350  dialog_setup_hdd_partitions_auto()
350   fi   fi
351  }  }
352    
353    run_hardware_detection_disks()
354    {
355     local bootdev
356    
357     # all disks but exclude ramdisks
358     export ALL_DISKS=$(get_hwinfo disk | sed '/\/dev\/ram[0-9].*/d')
359     # remove the boot device from ALL_DISKS if it was an usbstick
360     if [[ $(grep '[[:space:]]/mnt/cdrom[[:space:]]' /proc/mounts | cut -d' ' -f3) != iso9660 ]]
361     then
362     bootdev="$(grep '[[:space:]]/mnt/cdrom[[:space:]]' /proc/mounts | cut -d' ' -f1 | sed 's:[0-9]::g')"
363     export ALL_DISKS=$(echo "${ALL_DISKS}" | grep -v "${bootdev}")
364     fi
365     export ALL_CDROMS="$(get_hwinfo cdrom)"
366    }
367    
368  dialog_setup_hdd_create_partitions()  dialog_setup_hdd_create_partitions()
369  {  {
370   dialog \   dialog \
# Line 637  setup_hdd_format_flash() Line 635  setup_hdd_format_flash()
635  install_mount_rootfs()  install_mount_rootfs()
636  {  {
637   swapon ${SWAPHDD} || dialog_die   swapon ${SWAPHDD} || dialog_die
638   mount ${ROOTHDD} ${INSTALLPATH} || dialog_die   mount ${ROOTHDD} ${INSTALLROOT} || dialog_die
639   install -d ${INSTALLPATH}/boot || dialog_die   install -d ${INSTALLROOT}/boot || dialog_die
640   mount ${BOOTHDD} ${INSTALLPATH}/boot || dialog_die   mount ${BOOTHDD} ${INSTALLROOT}/boot || dialog_die
641   cd ${INSTALLPATH} || dialog_die   cd ${INSTALLROOT} || dialog_die
642  }  }
643    
644  install_mount_rootfs_flash()  install_mount_rootfs_flash()
645  {  {
646   mount ${ROOTHDD} ${INSTALLPATH} || dialog_die   mount ${ROOTHDD} ${INSTALLROOT} || dialog_die
647   install -d ${INSTALLPATH}/boot || dialog_die   install -d ${INSTALLROOT}/boot || dialog_die
648   cd ${INSTALLPATH} || dialog_die   cd ${INSTALLROOT} || dialog_die
649  }  }
650    
651  install_system_image()  install_system_image()
652  {  {
653   tar xvjpf ${CDPATH}/system/${CDIMAGENAME} -C ${INSTALLPATH}   tar xvjpf ${CDROOT}/system/${CDIMAGENAME} -C ${INSTALLROOT}
654  }  }
655    
656  install_bootsector_chroot()  install_bootsector_chroot()
657  {  {
658   local my_roothdd   local my_roothdd
659   local grubconf=${INSTALLPATH}/boot/grub/grub.conf   local grubconf=${INSTALLROOT}/boot/grub/grub.conf
660   local grub2conf=/boot/grub/grub.cfg   local grub2conf=/boot/grub/grub.cfg
661    
662   # check for grub2   # check for grub2
663   if [[ -f ${INSTALLPATH}/sbin/grub-mkconfig ]]   if [[ -f ${INSTALLROOT}/sbin/grub-mkconfig ]]
664   then   then
665   # needed by grub-mkconfig on the first run   # needed by grub-mkconfig on the first run
666   if [[ ! -f ${INSTALLPATH}/boot/grub/video.lst ]]   if [[ ! -f ${INSTALLROOT}/boot/grub/video.lst ]]
667   then   then
668   install -m0644 ${INSTALLPATH}/lib/grub/*/video.lst ${INSTALLPATH}/boot/grub/video.lst || dialog_die   install -m0644 ${INSTALLROOT}/lib/grub/*/video.lst ${INSTALLROOT}/boot/grub/video.lst || dialog_die
669   fi   fi
670    
671   # set kernelopts   # set kernelopts
672   if [[ -f ${INSTALLPATH}/etc/conf.d/grub ]]   if [[ -f ${INSTALLROOT}/etc/conf.d/grub ]]
673   then   then
674   sed -i "s:^\(export GRUB_CMDLINE_LINUX_DEFAULT=\).*:\1\"${KERNELOPTS}\":" ${INSTALLPATH}/etc/conf.d/grub || dialog_die   sed -i "s:^\(export GRUB_CMDLINE_LINUX_DEFAULT=\).*:\1\"${KERNELOPTS}\":" ${INSTALLROOT}/etc/conf.d/grub || dialog_die
675   else   else
676   echo "export GRUB_CMDLINE_LINUX_DEFAULT=\"${KERNELOPTS}\"" >  ${INSTALLPATH}/etc/conf.d/grub || dialog_die   echo "export GRUB_CMDLINE_LINUX_DEFAULT=\"${KERNELOPTS}\"" >  ${INSTALLROOT}/etc/conf.d/grub || dialog_die
677   fi   fi
678   echo 'grub-mkdevicemap' > ${INSTALLPATH}/root/.installrc || dialog_die   echo 'grub-mkdevicemap' > ${INSTALLROOT}/root/.installrc || dialog_die
679   echo "LC_ALL=C grub-mkconfig -o ${grub2conf}  &> /dev/null" >> ${INSTALLPATH}/root/.installrc || dialog_die   echo "LC_ALL=C grub-mkconfig -o ${grub2conf}  &> /dev/null" >> ${INSTALLROOT}/root/.installrc || dialog_die
680   echo "grub-install --no-floppy ${HDD} &> /dev/null" >> ${INSTALLPATH}/root/.installrc || dialog_die   echo "grub-install --no-floppy ${HDD} &> /dev/null" >> ${INSTALLROOT}/root/.installrc || dialog_die
681   echo "exit 0" >> ${INSTALLPATH}/root/.installrc || dialog_die   echo "exit 0" >> ${INSTALLROOT}/root/.installrc || dialog_die
682    
683   # grub-legacy   # grub-legacy
684   else   else
685   ### grubconf schreiben   ### grubconf schreiben
686   source ${INSTALLPATH}/boot/kernelversion   source ${INSTALLROOT}/boot/kernelversion
687    
688   #for alx only   #for alx only
689   if [ -e ${INSTALLPATH}/etc/alx_version ]   if [ -e ${INSTALLROOT}/etc/alx_version ]
690   then   then
691   OLD_ALXVER="${ALXVER}"   OLD_ALXVER="${ALXVER}"
692   source ${INSTALLPATH}/etc/alx_version   source ${INSTALLROOT}/etc/alx_version
693   KRNVER="ALX-${ALXVER}"   KRNVER="ALX-${ALXVER}"
694   ALXVER="${OLD_ALXVER}"   ALXVER="${OLD_ALXVER}"
695   fi   fi
# Line 712  install_bootsector_chroot() Line 710  install_bootsector_chroot()
710   echo "default 0" >> ${grubconf} || dialog_die   echo "default 0" >> ${grubconf} || dialog_die
711   echo "timeout 3" >> ${grubconf} || dialog_die   echo "timeout 3" >> ${grubconf} || dialog_die
712   # using current root password   # using current root password
713   echo "password --md5 $(cat ${INSTALLPATH}/etc/shadow | grep root | cut -d: -f2)"  >> ${grubconf} || dialog_die   echo "password --md5 $(cat ${INSTALLROOT}/etc/shadow | grep root | cut -d: -f2)"  >> ${grubconf} || dialog_die
714    
715   echo  >> ${grubconf} || dialog_die   echo  >> ${grubconf} || dialog_die
716   echo "# normal boot" >> ${grubconf} || dialog_die   echo "# normal boot" >> ${grubconf} || dialog_die
# Line 746  install_bootsector_chroot() Line 744  install_bootsector_chroot()
744   fi   fi
745    
746   # bootsector schreiben chrooted schreiben (lfs/magellan)   # bootsector schreiben chrooted schreiben (lfs/magellan)
747   cat > ${INSTALLPATH}/root/.installrc << CHROOTEOF   cat > ${INSTALLROOT}/root/.installrc << CHROOTEOF
748  /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
749  root (hd0,0)  root (hd0,0)
750  setup (hd0)  setup (hd0)
# Line 757  CHROOTEOF Line 755  CHROOTEOF
755   fi   fi
756    
757   ## enter chroot   ## enter chroot
758   mount -t proc proc ${INSTALLPATH}/proc   mount -t proc proc ${INSTALLROOT}/proc
759   mount -t sysfs sysfs ${INSTALLPATH}/sys   mount -t sysfs sysfs ${INSTALLROOT}/sys
760   mount -o bind /dev ${INSTALLPATH}/dev   mount -o bind /dev ${INSTALLROOT}/dev
761   chroot ${INSTALLPATH} /bin/bash --rcfile /root/.installrc -i   chroot ${INSTALLROOT} /bin/bash --rcfile /root/.installrc -i
762   umount ${INSTALLPATH}/proc   umount ${INSTALLROOT}/proc
763   umount ${INSTALLPATH}/sys   umount ${INSTALLROOT}/sys
764   umount ${INSTALLPATH}/dev   umount ${INSTALLROOT}/dev
765   rm ${INSTALLPATH}/root/.installrc   rm ${INSTALLROOT}/root/.installrc
766  }  }
767    
768  is_initrd_supported()  is_initrd_supported()
769  {  {
770   # only generate initrds if the cmd exists   # only generate initrds if the cmd exists
771   [[ -x ${INSTALLPATH}/sbin/mkinitrd ]] && return 0   [[ -x ${INSTALLROOT}/sbin/mkinitrd ]] && return 0
772   return 1   return 1
773  }  }
774    
# Line 801  install_initrd_chroot() Line 799  install_initrd_chroot()
799   fi   fi
800    
801   # install an appropriate uvesafb.conf   # install an appropriate uvesafb.conf
802   install -d ${INSTALLPATH}/etc/modprobe.d || dialog_die   install -d ${INSTALLROOT}/etc/modprobe.d || dialog_die
803   echo "options uvesafb mode_option=1024x768-32@60 scroll=ywrap" > ${INSTALLPATH}/etc/modprobe.d/uvesafb.conf || dialog_die   echo "options uvesafb mode_option=1024x768-32@60 scroll=ywrap" > ${INSTALLROOT}/etc/modprobe.d/uvesafb.conf || dialog_die
804    
805   # install an appropriate viafb.conf   # install an appropriate viafb.conf
806   echo "options viafb viafb_mode=1024x768 viafb_refresh=60" > ${INSTALLPATH}/etc/modprobe.d/viafb.conf || dialog_die   echo "options viafb viafb_mode=1024x768 viafb_refresh=60" > ${INSTALLROOT}/etc/modprobe.d/viafb.conf || dialog_die
807    
808   # install an appropriate i810fb.conf   # install an appropriate i810fb.conf
809   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 || dialog_die   echo "options i810fb xres=1024 yres=768 bpp=16 mtrr=1 hsync1=30 hsync2=62 vsync1=30 vsync2=60"  > ${INSTALLROOT}/etc/modprobe.d/i810fb.conf || dialog_die
810    
811   cat > ${INSTALLPATH}/root/.installrc << CHROOTEOF   cat > ${INSTALLROOT}/root/.installrc << CHROOTEOF
812  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  mkinitrd -f /boot/$(readlink /boot/initrd) $(readlink /boot/vmlinuz | sed "s:kernel-::g") > /dev/null  mkinitrd -f /boot/$(readlink /boot/initrd) $(readlink /boot/vmlinuz | sed "s:kernel-::g") > /dev/null
814  exit 0  exit 0
815  CHROOTEOF  CHROOTEOF
816    
817   ## enters chroot   ## enters chroot
818   mount -t proc proc ${INSTALLPATH}/proc   mount -t proc proc ${INSTALLROOT}/proc
819   mount -t sysfs sysfs ${INSTALLPATH}/sys   mount -t sysfs sysfs ${INSTALLROOT}/sys
820   mount -o bind /dev ${INSTALLPATH}/dev   mount -o bind /dev ${INSTALLROOT}/dev
821   chroot ${INSTALLPATH} /bin/bash --rcfile /root/.installrc -i   chroot ${INSTALLROOT} /bin/bash --rcfile /root/.installrc -i
822   umount ${INSTALLPATH}/proc   umount ${INSTALLROOT}/proc
823   umount ${INSTALLPATH}/sys   umount ${INSTALLROOT}/sys
824   umount ${INSTALLPATH}/dev   umount ${INSTALLROOT}/dev
825   rm ${INSTALLPATH}/root/.installrc   rm ${INSTALLROOT}/root/.installrc
826  }  }
827    
828  is_uuid_supported()  is_uuid_supported()
829  {  {
830   if [[ -x $(which busybox.mkinitrd &> /dev/null) ]]   if [[ -x $(type -P busybox.mkinitrd) ]]
831   then   then
832   # only detect uuids if supported   # only detect uuids if supported
833   if [[ ! -z $(busybox.mkinitrd | grep blkid) ]]   if [[ ! -z $(busybox.mkinitrd | grep blkid) ]]
# Line 865  install_system_settings() Line 863  install_system_settings()
863   # schreibe fstab   # schreibe fstab
864   if is_uuid_supported   if is_uuid_supported
865   then   then
866   echo -e "UUID=$(get_uuid ${BOOTHDD})\t/boot\t${FORMAT_FILESYSTEM}\tnoatime,noauto\t1 1" > ${INSTALLPATH}/etc/fstab || dialog_die   echo -e "UUID=$(get_uuid ${BOOTHDD})\t/boot\t${FORMAT_FILESYSTEM}\tnoatime,noauto\t1 1" > ${INSTALLROOT}/etc/fstab || dialog_die
867   echo -e "UUID=$(get_uuid ${ROOTHDD})\t/\t${FORMAT_FILESYSTEM}\tnoatime\t0 0" >> ${INSTALLPATH}/etc/fstab || dialog_die   echo -e "UUID=$(get_uuid ${ROOTHDD})\t/\t${FORMAT_FILESYSTEM}\tnoatime\t0 0" >> ${INSTALLROOT}/etc/fstab || dialog_die
868   else   else
869   echo -e "${BOOTHDD}\t/boot\t${FORMAT_FILESYSTEM}\tnoatime,noauto\t1 1" > ${INSTALLPATH}/etc/fstab || dialog_die   echo -e "${BOOTHDD}\t/boot\t${FORMAT_FILESYSTEM}\tnoatime,noauto\t1 1" > ${INSTALLROOT}/etc/fstab || dialog_die
870   echo -e "${ROOTHDD}\t/\t${FORMAT_FILESYSTEM}\tnoatime\t0 0" >> ${INSTALLPATH}/etc/fstab || dialog_die   echo -e "${ROOTHDD}\t/\t${FORMAT_FILESYSTEM}\tnoatime\t0 0" >> ${INSTALLROOT}/etc/fstab || dialog_die
871   fi   fi
872   # 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
873   #echo -e "UUID='$(get_uuid ${SWAPHDD})'\tswap\tswap\tpri=1\t0 0" >> ${INSTALLPATH}/etc/fstab || dialog_die   #echo -e "UUID='$(get_uuid ${SWAPHDD})'\tswap\tswap\tpri=1\t0 0" >> ${INSTALLROOT}/etc/fstab || dialog_die
874   echo -e "proc\t/proc\tproc\tdefaults\t0 0" >> ${INSTALLPATH}/etc/fstab || dialog_die   echo -e "proc\t/proc\tproc\tdefaults\t0 0" >> ${INSTALLROOT}/etc/fstab || dialog_die
875   echo -e "shm\t/dev/shm\ttmpfs\tdefaults\t0 0" >> ${INSTALLPATH}/etc/fstab || dialog_die   echo -e "shm\t/dev/shm\ttmpfs\tdefaults\t0 0" >> ${INSTALLROOT}/etc/fstab || dialog_die
876    
877   # install network config skeleton   # install network config skeleton
878   install -m0644 ${INSTALLPATH}/etc/alxconfig-ng/skel/net/net.eth0 ${INSTALLPATH}/etc/conf.d/ || dialog_die   install -m0644 ${INSTALLROOT}/etc/alxconfig-ng/skel/net/net.eth0 ${INSTALLROOT}/etc/conf.d/ || dialog_die
879    
880   # intel framebufer quirk   # intel framebufer quirk
881   if [[ -e /proc/fb ]]   if [[ -e /proc/fb ]]
# Line 887  install_system_settings() Line 885  install_system_settings()
885   fbdev=$(grep 'inteldrmfb' /proc/fb | sed 's:\([0-9]\).*:\1:')   fbdev=$(grep 'inteldrmfb' /proc/fb | sed 's:\([0-9]\).*:\1:')
886   if [[ ${fbdev} != 0 ]]   if [[ ${fbdev} != 0 ]]
887   then   then
888   sed -i "s:^\(SPLASH_DEV=\).*:\1\"/dev/fb${fbdev}\":" ${INSTALLPATH}/etc/splash/splash.conf || dialog_die   sed -i "s:^\(SPLASH_DEV=\).*:\1\"/dev/fb${fbdev}\":" ${INSTALLROOT}/etc/splash/splash.conf || dialog_die
889   fi   fi
890   fi   fi
891   fi   fi
# Line 898  install_system_settings_flash() Line 896  install_system_settings_flash()
896   # schreibe fstab   # schreibe fstab
897   if is_uuid_supported   if is_uuid_supported
898   then   then
899   echo -e "UUID=$(get_uuid ${ROOTHDD})\t/\t${FORMAT_FILESYSTEM}\tnoatime\t0 0" > ${INSTALLPATH}/etc/fstab || dialog_die   echo -e "UUID=$(get_uuid ${ROOTHDD})\t/\t${FORMAT_FILESYSTEM}\tnoatime\t0 0" > ${INSTALLROOT}/etc/fstab || dialog_die
900   else   else
901   echo -e "${ROOTHDD}\t/\t${FORMAT_FILESYSTEM}\tnoatime\t0 0" > ${INSTALLPATH}/etc/fstab || dialog_die   echo -e "${ROOTHDD}\t/\t${FORMAT_FILESYSTEM}\tnoatime\t0 0" > ${INSTALLROOT}/etc/fstab || dialog_die
902   fi   fi
903   echo -e "proc\t/proc\tproc\tdefaults\t0 0" >> ${INSTALLPATH}/etc/fstab || dialog_die   echo -e "proc\t/proc\tproc\tdefaults\t0 0" >> ${INSTALLROOT}/etc/fstab || dialog_die
904   echo -e "shm\t/dev/shm\ttmpfs\tdefaults\t0 0" >> ${INSTALLPATH}/etc/fstab || dialog_die   echo -e "shm\t/dev/shm\ttmpfs\tdefaults\t0 0" >> ${INSTALLROOT}/etc/fstab || dialog_die
905  }  }
906    
907  install_umount_rootfs()  install_umount_rootfs()
908  {  {
909   cd /   cd /
910   umount ${INSTALLPATH}/boot || dialog_die   umount ${INSTALLROOT}/boot || dialog_die
911   umount ${INSTALLPATH} || dialog_die   umount ${INSTALLROOT} || dialog_die
912   swapoff ${SWAPHDD} || dialog_die   swapoff ${SWAPHDD} || dialog_die
913  }  }
914    
915  install_umount_rootfs_flash()  install_umount_rootfs_flash()
916  {  {
917   cd /   cd /
918   umount ${INSTALLPATH} || dialog_die   umount ${INSTALLROOT} || dialog_die
919  }  }
920    
921  install_do_reboot()  install_do_reboot()

Legend:
Removed from v.2341  
changed lines
  Added in v.2398