--- alx-src/trunk/alxinstall-ng/bin/alxinstall-ng.sh 2005/04/18 19:01:41 259 +++ alx-src/trunk/alxinstall-ng/bin/alxinstall-ng.sh 2005/04/19 17:24:57 268 @@ -1,6 +1,6 @@ #!/bin/sh # -# $Header: /home/cvsd/alx-cvs/alx-src/alxinstall-ng/bin/alxinstall-ng.sh,v 1.1.1.1 2005-04-18 19:01:41 niro Exp $ +# $Header: /home/cvsd/alx-cvs/alx-src/alxinstall-ng/bin/alxinstall-ng.sh,v 1.4 2005-04-19 17:24:57 niro Exp $ # # AutoSta_LX Installation Script # version: 0.8b @@ -321,7 +321,7 @@ "1" "AutoSta_LX installieren" \ "2" "Uebersicht gefundener Laufwerke" \ "3" "Beenden und neustarten" \ - "4" "Beenden ohne neustarten" ` + "4" "Beenden und eine Shell starten" ` RES=$? if [ "$RES" == "1" ];then exit 1 @@ -338,6 +338,8 @@ ;; "3") install_do_reboot ;; + "4") /bin/bash --login -i + ;; esac fi done @@ -498,7 +500,7 @@ fi echo -e "default 0" > $INSTALLPATH/boot/grub/grub.conf || die - echo -e "timeout 03" >> $INSTALLPATH/boot/grub/grub.conf ||die + echo -e "timeout 0" >> $INSTALLPATH/boot/grub/grub.conf ||die #no support for splash image in 6.1-r2 #echo -e "splashimage=(hd0,0)/boot/grub/splash.xpm.gz" >> $INSTALLPATH/boot/grub/grub.conf || die @@ -524,7 +526,7 @@ setup (hd0) quit EOF -exit +exit 0 CHROOTEOF fi @@ -537,14 +539,18 @@ setup (hd0) quit EOF -exit +exit 0 CHROOTEOF fi ##enters chroot - mount -t proc proc $INSTALLPATH/proc - chroot $INSTALLPATH /bin/bash + mount -t proc none $INSTALLPATH/proc + # bind /dev to get the devices right, + # if bootet from a 2.6 kernel with udev + mount -o bind /dev $INSTALLPATH/dev + chroot $INSTALLPATH /bin/bash --rcfile /root/.bashrc -i umount $INSTALLPATH/proc + umount $INSTALLPATH/dev rm $INSTALLPATH/root/.bashrc } @@ -564,7 +570,7 @@ install_system_settings(){ ### schreibe fstab - echo -e "$BOOTHDD\t/\text3\tnoatime,noauto\t1 1" > $INSTALLPATH/etc/fstab || die + echo -e "$BOOTHDD\t/boot\text3\tnoatime,noauto\t1 1" > $INSTALLPATH/etc/fstab || die echo -e "$ROOTHDD\t/\text3\tnoatime\t0 0" >> $INSTALLPATH/etc/fstab || die echo -e "$SWAPHDD\tswap\tswap\tpri=1\t0 0" >> $INSTALLPATH/etc/fstab || die echo -e "none\t/proc\tproc\tdefaults\t0 0" >> $INSTALLPATH/etc/fstab || die