Fix this correctly - check if mfs_getimage() succeeds before settings
the MFS root unconditionally, just as on the x86. Prompted by: msmith
This commit is contained in:
parent
573dce4383
commit
af8d56d484
@ -23,7 +23,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: autoconf.c,v 1.10 1998/09/26 14:48:19 dfr Exp $
|
||||
* $Id: autoconf.c,v 1.11 1998/10/06 08:38:04 dfr Exp $
|
||||
*/
|
||||
|
||||
#include "opt_bootp.h"
|
||||
@ -217,9 +217,14 @@ cpu_rootconf()
|
||||
{
|
||||
#ifdef MFS_ROOT
|
||||
if (!mountrootfsname) {
|
||||
extern u_char *mfs_getimage __P((void));
|
||||
|
||||
if (bootverbose)
|
||||
printf("Considering MFS root f/s.\n");
|
||||
mountrootfsname = "mfs";
|
||||
if (mfs_getimage())
|
||||
mountrootfsname = "mfs";
|
||||
else if (bootverbose)
|
||||
printf("No MFS image available as root f/s.\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user