>>>>> On Wed, 23 Jun 2021 01:59:43 +0200, Guillem Jover <guil...@debian.org> >>>>> said:
> 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. I think I will use dpkg-query instead of dpkg. > * 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. In my developer version of FAI, this is already replaced by parsing apt-cache dumpavail. > 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». I've checked on several machines, and it seems that /var/lib/dpkg/available is not used any more. On one machine it's just empty, on another machine the content is outdated since some years. So using dpkg --print-avail does not work any more or gives wrong output. > * bin/fai-make-nfsroot > The add_packages_nfsroot() function and the main routine, write into > the available db directly, these should instead use This is already removed in my developer version. Does a Debian system need /var/lib/dpkg/available at all these days? -- regards Thomas