1018740">

Debian Bug report logs - #1018740
debootstrap: better initialisation of /etc/machine-id

version graph

Package: debootstrap; Maintainer for debootstrap is Debian Install System Team <debian-boot@lists.debian.org>; Source for debootstrap is src:debootstrap (PTS, buildd, popcon).

Reported by: Holger Levsen <holger@debian.org>

Date: Mon, 29 Aug 2022 20:57:02 UTC

Severity: normal

Found in version debootstrap/1.0.123+deb11u1

Reply or subscribe to this bug.

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


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#1018740; Package debootstrap. (Mon, 29 Aug 2022 20:57:04 GMT) (full text, mbox, link).


Acknowledgement sent to Holger Levsen <holger@debian.org>:
New Bug report received and forwarded. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Mon, 29 Aug 2022 20:57:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, into it... or support both via commandline flags :) > > from #debian-devel today: > > < bluca> for an image builder program, you can do two things with machine-id > < bluca> if you want the first boot logic to apply, you can initialize it to "uninitialized" > < bluca> if you don't want the first boot logic, have it as an empty file > < kibi> I think the behaviour changed between buster and bullseye; not sure what happened since > < kibi> (based on my recollection of > https://salsa.debian.org/raspi-team/image-specs/-/commit/26a7de63b0bb3de1b5d0c4d0529240721c322dbb for pi images) > < Md> | h01ger: when creating an image it is better to have an empty /etc/machine-id than just deleting it, because > this way something can bind-mount a writeable file over it in early boot > < josch> | h01ger: in case it helps, mmdebstrap writes "uninitialized" to /etc/machine-id > < bluca> empty -> no first boot semantics, uninitialized -> first boot semantics > < bluca> doc ref for the bug: https://www.freedesktop.org/software/systemd/man/machine-id.html#First%20Boot%20Semantics > > > -- > cheers, > Holger > > ⢀⣴⠾⠻⢶⣦⠀ > ⣾⠁⢠⠒⠀⣿⡁ holger@(debian|reproducible-builds|layer-acht).org > ⢿⡄⠘⠷⠚⠋⠀ OpenPGP: B8BF54137B09D35CF026FE9D 091AB856069AAA1C > ⠈⠳⣄ > > I'll believe in climate change when Texas freezes over. (Ted Cruz) &References=&subject=Re: debootstrap: better initialisisation of /etc/machine-id">reply):

From: Holger Levsen <holger@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: debootstrap: better initialisisation of /etc/machine-id
Date: Mon, 29 Aug 2022 22:52:07 +0200
[Message part 1 (text/plain, inline)]
Package: debootstrap
Version: 1.0.123+deb11u1
Severity: normal

Dear Maintainer,

after debootstrapping, /etc/machine-id has a regular machine-id as contents
which seems suboptimal as its unreproducible and also, and foremost, this
can have nasty side-effects...

So probably it would be better to either remove the file or write "uninitialized"
into it... or support both via commandline flags :)

from #debian-devel today:

< bluca> for an image builder program, you can do two things with machine-id
< bluca> if you want the first boot logic to apply, you can initialize it to "uninitialized"
< bluca> if you don't want the first boot logic, have it as an empty file
< kibi> I think the behaviour changed between buster and bullseye; not sure what happened since
< kibi> (based on my recollection of 
        https://salsa.debian.org/raspi-team/image-specs/-/commit/26a7de63b0bb3de1b5d0c4d0529240721c322dbb for pi images)
<         Md> | h01ger: when creating an image it is better to have an empty /etc/machine-id than just deleting it, because 
              this way something can bind-mount a writeable file over it in early boot
<      josch> | h01ger: in case it helps, mmdebstrap writes "uninitialized" to /etc/machine-id
< bluca> empty -> no first boot semantics, uninitialized -> first boot semantics
< bluca> doc ref for the bug: https://www.freedesktop.org/software/systemd/man/machine-id.html#First Boot Semantics


-- 
cheers,
	Holger

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

I'll believe in climate change when Texas freezes over. (Ted Cruz)
[signature.asc (application/pgp-signature, inline)]

Bug 1018740 cloned as bug 1018741 Request was from Holger Levsen <holger@layer-acht.org> to control@bugs.debian.org. (Mon, 29 Aug 2022 21:03:02 GMT) (full text, mbox, link).


Changed Bug title to 'debootstrap: better initialisation of /etc/machine-id' from 'debootstrap: better initialisisation of /etc/machine-id'. Request was from Holger Levsen <holger@layer-acht.org> to control@bugs.debian.org. (Mon, 29 Aug 2022 21:12:03 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#1018740; Package debootstrap. (Tue, 30 Aug 2022 09:18:02 GMT) (full text, mbox, link).


Acknowledgement sent to Cyril Brulebois <kibi@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Tue, 30 Aug 2022 09:18:02 GMT) (full text, mbox, link).


Message #14 received at 1018740@bugs.debian.org (full text, mbox, > For anyone wanting to look into this, it doesn't seem worth it to add a > command line flag for this… > > > Cheers, > -- > Cyril Brulebois (kibi@debian.org) > D-I release manager -- Release team member -- Freelance Consultant ">reply):

From: Cyril Brulebois <kibi@debian.org>
To: Holger Levsen <holger@debian.org>, 1018740@bugs.debian.org
Subject: Re: Bug#1018740: debootstrap: better initialisisation of /etc/machine-id
Date: Tue, 30 Aug 2022 11:14:54 +0200
[Message part 1 (text/plain, inline)]
Holger Levsen <holger@debian.org> (2022-08-29):
> So probably it would be better to either remove the file or write
> "uninitialized" into it... or support both via commandline flags :)

