NetBSD Problem Report #45488

From diro@nixsyspaus.org  Tue Oct 18 16:26:38 2011
Return-Path: <diro@nixsyspaus.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 0327B63D5AF
	for <gnats-bugs@gnats.netbsd.org>; Tue, 18 Oct 2011 16:26:38 +0000 (UTC)
Message-Id: <20111018162636.500D72041E9@asche.nixsyspaus.org>
Date: Tue, 18 Oct 2011 16:26:36 +0000 (UTC)
From: diro@nixsyspaus.org
Reply-To: diro@nixsyspaus.org
To: gnats-bugs@gnats.netbsd.org
Subject: install of 5.1.0_PATCH fails
X-Send-Pr-Version: 3.95

>Number:         45488
>Category:       install
>Synopsis:       install of 5.1.0_PATCH fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lukem
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 18 16:30:00 +0000 2011
>Closed-Date:    Thu Jun 15 19:59:36 +0000 2023
>Last-Modified:  Thu Jun 15 19:59:36 +0000 2023
>Originator:     diro@nixsyspaus.org
>Release:        NetBSD 5.1.0_PATCH
>Organization:
>Environment:
System: NetBSD themobe.lan 5.1.0_PATCH NetBSD 5.1.0_PATCH (THEMOBE2) #0: Tue Oct
18 13:33:37 UTC 2011  root@themobe.lan:/usr/obj/sys/arch/i386/compile/THEMOBE2
i386
Architecture: i386
Machine: i386
>Description:
[...]
make distribution started at:  Mon Oct 17 14:18:28 UTC 2011
make distribution finished at: Mon Oct 17 16:28:30 UTC 2011
===> Successful make distribution
===> build.sh ended:   Mon Oct 17 16:28:30 UTC 2011
===> Summary of results:
	build.sh command: ./build.sh -O ../obj -T ../tools -U distribution
	build.sh started: Mon Oct 17 14:18:27 UTC 2011
	NetBSD version:   5.1.0_PATCH
	MACHINE:          i386
	MACHINE_ARCH:     i386
	Build platform:   NetBSD 5.1.0_PATCH i386
	HOST_SH:          /bin/sh
	TOOLDIR path:     /usr/src/../tools
	DESTDIR path:     /usr/src/../obj/destdir.i386
	RELEASEDIR path:  /usr/src/../obj/releasedir
	makewrapper:      /usr/src/../tools/bin/nbmake-i386
	Updated /usr/src/../tools/bin/nbmake-i386
	Successful make distribution
	build.sh ended:   Mon Oct 17 16:28:30 UTC 2011
===> .

# ./build.sh -O ../obj -T ../tools -U install=/
===> build.sh command: ./build.sh -O ../obj -T ../tools -U install=/
===> build.sh started: Mon Oct 17 16:40:15 UTC 2011
===> NetBSD version:   5.1.0_PATCH
===> MACHINE:          i386
===> MACHINE_ARCH:     i386
===> Build platform:   NetBSD 5.1.0_PATCH i386
===> HOST_SH:          /bin/sh
===> TOOLDIR path:     /usr/src/../tools
===> DESTDIR path:     /usr/src/../obj/destdir.i386
===> RELEASEDIR path:  /usr/src/../obj/releasedir
===> makewrapper:      /usr/src/../tools/bin/nbmake-i386
===> Updated /usr/src/../tools/bin/nbmake-i386
installsets ===> distrib/sets   (with: INSTALLDIR=/ INSTALLSETS=)
cd /usr/src/distrib/sets &&  DESTDIR=/usr/src/../obj/destdir.i386  MACHINE=i386 MACHINE_ARCH=i386  AWK=/usr/src/../tools/bin/nbawk  CKSUM=/usr/src/../tools/bin/nbcksum  DB=/usr/src/../tools/bin/nbdb  HOST_SH=/bin/sh  MAKE=/usr/src/../tools/bin/nbmake  MKTEMP=/usr/src/../tools/bin/nbmktemp  MTREE=/usr/src/../tools/bin/nbmtree  PAX=/usr/src/../tools/bin/nbpax  SED=/usr/src/../tools/bin/nbsed  TSORT=/usr/src/../tools/bin/nbtsort\ -q  /bin/sh ./maketars -d /usr/src/../obj/destdir.i386   -M /usr/src/../obj/destdir.i386/METALOG.sanitised -N /usr/src/etc   -i /
Copying set base
pax: Cannot set file uid/gid of /./dev (Permission denied)
pax: Cannot set permissions on /./dev (Permission denied)
pax: Access/modification time set failed on: /./dev (Permission denied)
pax: Cannot set file uid/gid of /./dev/fd (Permission denied)
pax: Cannot set permissions on /./dev/fd (Permission denied)
pax: Access/modification time set failed on: /./dev/fd (Permission denied)
pax: Cannot set permissions on /./dev/fd (Permission denied)
pax: Access/modification time set failed on: /./dev/fd (Permission denied)
pax: Cannot set permissions on /./dev (Permission denied)
pax: Access/modification time set failed on: /./dev (Permission denied)
Copying set comp
Copying set games
Copying set man
Copying set misc
Copying set tests
Copying set text

