Your message dated Tue, 01 Nov 2022 09:49:31 +0000
with message-id <e1opntj-00dkhv...@fasolo.debian.org>
and subject line Bug#990211: fixed in fai 6.0~alpha18
has caused the Debian Bug report #990211,
regarding fai: Accesses internal dpkg database
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
990211: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=990211
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: fai
Source-Version: 5.10.3
Severity: important
User: debian-d...@lists.debian.org
Usertags: dpkg-db-access-meta dpkg-db-access-inert

Hi!

This package contains multiple scripts that access the internal dpkg
database directly, instead of using publicly supported interfaces:

 * examples/simple/scripts/LAST/50-misc

   Checks for the existence of «$target/var/lib/dpkg/info/fai-server.list»
   to check whether the package is installed, it should instead use
   «dpkg-query --admindir $target/var/lib/dpkg --show fai-server»
   (dpkg-query does not currently support --root) or perhaps
   «dpkg --root $target --status fai-server» and get Status field from
   there.

 * bin/install_packages

   The function mkpackagelist() checks for the presence of the available
   file. The correct interface is «dpkg --root $FAI_ROOT --print-avail»,
   which will print nothing if the file is empty or missing.

   The function create_debian_pkg_list() parses the available file, but
   just as the above one, it should be switched to parse the output from
   «dpkg --root $FAI_ROOT --print-avail».

 * bin/fai-make-nfsroot

   The add_packages_nfsroot() function and the main routine, write into
   the available db directly, these should instead use
   «… apt-cache dumpavail | dpkg --root $NFSROOT --update-avail», and
   to remove the available db «dpkg --root $NFSROOT --clear-avail».



This is a problem for several reasons, because even though the layout and
format of the dpkg database is administrator friendly, and it is expected
that those might need to mess with it, in case of emergency, this
“interface” does not extend to other programs besides the dpkg suite of
tools. The admindir can also be configured differently at dpkg build or
run-time. And finally, the contents and its format, will be changing in
the near future.

Thanks,
Guillem

--- End Message ---
--- Begin Message ---
Source: fai
Source-Version: 6.0~alpha18
Done: Thomas Lange <la...@debian.org>

