Add a NO_LFS define to force support for LFS in sysinst off, even if

the install media provides the utilities. Set this for sparc64 for now,
since the bootblocks don't deal with the default LFS parameters used
by sysinst.
This commit is contained in:
martin 2010-04-05 22:53:02 +00:00
parent 20fc76af98
commit 2116ace6a7
2 changed files with 9 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: md.h,v 1.17 2010/03/13 08:36:06 mrg Exp $ */
/* $NetBSD: md.h,v 1.18 2010/04/05 22:53:02 martin Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@ -66,6 +66,9 @@
/* allow using tmpfs for /tmp instead of mfs */
#define HAVE_TMPFS
/* disable LFS support, despite providing the lfs utilities */
#define NO_LFS
/*
* Default filesets to fetch and install during installation
* or upgrade.

View File

@ -1,4 +1,4 @@
/* $NetBSD: util.c,v 1.164 2010/03/30 20:09:25 martin Exp $ */
/* $NetBSD: util.c,v 1.165 2010/04/05 22:53:02 martin Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@ -1479,7 +1479,11 @@ int
check_lfs_progs(void)
{
#ifndef NO_LFS
return (access("/sbin/fsck_lfs", X_OK) == 0 &&
access("/sbin/mount_lfs", X_OK) == 0 &&
access("/sbin/newfs_lfs", X_OK) == 0);
#else
return 0;
#endif
}