]> git.openpandora.org Git - openembedded.git/commitdiff
altboot: Bugfixes
authorMatthias Hentges <oe@hentges.net>
Thu, 2 Feb 2006 00:52:41 +0000 (00:52 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Thu, 2 Feb 2006 00:52:41 +0000 (00:52 +0000)
- Fix disable_printk.sh
- Boot NFS: Ignore failure of mounting /proc

packages/altboot/altboot.bb
packages/altboot/files/altboot-menu/15-bootSD
packages/altboot/files/altboot-menu/Advanced/40-bootNFS
packages/altboot/files/altboot-menu/Advanced/55-bin-sh
packages/altboot/files/altboot.rc/disable_printk.sh
packages/altboot/files/init.altboot

index a6b2bcb5240865860db60435b13632e94da79a47..0a349c62d89a8a498915f4df2beb9307c066a215 100644 (file)
@@ -6,7 +6,7 @@ MAINTAINER = "Matthias 'CoreDump' Hentges  <oe@hentges.net>"
 LICENSE = "GPL"
 IGNORE_STRIP_ERRORS = "1"
 
-PR = "r16"
+PR = "r17"
 
 
 SRC_URI = "file://altboot-menu \
index d086cde344c8b82fd73df94aa3af59901327de35..baa85a7cf7fa5210fce3ada21c2a10951a6953e6 100644 (file)
@@ -15,11 +15,13 @@ die() {
 # This function is activated by init.altboot by calling this script with the "run" option
 run_module() {
        
-       test -e /etc/altboot.func && . /etc/altboot.func || die "ERROR: /etc/altboot.func not found. Check your installation!"
+       test -e /etc/altboot.func && . /etc/altboot.func || die "ERROR: /etc/altboot.func not found. Check your installation!"  
        
        echo -n "Mounting rootfs rw..." >/dev/tty0
        mount -o remount,rw / >/dev/tty0 2>&1 && echo ok  >/dev/tty0|| die "mount -o remount,rw / failed"
 
+       mount proc -t proc /proc >/dev/tty0 2>&1
+
        echo -n "Generating device files..." >/dev/tty0
        /etc/init.d/devices start && echo ok  >/dev/tty0|| die "FAILED"
 
index e83a2867c57ac7e091549d6bbd36a055b894127e..7279ba66eeaa8432c38870fabafea0283d9712d3 100644 (file)
@@ -23,7 +23,7 @@ run_module() {
        /etc/init.d/devices start && echo ok  >/dev/tty0|| die "FAILED" 
 
        echo -n "Mounting /proc..." >/dev/tty0
-       mount /proc >/dev/tty0 2>&1 && echo ok  >/dev/tty0 || echo failed
+       mount /proc >/dev/tty0 >/dev/null 2>&1 && echo ok  >/dev/tty0 || echo failed
 
        # Needed for NFS
        /etc/init.d/portmap start >/dev/tty1 2>&1 || die "/etc/init.d/portmap start failed!"
index 6db4adaf3a19851b908adbf789614436bfa2ef4b..90a6f37ff5f8ab88983bb63273100542d2de25bc 100644 (file)
@@ -8,6 +8,11 @@ run_module() {
        
        test "$ASK_PW_ON_BOOT" != "yes" && verify_master_pw >/dev/tty0
        
+       # Make the system a little bit more usable than a standard init=/bin/sh boot
+       mount -t proc proc /proc >/dev/null 2>&1
+       uname -r | grep -q "2.6." && mount sys -t sysfs /sys
+       mount -o remount,rw /                   
+       
        echo -e "\nBoot system with 'exec /sbin/init 5'\n"
        while true
        do
index 9d5f918c1ec236c64ed5de42820a8bd67b69cf87..af15adec4460940ff5b6da737fbee1b2e3f9fdd1 100644 (file)
@@ -1,4 +1,6 @@
-#!/bin/bash
+#!/bin/sh
+
+mount proc -t proc /proc >/dev/null 2>&1
 
 echo 0 > /proc/sys/kernel/printk
 
index cd8b6b8929c9115289deabf5a2e0d97a1585e6a4..2ef804d99c9cacd239bc418a5199e9083cec4566 100644 (file)
@@ -24,7 +24,6 @@ case "`uname -r`" in
        ALTBOOT_CFG_FILE="/etc/altboot-2.6.cfg";;
 esac
 
-echo "Using [${ALTBOOT_CFG_FILE}]"
 test -e "$ALTBOOT_CFG_FILE" && . "$ALTBOOT_CFG_FILE" || echo "WARNING: No $ALTBOOT_CFG_FILE found! Check your installation of Altboot!" > /dev/tty1
 
 C_RED="\033[31m"