This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=f9bf9b372ec76b8de8496b75edf123798f4ff35d

commit f9bf9b372ec76b8de8496b75edf123798f4ff35d
Author: Guillem Jover <[email protected]>
AuthorDate: Fri Apr 1 01:39:42 2022 +0200

    dpkg-fsys-usrunmess: Handle /lib/modules itself also being untracked
    
    For setups with completely untracked kernel and modules, we need to add
    also /lib/modules to the list of pathnames that need to be copied over,
    otherwise its contents will not find a directory to copy to.
    
    Closes: #1008764
---
 scripts/dpkg-fsys-usrunmess.pl | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/scripts/dpkg-fsys-usrunmess.pl b/scripts/dpkg-fsys-usrunmess.pl
index 3cb6a6f9b..cb1071d94 100755
--- a/scripts/dpkg-fsys-usrunmess.pl
+++ b/scripts/dpkg-fsys-usrunmess.pl
@@ -216,11 +216,13 @@ find({
             # Ignore pathname already handled.
         } elsif (exists $usr_mod_pathnames{"/usr$path"}) {
             # Ignore pathname owned elsewhere.
-        } else {
+        } elsif ($path eq '/lib/modules' or
+                 $path eq '/lib/modules/modprobe.conf' or
+                 $path =~ m{^/lib/modules/[0-9]}) {
             add_pathname($path, 'untracked modules');
         }
     },
-}, glob '/lib/modules/[0-9]* /lib/modules/modprobe.conf');
+}, '/lib/modules');
 
 
 my $sroot = '/.usrunmess';

-- 
Dpkg.Org's dpkg

Reply via email to