#1110526 install_packages: filtering of unknown packages does not work

Package:
fai-client
Source:
fai-client
Submitter:
Henning Glawe
Date:
2025-12-03 11:53:02 UTC
Severity:
normal
Tags:
#1110526#5
Date:
2025-08-07 17:19:09 UTC
From:
To:
There is a typo in `/usr/sbin/install_packages` that disables filtering of
unknown packages:

```diff
--- /usr/sbin/install_packages.orig	2025-08-07 18:56:10.602397754 +0200
+++ /usr/sbin/install_packages	2025-08-07 19:13:33.965226946 +0200
@@ -402,7 +402,7 @@
   # @known contains the known packages

   # on Debian system, clean list of packages
-  if ( ! $opt_N && -f "$FAI_ROOT/usr/sbin/apt-cache" ) {
+  if ( ! $opt_N && -f "$FAI_ROOT/usr/bin/apt-cache" ) {
     @known = clean_pkg_list(@complete);
   } else {
     @known = @complete;
```

Result is that apt fails if there are any unknown or obsolete
packages in your config.

#1110526#10
Date:
2025-08-07 19:38:51 UTC
From:
To:
This patch cannot be applied, since we already modified the script, so
it does not use this path any more.

#1110526#15
Date:
2025-08-07 19:38:51 UTC
From:
To:
This patch cannot be applied, since we already modified the script, so
it does not use this path any more.

#1110526#20
Date:
2025-08-12 09:32:24 UTC
From:
To:
Moin Thomas,

Makes sense. Could you aim for your bugfix to enter the next Trixie
pointrelease?

The 'unknown package filter' is quite useful during transitions between
debian releases, in order to:
- update package names in your FAI config (e.g. imagemagick-6 ->
  imagemagick-7)
- or rebuild custom packages for a new debian release

#1110526#25
Date:
2025-08-12 09:32:24 UTC
From:
To:
Moin Thomas,

Makes sense. Could you aim for your bugfix to enter the next Trixie
pointrelease?

The 'unknown package filter' is quite useful during transitions between
debian releases, in order to:
- update package names in your FAI config (e.g. imagemagick-6 ->
  imagemagick-7)
- or rebuild custom packages for a new debian release

#1110526#30
Date:
2025-08-12 13:40:15 UTC
From:
To:
    > Makes sense. Could you aim for your bugfix to enter the next Trixie
    > pointrelease?
I do not plan to do this. There will be newer FAI packages in the
fai-project.org repository at some point for trixie.
You can use extrepo for easily install packages from this repo.

#1110526#35
Date:
2025-08-12 13:40:15 UTC
From:
To:
    > Makes sense. Could you aim for your bugfix to enter the next Trixie
    > pointrelease?
I do not plan to do this. There will be newer FAI packages in the
fai-project.org repository at some point for trixie.
You can use extrepo for easily install packages from this repo.

#1110526#40
Date:
2025-12-03 11:49:44 UTC
From:
To:
Package: fai-client
Version: 6.5

This bug was fixed in FAI 6.5.