1 |
#!/bin/sh |
#!/bin/sh |
2 |
# |
# |
3 |
# $Header: /home/cvsd/alx-cvs/alx-src/alxinstall-ng/bin/alxinstall-ng.sh,v 1.11 2008-06-27 23:31:48 niro Exp $ |
# $Header: /home/cvsd/alx-cvs/alx-src/alxinstall-ng/bin/alxinstall-ng.sh,v 1.14 2008-06-27 23:38:45 niro Exp $ |
4 |
# |
# |
5 |
# AutoSta_LX Installation Script |
# AutoSta_LX Installation Script |
6 |
# |
# |
418 |
setup (hd0) |
setup (hd0) |
419 |
quit |
quit |
420 |
EOF |
EOF |
|
echo "MODULES=\"ext3 amd74xx piix sis5513 via82cxxx\" > /etc/conf.d/mkinitrd |
|
|
mkinitrd -f /boot/$(readlink /boot/initrd) $(readlink /boot/vmlinuz | sed "s:kernel-::g") |
|
421 |
exit 0 |
exit 0 |
422 |
CHROOTEOF |
CHROOTEOF |
423 |
|
|
424 |
## enters chroot |
## enters chroot |
425 |
mount -t proc proc ${INSTALLPATH}/proc |
mount -t proc proc ${INSTALLPATH}/proc |
426 |
mount -t sysfs sysfs ${INSTALLPATH}/sysfs |
mount -t sysfs sysfs ${INSTALLPATH}/sys |
427 |
|
mount -o bind /dev ${INSTALLPATH}/dev |
428 |
|
chroot ${INSTALLPATH} /bin/bash --rcfile /root/.bashrc -i |
429 |
|
umount ${INSTALLPATH}/proc |
430 |
|
umount ${INSTALLPATH}/sys |
431 |
|
umount ${INSTALLPATH}/dev |
432 |
|
rm ${INSTALLPATH}/root/.bashrc |
433 |
|
} |
434 |
|
|
435 |
|
install_mkinitrd_chroot() |
436 |
|
{ |
437 |
|
cat > ${INSTALLPATH}/root/.bashrc << CHROOTEOF |
438 |
|
echo "MODULES=\"ext3 amd74xx piix sis5513 via82cxxx\"" > /etc/conf.d/mkinitrd |
439 |
|
mkinitrd -f /boot/$(readlink /boot/initrd) $(readlink /boot/vmlinuz | sed "s:kernel-::g") > /dev/null |
440 |
|
exit 0 |
441 |
|
CHROOTEOF |
442 |
|
|
443 |
|
## enters chroot |
444 |
|
mount -t proc proc ${INSTALLPATH}/proc |
445 |
|
mount -t sysfs sysfs ${INSTALLPATH}/sys |
446 |
mount -o bind /dev ${INSTALLPATH}/dev |
mount -o bind /dev ${INSTALLPATH}/dev |
447 |
chroot ${INSTALLPATH} /bin/bash --rcfile /root/.bashrc -i |
chroot ${INSTALLPATH} /bin/bash --rcfile /root/.bashrc -i |
448 |
umount ${INSTALLPATH}/proc |
umount ${INSTALLPATH}/proc |
508 |
dialog_install_settings |
dialog_install_settings |
509 |
sleep 1 |
sleep 1 |
510 |
install_system_settings |
install_system_settings |
511 |
|
install_mkinitrd_chroot |
512 |
install_umount_rootfs |
install_umount_rootfs |
513 |
dialog_install_successful |
dialog_install_successful |
514 |
} |
} |
529 |
dialog_install_settings |
dialog_install_settings |
530 |
sleep 1 |
sleep 1 |
531 |
install_system_settings_flash |
install_system_settings_flash |
532 |
|
install_mkinitrd_chroot |
533 |
install_umount_rootfs_flash |
install_umount_rootfs_flash |
534 |
dialog_install_successful |
dialog_install_successful |
535 |
} |
} |