PR 50342: if there is no current partition manage, assume we are running

from an already installed system.
This commit is contained in:
martin 2015-10-18 09:21:55 +00:00
parent 2c01e1e121
commit e082252485

View File

@ -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