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.13 2008-06-27 23:33:40 niro Exp $ |
4 |
# |
# |
5 |
# AutoSta_LX Installation Script |
# AutoSta_LX Installation Script |
6 |
# |
# |
418 |
setup (hd0) |
setup (hd0) |
419 |
quit |
quit |
420 |
EOF |
EOF |
421 |
echo "MODULES=\"ext3 amd74xx piix sis5513 via82cxxx\" > /etc/conf.d/mkinitrd |
echo "MODULES=\"ext3 amd74xx piix sis5513 via82cxxx\"" > /etc/conf.d/mkinitrd |
422 |
mkinitrd -f /boot/$(readlink /boot/initrd) $(readlink /boot/vmlinuz | sed "s:kernel-::g") |
mkinitrd -f /boot/$(readlink /boot/initrd) $(readlink /boot/vmlinuz | sed "s:kernel-::g") |
423 |
exit 0 |
exit 0 |
424 |
CHROOTEOF |
CHROOTEOF |
425 |
|
|
426 |
## enters chroot |
## enters chroot |
427 |
mount -t proc proc ${INSTALLPATH}/proc |
mount -t proc proc ${INSTALLPATH}/proc |
428 |
mount -t sysfs sysfs ${INSTALLPATH}/sysfs |
mount -t sysfs sysfs ${INSTALLPATH}/sys |
429 |
mount -o bind /dev ${INSTALLPATH}/dev |
mount -o bind /dev ${INSTALLPATH}/dev |
430 |
chroot ${INSTALLPATH} /bin/bash --rcfile /root/.bashrc -i |
chroot ${INSTALLPATH} /bin/bash --rcfile /root/.bashrc -i |
431 |
umount ${INSTALLPATH}/proc |
umount ${INSTALLPATH}/proc |