summaryrefslogtreecommitdiff
path: root/packages/altboot/files/altboot-menu/Advanced
diff options
context:
space:
mode:
authorMatthias Hentges <oe@hentges.net>2006-02-23 03:08:49 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-02-23 03:08:49 +0000
commitf8955e0dc7898ad33000cd50f92b3ea15e84169e (patch)
tree69f1c3f733a7b7e6d4f59e03a1f12bc0698f7a34 /packages/altboot/files/altboot-menu/Advanced
parentf8d1004925f54ddab0e3385463c0725f47f50c72 (diff)
altboot: More kernel 2.4 fixes
Diffstat (limited to 'packages/altboot/files/altboot-menu/Advanced')
-rw-r--r--packages/altboot/files/altboot-menu/Advanced/70-install-tgz26
1 files changed, 22 insertions, 4 deletions
diff --git a/packages/altboot/files/altboot-menu/Advanced/70-install-tgz b/packages/altboot/files/altboot-menu/Advanced/70-install-tgz
index 2ff380418d..c525b9154c 100644
--- a/packages/altboot/files/altboot-menu/Advanced/70-install-tgz
+++ b/packages/altboot/files/altboot-menu/Advanced/70-install-tgz
@@ -51,8 +51,18 @@ run_module(){
read junk
case "$junk" in
- 1) rootfs_target="/media/card"; break ;;
- 2) rootfs_target="/media/cf" ; break ;;
+ 1) if (mount | grep -q "/media/card ")
+ then
+ rootfs_target="/media/card"; break
+ else
+ echo -e "\nInstallation target [/media/card] not mounted\n"
+ fi ;;
+ 2) if (mount | grep -q "/media/cf ")
+ then
+ rootfs_target="/media/cf"; break
+ else
+ echo -e "\nInstallation target [/media/cf] not mounted\n"
+ fi ;;
esac
done
@@ -68,7 +78,13 @@ run_module(){
read junk
case "$junk" in
- 1) rootfs_type="image"; break ;;
+ 1) if test -x /sbin/mkfs.ext2
+ then
+ rootfs_type="image"
+ break
+ else
+ echo -e "\nNOTE: mkfs.ext2 (from e2fsprogs-mke2fs) not found, loop-images not supported\n"
+ fi ;;
2) rootfs_type="direct" ; break ;;
esac
done
@@ -95,6 +111,8 @@ clear_directories(){
install_rootfs_direct(){
+ mount | grep -q "$1 " || die "Installation target [$1] not mounted"
+
echo -e "Do you want to remove existing directories from [$1]\n before installing the new rootfs?"
echo ""
@@ -152,7 +170,7 @@ install_rootfs_image(){
while true
do
- echo -n "Overwrite? [N|y] "
+ echo -n "Overwrite? [y|N] "
read junk2
case "$junk2" in