PR 50342: if there is no current partition manage, assume we are running
from an already installed system.
This commit is contained in:
parent
2c01e1e121
commit
e082252485
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: target.c,v 1.2 2014/08/03 16:09:38 martin Exp $ */
|
||||
/* $NetBSD: target.c,v 1.3 2015/10/18 09:21:55 martin Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1997 Jonathan Stone
|
||||
@ -71,7 +71,7 @@
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
__RCSID("$NetBSD: target.c,v 1.2 2014/08/03 16:09:38 martin Exp $");
|
||||
__RCSID("$NetBSD: target.c,v 1.3 2015/10/18 09:21:55 martin Exp $");
|
||||
#endif
|
||||
|
||||
/*
|
||||
@ -153,6 +153,9 @@ int
|
||||
target_already_root(void)
|
||||
{
|
||||
|
||||
if (pm == NULL)
|
||||
return TRUE;
|
||||
|
||||
if (strcmp(pm->diskdev, "") == 0)
|
||||
/* No root partition was ever selected.
|
||||
* Assume that the currently mounted one should be used
|
||||
|
Loading…
Reference in New Issue
Block a user