altboot: update to 0.0.5-rc5. This version is known to work with kernel 2.4 an 2...
authorMatthias Hentges <oe@hentges.net>
Fri, 24 Feb 2006 23:34:20 +0000 (23:34 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Fri, 24 Feb 2006 23:34:20 +0000 (23:34 +0000)
packages/altboot/altboot_0.0.0.bb
packages/altboot/altboot_0.0.5-rc5.bb [moved from packages/altboot/altboot_0.0.5-rc4.bb with 99% similarity]
packages/altboot/files/altboot-menu/Advanced/40-bootNFS
packages/altboot/files/altboot-menu/Advanced/70-install-tgz
packages/altboot/files/altboot.func
packages/altboot/files/init.altboot

index 18cce34..e52070c 100644 (file)
@@ -6,7 +6,7 @@ MAINTAINER = "Matthias 'CoreDump' Hentges  <oe@hentges.net>"
 LICENSE = "GPL"
 IGNORE_STRIP_ERRORS = "1"
 
-PR = "r23"
+PR = "r24"
 
 
 SRC_URI = "file://altboot-menu \
similarity index 99%
rename from packages/altboot/altboot_0.0.5-rc4.bb
rename to packages/altboot/altboot_0.0.5-rc5.bb
index 20497a8..1cb51a3 100644 (file)
@@ -12,7 +12,7 @@ HOMEPAGE = "http://www.hentges.net/misc/openzaurus/index.shtml"
 
 ######################################################################################
 
-PR = "r2"
+PR = "r0"
 
 ######################################################################################
 
index cf1d1da..3a41fcc 100644 (file)
@@ -116,7 +116,7 @@ run_module() {
        
        # Use configured resolv.conf in the pivoted rootfs
        echo -n "Copying resolv.conf..."
-       cp /etc/resolv.conf /media/nfsroot/etc && echo ok || echo "FAILED"
+       #cp /etc/resolv.conf /media/nfsroot/etc && echo ok || echo "FAILED"
        
        check_target "/media/nfsroot"
        
index c525b91..2ae44fa 100644 (file)
@@ -102,8 +102,11 @@ clear_directories(){
        
        for d in bin dev media proc sys usr boot etc lib mnt sbin tmp var
        do
-               echo "Removing [$1/$d]..."
-               rm -rf "$1/$d"
+               if test -d "$1/$d"
+               then
+                       echo "Removing [$1/$d]..."
+                       rm -rf "$1/$d"
+               fi
        done
 
 }
@@ -128,8 +131,7 @@ install_rootfs_direct(){
 
        echo "Please press <ENTER> to begin the installation"
        read junk </dev/tty0 >/dev/tty0 2>&1
-       
-       mount | grep -q "$1 " || die "Installation target [$1] not mounted"     
+               
        test -d "$1" || die "Directory [$1] not found"
        
        echo -n "Installing rootfs, please wait..."
@@ -208,7 +210,7 @@ install_rootfs_image(){
                
                if test -n "$junk"
                then
-                       if test "$junk" -gt 1
+                       if test "$junk" -gt 30
                        then
                                echo -n "Is [${junk}Mb] correct? [Y|n] "
                                read junk2
index ec34792..d7737ec 100644 (file)
@@ -65,7 +65,7 @@ pivot_realfs() {
        test -z "$2" && RL="5" || RL="$2"
        mkdir -p $1/media/ROM || die "mkdir -p $1/media/ROM failed"
 
-       mount -o remount,ro /
+       mount -o remount,ro / >/dev/null 2>&1
 
        do_pivot "$1" "$RL"
 }
@@ -352,14 +352,14 @@ mount_cf(){
        then
                echo "Note: /media/cf is already mounted"
        else    
-               /etc/init.d/pcmcia status | grep -q running || /etc/init.d/pcmcia start && echo "Note: cardmgr already active"
+               /etc/init.d/pcmcia status | grep -q running || /etc/init.d/pcmcia start && echo "Note: cardmgr is already active"
 
                echo ""
 
                # Give the SD and CF mounting some time. This is a must for SD                  
                sleep 2
                
-               mount /media/cf
+               mount | grep -q "/media/cf " || mount /media/cf
        fi
 }
 
index 871ae82..850912f 100644 (file)
@@ -255,8 +255,7 @@ wait_for_input() {
                                # Don't remount rw if the drive is already mounted rw
                                # Only helpful for testing / debugging
                                if test "`mount|sed -n "/\/dev\/root/s/.*(\(.*\))/\1/p"`" != "rw"
-                               then
-                                       
+                               then                                    
                                        mount -o remount,rw / >/dev/null 2>&1
                                        echo "$junk" > /etc/altboot.conf
                                        mount -o remount,ro / >/dev/null 2>&1