]> git.ozlabs.org Git - yaboot.git/commitdiff
Commit yaboot 1.3.4-pre2
authorEthan Benson <erbenson@alaska.net>
Tue, 26 Mar 2002 14:42:58 +0000 (14:42 +0000)
committerEthan Benson <erbenson@alaska.net>
Tue, 26 Mar 2002 14:42:58 +0000 (14:42 +0000)
Commit yaboot 1.3.4-pre2.
git-archimport-id: erbenson@alaska.net--public/yaboot--devel--1.3--patch-6

ChangeLog
Makefile
changelog
second/file.c
second/yaboot.c
ybin/ybin

index 1052750ecf41e2d5312ee339bb6ab51796bc4d2d..5daeea07171dc8afa9a00f3dc2b8e29417b72933 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,20 @@
 # tag: automatic-ChangeLog--erbenson@alaska.net--public/yaboot--devel--1.3
 #
 
+2002-03-26 14:42:58 GMT        Ethan Benson <erbenson@alaska.net>      patch-6
+
+    Summary:
+      Commit yaboot 1.3.4-pre2
+    Revision:
+      yaboot--devel--1.3--patch-6
+
+    Commit yaboot 1.3.4-pre2.
+
+    modified files:
+     ChangeLog Makefile changelog second/file.c second/yaboot.c
+     ybin/ybin
+
+
 2002-03-25 15:13:19 GMT        Ethan Benson <erbenson@alaska.net>      patch-5
 
     Summary:
index 4b2274e0449f9b9370cd03c4b326d22b22963137..ff0287244218484fb4aa426e7b62fd5917511f7d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@
 
 include Config
 
-VERSION = 1.3.4pre1
+VERSION = 1.3.4pre2
 # Debug mode (spam/verbose)
 DEBUG = 0
 # make install vars
index b4aaafae28832aa8d26a84020f43cef84b07431c..9f42c595589a4b31aed317b057416ed396191739 100644 (file)
--- a/changelog
+++ b/changelog
@@ -1,6 +1,15 @@
+2001-10-10  Ethan Benson  <erbenson@alaska.net>
+
+       * Version 1.3.4pre2
+
+       * yaboot:
+         - Fix netboot when using the `n' key.
+         - Make configuration file open error consistent with other file
+           open errors.
+       
 2001-10-09  Ethan Benson  <erbenson@alaska.net>
 
-       * Version 1.3.4-pre1
+       * Version 1.3.4pre1
 
        * yaboot:
          - Add SGI XFS filesystem support.
index 3aaef8223b527b6b207b005e575ca05c5808e699..e4c379f4900b94c8c7a15c7807fa49afc68f343a 100644 (file)
@@ -48,7 +48,7 @@ parse_device_path(char *imagepath, char *defdevice, int defpart,
      result->file = NULL;
 
      if (!strstr(defdev, "ethernet") && !strstr(defdev, "enet")) {
-         if ((ptr = strchr(defdev, ':')) != NULL)
+         if ((ptr = strrchr(defdev, ':')) != NULL)
               *ptr = 0; /* remove trailing : from defdevice if necessary */
      }
 
@@ -62,6 +62,10 @@ parse_device_path(char *imagepath, char *defdevice, int defpart,
      }
 
      if (strstr(ipath, "ethernet") || strstr(ipath, "enet"))
+         if ((ptr = strstr(ipath, "bootp")) != NULL) { /* `n' key booting boots enet:bootp */
+              *ptr = 0;
+              result->dev = strdup(ipath);
+         } else
          result->dev = strdup(ipath);
      else if ((ptr = strchr(ipath, ':')) != NULL) {
          *ptr = 0;
index 4bb67e29337b568cd173d7ec1fbb9bca84ead38f..5eed2a3c9ae5e7e68af1c2a52545b33570098d6b 100644 (file)
@@ -291,8 +291,10 @@ load_config_file(char *device, char* path, int partition)
     fspec.part = partition;
     result = open_file(&fspec, &file);
     if (result != FILE_ERR_OK) {
-       prom_printf("Can't open config file '%s', err: %d\n", conf_path, result);
-       goto bail;
+        prom_printf("%s:%d", fspec.dev, fspec.part);
+        prom_perror(result, fspec.file);
+        prom_printf("Can't open config file\n");
+        goto bail;
     }
     opened = 1;
 
index 8b8f40238c885f8fae41665aa1c6fbeebecbc282..3da965e5fe4b0043c8e6c26a192d95a5e12af353 100755 (executable)
--- a/ybin/ybin
+++ b/ybin/ybin
@@ -28,7 +28,7 @@ if [ -n "$PATH_PREFIX" ] ; then
 fi
 PRG="${0##*/}"
 SIGINT="$PRG: Interrupt caught ... exiting"
-VERSION=1.3.4pre1
+VERSION=1.3.4pre2
 DEBUG=0
 VERBOSE=0
 TMP="${TMPDIR:-/tmp}"