We believe that the bug you reported is fixed in the latest version of
fai, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 990...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Thomas Lange <la...@debian.org> (supplier of updated fai package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 01 Nov 2022 10:35:51 +0100
Source: fai
Architecture: source
Version: 6.0~alpha18
Distribution: experimental
Urgency: low
Maintainer: Thomas Lange <la...@debian.org>
Changed-By: Thomas Lange <la...@debian.org>
Closes: 844377 951659 977832 985303 987779 989547 990211 990633 999739 1000572 
1005745 1006847 1010593 1010906 1011642 1020976
Changes:
 fai (6.0~alpha18) experimental; urgency=low
 .
   [ Thomas Lange ]
   * fai-do-scripts: write output of all scripts to scripts.log,
     remove code for old cfengine versions (1 and 2)
   * fai-make-nfsroot: drop support for .asc files, use only .gpg
   * add autopkgtest
   * install_packages: add release=<name>
     feature, Closes: #844377, add pacman support
   * fetch-basefile: cuse curl instead of lftp, so https is now working
   * Commands.pm: special handling of nvme devices, Closes: #999739, quote
     variables, Closes: #977832, remove old code need by old version of
     mkfs.btrfs and lvcreate
   * fai-mk-network: usie iproute commands instead of brctl
   * fai-make-nfsroot: add dracut modul network-legacy, Closes: #1010906
     do not kill dhclient, Closes: #987779, drop support for dracut < 049,
     patch udev rule of lvm for bullseye, include empty machine-id into
     base.tar
   * Exec.pm: better error message, Closes: #1005745
   * fcopy: handle broken symlinks, Closes: #985303
   * fai-chboot: add variable substitution when coping a template, add
     option -a
   * fai-class: use of .source scripts now emits an error
   * fai-kvm: add -M for creating NVMe devices
   * fai-mirror: use only first line of bpo in sources.list,
     Closes: #1006847, print number of packages inside the mirror
   * fai-diskimage: call losetup with -P, Closes: #1010593, do not remove
     VGs, deactivate them, Closes: #990633, add option -c, print error if
     umount fails, increase number of tries
   * fai-cd: set TMPDIR for chroot, Closes: #1000572
   * fai-setup: create ECDSA keys
   * Fstab.pm: support tmpfs size -, this uses the system default size for
     tmpfs, Closes: #951659
   * setup-storage: add support for fstabkey:partlabel and
     fstabkey:partuuid, remove crypto keyfile after use
   * enhance disk_config format for partition label support
   * ftar: add support for zstd
   * fai: check if unshare can be used, Closes: #989547
     use only IPv4 address as hostname
     remove code for deprecated taskname prepareapt
   * watch: update to version 4, use new url
   * install_packages: parse apt-cache output, Closes: #990211
   * subroutines: umount tmpfs if config space was downloaded via http,
     Closes: #1011642
   * task_sysinfo: print machine readable partition information, do not
     call commands that modify the system if no run in FAI environment,
     print battery information
   * subroutines: add help functions:
       ctam (Chroot TArget Mount pseudo filesystems)
       ctau (Chroot TArget Umount)
       ctai (Chroot TArget Into)
       rm_target (remount /target read-write)
   * NFSROOT: cleanup package list, add cryptsetup
   * update my email address
   * mk-basefile: remove /var/lib/dbus/machine-id, use zstd instead of gzip
   * simple/examples: use fai-link and fai-sed instead of ln and sed,
     remove cryptsetup passphrase from logs, use class ROCKY instead of
     CENTOS, update Ubuntu support to 22.04, add CLOUD_EFI, use ext4 for
     /boot in LVM examples
 .
   [ Mike Gabriel ]
   * fai-abort:give job control to bash, Closes: #1020976
 .
   [ Juri Grabowski ]
   * install_packages: add support for alpine Linux apk and
     Archlinux pacman
 .
   [ Guido Günther ]
   * subroutines: allow one to pass a debootstrap script in FAI_DEBOOTSTRAP
 .
   [  Christian Meyer ]
   * fai-setup: add ECDSA-key to known_hosts
 .
   [ Aki Tuomi ]
   * check-cross-arch: fail on errors and unbound variables
 .
   [ Hannes Eberhardt ]
   * package_config/ROCKY: update EFI packages
Checksums-Sha1:
 f35ce0cdc3b619cee939112909b0d815e379bab2 2094 fai_6.0~alpha18.dsc
 674b1c7b65b723598428a5a954fb7a7fb1c0c3bf 292264 fai_6.0~alpha18.tar.xz
 db9ff332f9084be24ae96dc441c4d72398a6f0bc 16335 fai_6.0~alpha18_amd64.buildinfo
Checksums-Sha256:
 a2eeee10af04b9d54ac49c577fae929528f74bb98bb2943ab90e7ffa5e07d0e1 2094 
fai_6.0~alpha18.dsc
 9263d1be261d7147bae2cb3d3228adcd7e7dcdca95202cae37bc46be50178f6e 292264 
fai_6.0~alpha18.tar.xz
 3a046f05121684b5fc9adb81013c693ddf79c07ae742eb205e9f06d1dfce3862 16335 
fai_6.0~alpha18_amd64.buildinfo
Files:
 67980243672e5f65ace8dc6d4df9a1a1 2094 admin optional fai_6.0~alpha18.dsc
 19e58cf92d99a2a8a2dfbd20a3b41f35 292264 admin optional fai_6.0~alpha18.tar.xz
 c05b71d8da267f1fae911ae50da1c006 16335 admin optional 
fai_6.0~alpha18_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJFBAEBCAAvFiEEsR7jJz9rLetSjJPaK/jZ/gdLzeQFAmNg6OoRHGxhbmdlQGRl
Ymlhbi5vcmcACgkQK/jZ/gdLzeRWwQ//cfqMYM9nvYi7TrPkck/hdJrJd8dU84RR
8VUNjviCsqQ7/b4foSD7//qXk/o6GhlVEUgzAlHUM3En5cjvywuB4aNT95ta47lr
35wvRpO5LMvOXt2uE5q5GC98vELNoXezQW4S9JziUzqUgVR2x519kFJGQwQx/2Vg
JU3Z5U4mH06K+5qKs+s/9wgvjC4o/lCdGNql1dIn+nsrGE+ICRVEBEsecr2PbNtV
rBPImjeNcqnLruUcy3V1lvPQblPo0g8EhBS3r3moYm+gMsXKP3IoL7ElK+jlNqN6
FCx3tCwdbev6rt2ZeGaqzaUwagh2UzvQlHZg2gdSteWp5CmDQDwmwRr4qtYA5XfW
9xQSFUvGL12DuGzna/W9wrYysEdpUsWZMv8o75m0w/zewaXYmNZX6D92pIq/fLX9
L1x8Xth3qPP3VxmA99uGYJZrosA+DEWxMJ6KBwrnw179TxA9cM0GyQL0BozGF3u3
Ci17FRXuCH0LnZIlRoo7PVsQcUHmWCOrcyZsErimO8J5Exu3IbJVAPMUt5FVkAXn
8bbCp7It3feEUsE//w7y3J/fI+AMDFVAzU732U67v+Z7ZevvXQo5b9NtIEPW+vau
lWaS/BHNOt8wlMz36zfZeTP4q3H380EIMj3QskytOZRfaLpHUB2zBwMTgj2bGIhT
zTPKe4nhEH0=
=gvM2
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to