*** Failed target:  installsets
*** Failed command: cd /usr/src/distrib/sets && DESTDIR=/usr/src/../obj/destdir.i386 MACHINE=i386 MACHINE_ARCH=i386 AWK=/usr/src/../tools/bin/nbawk CKSUM=/usr/src/../tools/bin/nbcksum DB=/usr/src/../tools/bin/nbdb HOST_SH=/bin/sh MAKE=/usr/src/../tools/bin/nbmake MKTEMP=/usr/src/../tools/bin/nbmktemp MTREE=/usr/src/../tools/bin/nbmtree PAX=/usr/src/../tools/bin/nbpax SED=/usr/src/../tools/bin/nbsed TSORT=/usr/src/../tools/bin/nbtsort\ -q /bin/sh ./maketars -d /usr/src/../obj/destdir.i386 -M /usr/src/../obj/destdir.i386/METALOG.sanitised -N /usr/src/etc -i /
*** Error code 1

Stop.
nbmake: stopped in /usr/src/distrib/sets

*** Failed target:  installworld
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /usr/src/../tools/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget distrib/sets installsets INSTALLDIR=/ INSTALLSETS=
*** Error code 1

Stop.
nbmake: stopped in /usr/src

ERROR: Failed to make installworld to /
*** BUILD ABORTED ***
>How-To-Repeat:
	See above (make tools, make distribution, install).
>Fix:


>Release-Note:

>Audit-Trail:
From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: install/45488: install of 5.1.0_PATCH fails
Date: Sat, 5 Nov 2011 17:44:59 +0000

 On Tue, Oct 18, 2011 at 04:30:01PM +0000, diro@nixsyspaus.org wrote:
  > # ./build.sh -O ../obj -T ../tools -U install=/
  > [...]
  > Copying set base
  > pax: Cannot set file uid/gid of /./dev (Permission denied)
  > pax: Cannot set permissions on /./dev (Permission denied)

 My first guess (unless that '#' is lying to you) is that you have
 securelevel set? I have no idea what else would cause this.

 Well, actually that's not quite true. Is /dev a mount point?

 -- 
 David A. Holland
 dholland@netbsd.org

From: diro@nixsyspaus.org
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: install/45488: install of 5.1.0_PATCH fails
Date: Sat, 5 Nov 2011 13:53:29 -0400

 On Sat, Nov 05, 2011 at 05:45:02PM +0000, David Holland wrote:
 >  
 >  My first guess (unless that '#' is lying to you) is that you have
 >  securelevel set? I have no idea what else would cause this.

 % sysctl -a | grep securelevel
 kern.securelevel = -1
 security.models.bsd44.securelevel = -1

 >  Well, actually that's not quite true. Is /dev a mount point?

 It is: fdesc on /dev type fdesc (union, local)

From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: install/45488: install of 5.1.0_PATCH fails
Date: Sun, 13 Nov 2011 18:16:10 +0000

 On Sat, Nov 05, 2011 at 05:55:02PM +0000, diro@nixsyspaus.org wrote:
  >>  
  >>  My first guess (unless that '#' is lying to you) is that you have
  >>  securelevel set? I have no idea what else would cause this.
  >  
  >  % sysctl -a | grep securelevel
  >  kern.securelevel = -1
  >  security.models.bsd44.securelevel = -1
  >    
  >  >  Well, actually that's not quite true. Is /dev a mount point?
  >  
  >  It is: fdesc on /dev type fdesc (union, local)

 Isn't that normally mounted in /dev/fd? Anyhow, I guess that's why
 it's failing; I'm guessing fdesc doesn't allow its root dir to be
 setattr'd.

 -- 
 David A. Holland
 dholland@netbsd.org

Responsible-Changed-From-To: install-manager->lukem
Responsible-Changed-By: lukem@NetBSD.org
Responsible-Changed-When: Sun, 28 May 2023 17:09:55 +0000
Responsible-Changed-Why:


State-Changed-From-To: open->feedback
State-Changed-By: lukem@NetBSD.org
State-Changed-When: Sun, 28 May 2023 17:09:55 +0000
State-Changed-Why:

Is this a problem that we can solve in the installation tools?
The system is using fdesc on /dev (per mount_fdesc(8)),
and that union-based file system doesn't appear to support
changing permissions of various entries.


State-Changed-From-To: feedback->closed
State-Changed-By: lukem@NetBSD.org
State-Changed-When: Thu, 15 Jun 2023 19:59:36 +0000
State-Changed-Why:
Mail bounced.

Not really a problem we can solve in the build system anyway;
we want pax to report errors and fail if it can't set the permissions,
and dealing with all the combinations of why the target permissions
can't be changed is not a viably solveable problem.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: gnats-precook-prs,v 1.4 2018/12/21 14:20:20 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.