From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 30 Sep 2021 12:44:48 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mVtYW-0005xx-H2 for lore@lore.pengutronix.de; Thu, 30 Sep 2021 12:44:48 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mVtYW-0005SE-1J; Thu, 30 Sep 2021 12:44:48 +0200 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mVtYI-0005Ri-Cf; Thu, 30 Sep 2021 12:44:34 +0200 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1mVtYI-0007K1-29; Thu, 30 Sep 2021 12:44:34 +0200 Date: Thu, 30 Sep 2021 12:44:34 +0200 From: Michael Olbrich To: "Koch, Alexander" Message-ID: <20210930104434.GO18190@pengutronix.de> Mail-Followup-To: "Koch, Alexander" , "ptxdist@pengutronix.de" References: <46ed7a4d-89b9-480a-1d57-bd37d54769b4@initse.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <46ed7a4d-89b9-480a-1d57-bd37d54769b4@initse.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 12:41:11 up 224 days, 14:05, 133 users, load average: 0.18, 0.21, 0.22 User-Agent: Mutt/1.10.1 (2018-07-13) Subject: Re: [ptxdist] rootfs: /dev/null creation fails with 'Operation not permitted' X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: "ptxdist@pengutronix.de" Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false On Thu, Sep 30, 2021 at 07:59:45AM +0000, Koch, Alexander wrote: > Hi #PTXdist, > = > I'm currently facing the issue that all my PTXdist builds fail in = > 'rootfs.make' during the creation of the /dev/null device node: > = > = > --------------------------------------( ... )-- > = > install directory: > =A0 dir=3D/dev > =A0 owner=3D0 > =A0 group=3D0 > =A0 permissions=3D0755 > = > install device node: > =A0 owner=3D0 > =A0 group=3D0 > =A0 permissions=3D0666 > =A0 type=3Dc > =A0 major=3D1 > =A0 minor=3D3 > =A0 name=3D/dev/null > = > mknod: /mnt/work/ptxdist/platform-pm3/packages/rootfs.tmp/dev/null: = > Operation not permitted > Error: install_node failed! > = > xpkg_finish: failed. > = > make: *** [/usr/lib/ptxdist-2020.01.0/rules/rootfs.make:93: = > /mnt/work/ptxdist/platform-pm3/state/rootfs.targetinstall] Error 1 > = > ------------------------------------------------ > = > = > As you can see I'm using ptxdist-2020.01.0 for this but I've taken a = > look at the current release code base and can't see any substantial = > changes to the device node creation part in `install_node()`. So I doubt = > it's an issue of that particular version. > = > I've also checked I'm not using any fancy mount options for the = > filesystem I'm building on (btrfs) and I do not use SELinux/AppArmor or = > any other restriction framework. > = > Builds used to work fine for years, so I'm running out of clues what = > could be causing this issue. > = > = > Does anybody have an idea what I could check? mknod is run with fakeroot specifically to avoid permissions errors like this. So either fakeroot is not working properly or there is some bad interaction with btrfs. Can you run mknod with platform-*/sysroot-host/bin/fakeroot to see if it works manually? Try to create a device file on the same filesystem but also on a tmpfs. Do you get the same errors? Regards, Michael -- = Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@p= engutronix.de