Package: mmdebstrap
Version: 0.7.5-2.2
Severity: wishlist

Before /etc/machine-id, there was /etc/hostid.  It's kinda crap.
It is in glibc and coreutils, but only ZFS really uses it.

    https://manpages.debian.org/bullseye/manpages-dev/gethostid.3.en.html
    https://manpages.debian.org/bullseye/manpages-dev/sethostid.3.en.html
    https://manpages.debian.org/bullseye/coreutils/hostid.1.en.html
    
https://manpages.debian.org/bullseye-backports/zfsutils-linux/zgenhostid.8.en.html
    
https://manpages.debian.org/bullseye-backports/zfsutils-linux/zpoolprops.7.en.html#multihost

    # systemctl start zfs-import-scan
    zpool: cannot import 'test': pool was previously in use from another system.
    zpool: Last accessed by alice-understudy (hostid=31a99d02) at Tue May 16 
13:35:57 2023
    zpool: The pool can be imported, use 'zpool import -f' to import the pool.

With --include=zfs-dkms,zfsutils-linux you get an /etc/hostid in mmdebstrap's 
output.
I think /etc/hostid should be removed, like /etc/machine-id.
I think this would go under "cleanup/reproducible", like

        if (-e "$options->{root}/etc/hostid") {
            unlink "$options->{root}/etc/hostid"
              or error "cannot unlink /etc/hostid: $!";
        }


-- System Information:
Debian Release: 11.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 
'proposed-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.0.0-0.deb11.6-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mmdebstrap depends on:
ii  apt      2.2.4
ii  perl     5.32.1-4+deb11u2
ii  python3  3.9.2-3

Versions of packages mmdebstrap recommends:
ii  arch-test            0.17-1
ii  fakechroot           2.19-3.3
ii  fakeroot             1.25.3-1.1
ii  gpg                  2.2.27-2+deb11u2
ii  libdistro-info-perl  1.0
ii  mount                2.36.1-8+deb11u1
ii  uidmap               1:4.8.1-1

Versions of packages mmdebstrap suggests:
ii  apt [apt-transport-https]  2.2.4
pn  apt-transport-tor          <none>
ii  apt-utils                  2.2.4
ii  binfmt-support             2.2.1-1+deb11u1
ii  ca-certificates            20210119
pn  debootstrap                <none>
ii  distro-info-data           0.51+deb11u3
ii  dpkg-dev                   1.20.12
ii  perl-doc                   5.32.1-4+deb11u2
pn  proot                      <none>
ii  qemu-user                  1:7.2+dfsg-3~bpo11+1
ii  qemu-user-static           1:7.2+dfsg-3~bpo11+1
ii  squashfs-tools-ng          1.0.4-1

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/bin/mmdebstrap (from mmdebstrap package)

Reply via email to