Debian Bug report logs - #1019697
debootstrap: aid reproducible boostrapping by providing a --cleanup-logs option

version graph

Package: debootstrap; Maintainer for debootstrap is Debian Install System Team <[email protected]>; Source for debootstrap is src:debootstrap (PTS, buildd, popcon).

Reported by: Holger Levsen <[email protected]>

Date: Tue, 13 Sep 2022 15:39:02 UTC

Severity: wishlist

Found in version debootstrap/1.0.127

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], [email protected], Debian Install System Team <[email protected]>:
Bug#1019697; Package debootstrap. (Tue, 13 Sep 2022 15:39:04 GMT) (full text, mbox, link).


Acknowledgement sent to Holger Levsen <[email protected]>:
New Bug report received and forwarded. Copy sent to [email protected], Debian Install System Team <[email protected]>. (Tue, 13 Sep 2022 15:39:04 GMT) (full text, mbox, link).


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

From: Holger Levsen <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: debootstrap: aid reproducible boostrapping by providing a --cleanup-logs option
Date: Tue, 13 Sep 2022 17:36:34 +0200
[Message part 1 (text/plain, inline)]
Package: debootstrap
Version: 1.0.127
Severity: wishlist
X-Debbugs-Cc: [email protected]

Dear Maintainer,

using debootstrap 1.0.127 it's possible to reproducible bootstrap Debian,
provided one does three extra steps:

1. rm /var/log/dpkg.log /var/log/alternatives.log /var/log/bootstrap.log
2. rm /etc/machine-id /var/cache/ldconfig/aux-cache
3. SOURCE_DATE_EPOCH=$some_sane_value ; sudo tar --mtime="@$SOURCE_DATE_EPOCH" --clamp-mtime $SUITE -cf $SUITE.tar

This bug is about the first step. It would be really nice if debootstrap
had an option called --cleanup-logs which would delete those logs.

Step 2 (or rather it's first part) is tracked via #1018740: "debootstrap:
better initialisation of /etc/machine-id".
Step 3 would be another new feature for debootstrap, namely to create tar archives.

Thanks for maintaining debootstrap!


-- 
cheers,
	Holger

 ⢀⣴⠾⠻⢶⣦⠀
 ⣾⠁⢠⠒⠀⣿⡁  holger@(debian|reproducible-builds|layer-acht).org
 ⢿⡄⠘⠷⠚⠋⠀  OpenPGP: B8BF54137B09D35CF026FE9D 091AB856069AAA1C
 ⠈⠳⣄

"I know what you're thinking" used to be an idiom but now it's a business model.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to [email protected], Debian Install System Team <[email protected]>:
Bug#1019697; Package debootstrap. (Wed, 14 Sep 2022 09:03:03 GMT) (full text, mbox, link).


Acknowledgement sent to "Chris Lamb" <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <[email protected]>. (Wed, 14 Sep 2022 09:03:03 GMT) (full text, mbox, link).


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

From: "Chris Lamb" <[email protected]>
To: "Holger Levsen" <[email protected]>, "Debian Bug Tracking System" <[email protected]>
Subject: Re: debootstrap: aid reproducible boostrapping by providing a --cleanup-logs option
Date: Wed, 14 Sep 2022 10:00:32 +0100
Holger Levsen wrote:

> This bug is about the first step. It would be really nice if debootstrap
> had an option called --cleanup-logs which would delete those logs.

Would it be sensible to suggest that, instead of an explicit
command-line flag, that debootstrap would do this cleanup if
SOURCE_DATE_EPOCH is present?

If it helps, the idea of using the presence (or non-presence) of
SOURCE_DATE_EPOCH to slightly adjust the behaviour of a program is
already being used as a flag in other places.

(If it helps, the parallel bug for cdebootstrap is #1019698.)


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] 🍥 chris-lamb.co.uk
       `-



Information forwarded to [email protected], Debian Install System Team <[email protected]>:
Bug#1019697; Package debootstrap. (Wed, 14 Sep 2022 10:03:02 GMT) (full text, mbox, link).


Acknowledgement sent to Holger Levsen <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <[email protected]>. (Wed, 14 Sep 2022 10:03:02 GMT) (full text, mbox, link).


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

From: Holger Levsen <[email protected]>
To: Chris Lamb <[email protected]>, [email protected], [email protected]
Subject: Re: Bug#1019697: debootstrap: aid reproducible boostrapping by providing a --cleanup-logs option
Date: Wed, 14 Sep 2022 09:59:44 +0000
[Message part 1 (text/plain, inline)]
Hi Chris,

On Wed, Sep 14, 2022 at 10:00:32AM +0100, Chris Lamb wrote:
> > This bug is about the first step. It would be really nice if debootstrap
> > had an option called --cleanup-logs which would delete those logs.
> Would it be sensible to suggest that, instead of an explicit
> command-line flag, that debootstrap would do this cleanup if
> SOURCE_DATE_EPOCH is present?

I think that's an excellent idea! :)
 
> If it helps, the idea of using the presence (or non-presence) of
> SOURCE_DATE_EPOCH to slightly adjust the behaviour of a program is
> already being used as a flag in other places.
> 
> (If it helps, the parallel bug for cdebootstrap is #1019698.)

Leaving the rest of your reply as I've cc:ed #1019698.


-- 
cheers,
	Holger

 ⢀⣴⠾⠻⢶⣦⠀
 ⣾⠁⢠⠒⠀⣿⡁  holger@(debian|reproducible-builds|layer-acht).org
 ⢿⡄⠘⠷⠚⠋⠀  OpenPGP: B8BF54137B09D35CF026FE9D 091AB856069AAA1C
 ⠈⠳⣄

"Climate change" is an euphenism. "Global warming" as well.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to [email protected], Debian Install System Team <[email protected]>:
Bug#1019697; Package debootstrap. (Wed, 14 Sep 2022 14:30:03 GMT) (full text, mbox, link).


Acknowledgement sent to Cyril Brulebois <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <[email protected]>. (Wed, 14 Sep 2022 14:30:03 GMT) (full text, mbox, link).


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

From: Cyril Brulebois <[email protected]>
To: Chris Lamb <[email protected]>, [email protected]
Cc: Holger Levsen <[email protected]>
Subject: Re: Bug#1019697: debootstrap: aid reproducible boostrapping by providing a --cleanup-logs option
Date: Wed, 14 Sep 2022 16:26:18 +0200
[Message part 1 (text/plain, inline)]
Chris Lamb <[email protected]> (2022-09-14):
> Would it be sensible to suggest that, instead of an explicit
> command-line flag, that debootstrap would do this cleanup if
> SOURCE_DATE_EPOCH is present?

LGTM, and much better than the command line flag I was definitely not a
huge fan of (as mentioned initially).

It would probably make sense to have a tiny note in the manpage so that
people can check the difference in behaviour if they notice and wonder.

> If it helps, the idea of using the presence (or non-presence) of
> SOURCE_DATE_EPOCH to slightly adjust the behaviour of a program is
> already being used as a flag in other places.

Good to know, thanks.


Cheers,
-- 
Cyril Brulebois ([email protected])            <https://debamax.com/>
D-I release manager -- Release team member -- Freelance Consultant
[signature.asc (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 05:15:53 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.