Debian Bug report logs - #661312
document+test tempdir for nodev/nosuid and error out early

version graph

Package: piuparts; Maintainer for piuparts is piuparts developers team <[email protected]>; Source for piuparts is src:piuparts (PTS, buildd, popcon).

Affects: initscripts

Reported by: Picca Frédéric-Emmanuel <[email protected]>

Date: Sun, 26 Feb 2012 09:06:02 UTC

Severity: wishlist

Merged with 677238

Found in versions piuparts/0.44, piuparts/0.43

Full log


Message #49 received at [email protected] (full text, mbox, reply):

Received: (at control) by bugs.debian.org; 14 Jun 2012 13:01:31 +0000
From [email protected] Thu Jun 14 13:01:31 2012
X-Spam-Checker-Version: SpamAssassin 3.3.1-bugs.debian.org_2005_01_02
	(2010-03-16) on busoni.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-12.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER,
	PGPSIGNATURE autolearn=ham version=3.3.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 14; hammy, 151; neutral, 94; spammy,
	0. spammytokens: hammytokens:0.000-+--H*i:message, 0.000-+--H*c:pgp-sha512,
	0.000-+--H*u:Gnus, 0.000-+--H*u:linux, 0.000-+--H*UA:linux
Return-path: <[email protected]>
Received: from clio.pca.it ([151.1.160.141] helo=clio.genesi.eu)
	by busoni.debian.org with esmtp (Exim 4.72)
	(envelope-from <[email protected]>)
	id 1Sf9g0-0005VV-KI
	for [email protected]; Thu, 14 Jun 2012 13:01:29 +0000
Received: from localhost (localhost [127.0.0.1])
	by clio.genesi.eu (Postfix) with ESMTP id 740A81FFC63
	for <[email protected]>; Thu, 14 Jun 2012 15:01:17 +0200 (CEST)
X-Virus-Scanned: amavisd-new at clio.genesi.eu
Received: from clio.genesi.eu ([127.0.0.1])
	by localhost (clio.genesi.eu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id MNFbpXM7TqR9 for <[email protected]>;
	Thu, 14 Jun 2012 15:01:12 +0200 (CEST)
Received: from mantissa.pca.it (ip-85-135.sn2.eutelia.it [83.211.85.135])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by clio.genesi.eu (Postfix) with ESMTPS id 4CA081BC13E
	for <[email protected]>; Thu, 14 Jun 2012 15:01:12 +0200 (CEST)
Received: from gismo.pca.it (adsl-84-227-27-176.adslplus.ch [84.227.27.176])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mantissa.pca.it (Postfix) with ESMTPSA id 6DA5821DA3
	for <[email protected]>; Thu, 14 Jun 2012 15:01:11 +0200 (CEST)
Received: by gismo.pca.it (Postfix, from userid 1000)
	id 874E023583; Thu, 14 Jun 2012 15:01:10 +0200 (CEST)
From: Luca Capello <[email protected]>
To: [email protected]
Subject: Re: [Piuparts-devel] Bug#677238: piuparts: does not play well with TMPDIR on tmpfs
In-Reply-To: <[email protected]> (Luca Capello's message of "Tue, 12
	Jun 2012 20:50:49 +0200")
References: <[email protected]> <[email protected]>
	<[email protected]>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)
Date: Thu, 14 Jun 2012 15:01:08 +0200
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
	micalg=pgp-sha512; protocol="application/pgp-signature"
Delivered-To: [email protected]
[Message part 1 (text/plain, inline)]
affects 661312 + initscripts
thanks

Hi there!

On Tue, 12 Jun 2012 20:50:49 +0200, Luca Capello wrote:
> On Tue, 12 Jun 2012 17:25:13 +0200, Andreas Beckmann wrote:
>> forcemerge 661312 677238
>> thanks
>>
>> Not a problem with tmpfs. Just with the mount options nodev/nosuid.
>
> Ops, I looked for bugs with title "tmp" or "TMP", but not "temp" :-(
>
> Now it also explains why pbuilder worked and piuparts did not: pbuilder
> uses /home/luca/var/cache/pbuilder/build, which is a tmpfs, but with no
> nodev/nosuid, while piuparts uses /tmp, which originally came from the
> "/tmp as tmpfs" migration.

This means that RAMTMP=yes as default in /etc/default/tmpfs will break
piuparts, /lib/init/mount-functions.sh from initscripts_2.88dsf-27 has:

--8<---------------cut here---------------start------------->8---
   541          # Mount /tmp as tmpfs if enabled.
   542          if [ yes = "$RAMTMP" ]; then
   543                  domount "$MNTMODE" tmpfs shmfs /tmp tmpfs "-onodev,nosuid$TMP_OPT"
   544                  # Make sure we don't get cleaned
   545                  touch /tmp/.tmpfs
   546          else
   547                  # When root is still read only, this will fail.
   548                  if [ mount_noupdate != "$MNTMODE" ] && [ rw = "$rootmode" ]; then
   549                          chmod "$TMP_MODE" /tmp
   550                  fi
   551          fi
   552  }
--8<---------------cut here---------------end--------------->8---

Thx, bye,
Gismo / Luca
[Message part 2 (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 08:20:52 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.