For anyone wanting to look into this, it doesn't seem worth it to add a
command line flag for this…


Cheers,
-- 
Cyril Brulebois (kibi@debian.org)            <https://debamax.com/>
D-I release manager -- Release team member -- Freelance Consultant
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#1018740; Package debootstrap. (Tue, 30 Aug 2022 09:33:03 GMT) (full text, mbox, link).


Acknowledgement sent to Holger Levsen <holger@layer-acht.org>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Tue, 30 Aug 2022 09:33:03 GMT) (full text, mbox, link).


Message #19 received at 1018740@bugs.debian.org (full text, mbox, > For anyone wanting to look into this, it doesn't seem worth it to add a > > command line flag for this… > > why do you think so? > > > -- > cheers, > Holger > > ⢀⣴⠾⠻⢶⣦⠀ > ⣾⠁⢠⠒⠀⣿⡁ holger@(debian|reproducible-builds|layer-acht).org > ⢿⡄⠘⠷⠚⠋⠀ OpenPGP: B8BF54137B09D35CF026FE9D 091AB856069AAA1C > ⠈⠳⣄ > > &fff ">reply):

From: Holger Levsen <holger@layer-acht.org>
To: Cyril Brulebois <kibi@debian.org>, 1018740@bugs.debian.org
Subject: Re: Bug#1018740: debootstrap: better initialisisation of /etc/machine-id
Date: Tue, 30 Aug 2022 09:28:37 +0000
[Message part 1 (text/plain, inline)]
On Tue, Aug 30, 2022 at 11:14:54AM +0200, Cyril Brulebois wrote:
> Holger Levsen <holger@debian.org> (2022-08-29):
> > So probably it would be better to either remove the file or write
> > "uninitialized" into it... or support both via commandline flags :)
> For anyone wanting to look into this, it doesn't seem worth it to add a
> command line flag for this…

why do you think so?


-- 
cheers,
	Holger

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

&fff
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#1018740; Package debootstrap. (Sun, 09 Oct 2022 08:33:05 GMT) (full text, mbox, link).


Acknowledgement sent to Bastian Blank <waldi@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Sun, 09 Oct 2022 08:33:06 GMT) (full text, mbox, link).


Message #24 received at 1018740@bugs.debian.org (full text, mbox, > into it... or support both via commandline flags :) > > Actually debootstrap must write it as _empty_, to avoid running into > first boot setup.[1] Only a tool who knows what comes next can actually > write "uninitialized" into it. > > Bastian > > [1]: https://www.freedesktop.org/software/systemd/man/machine-id.html > -- > "We have the right to survive!" > "Not by killing others." > -- Deela and Kirk, "Wink of An Eye", stardate 5710.5 > > &In-Reply-To=">reply):

From: Bastian Blank <waldi@debian.org>
To: Holger Levsen <holger@debian.org>, 1018740@bugs.debian.org
Subject: Re: Bug#1018740: debootstrap: better initialisisation of /etc/machine-id
Date: Sun, 9 Oct 2022 10:31:26 +0200
On Mon, Aug 29, 2022 at 10:52:07PM +0200, Holger Levsen wrote:
> So probably it would be better to either remove the file or write "uninitialized"
> into it... or support both via commandline flags :)

Actually debootstrap must write it as _empty_, to avoid running into
first boot setup.[1]  Only a tool who knows what comes next can actually
write "uninitialized" into it.

Bastian

[1]: https://www.freedesktop.org/software/systemd/man/machine-id.html
-- 
	"We have the right to survive!"
	"Not by killing others."
		-- Deela and Kirk, "Wink of An Eye", stardate 5710.5



Information forwarded to debian-bugs-dist@lists.debian.org, Debian Install System Team <debian-boot@lists.debian.org>:
Bug#1018740; Package debootstrap. (Mon, 17 Oct 2022 12:12:05 GMT) (full text, mbox, link).


Acknowledgement sent to Dean Elli <arethaaxyaj8ey8c@outlook.com>:
Extra info received and forwarded to list. Copy sent to Debian Install System Team <debian-boot@lists.debian.org>. (Mon, 17 Oct 2022 12:12:05 GMT) (full text, mbox, link).


Message #29 received at 1018740@bugs.debian.org (full text, mbox, reply):

From: Dean Elli <arethaaxyaj8ey8c@outlook.com>
Subject: For your kind attention!
Date: Mon, 17 Oct 2022 12:08:06 +0000
[Message part 1 (text/plain, inline)]
Your reputable profile gives me the impression that you will be a suitable partner in a crude oil licensing operations venture involving the National Oil Company of Equatorial Guinea (GEPetrol) and the company I work for which is Sinopec Group. This venture will see us netting in $14m in Revenue approximately per transaction.


On your response I will give you clearer details of this operation. I can be reached directly with the following email account;  boey.mangue@gmail.com


Regards,

Mangue Boey.

[Message part 2 (text/html, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Jan 31 00:43:26 2025; Machine Name: buxtehude

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.