From 95c187f2cf5c1c77c7da164dc21a29e56d4f8588 Mon Sep 17 00:00:00 2001 From: Juerg Haefliger Date: Tue, 6 Feb 2024 12:06:52 +0100 Subject: [PATCH] bin/ubuntu-core-initramfs: Fix systemd package file paths In Noble, systemd package files moved from /lib to /usr/lib, account for that. Signed-off-by: Juerg Haefliger --- bin/ubuntu-core-initramfs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ubuntu-core-initramfs b/bin/ubuntu-core-initramfs index a5c31a49..bde87ff4 100755 --- a/bin/ubuntu-core-initramfs +++ b/bin/ubuntu-core-initramfs @@ -320,7 +320,7 @@ def install_systemd_files(dest_dir): # * udev rules # * Configuration for systemd-tmpfiles # TODO: some of this can be cleaned up - to_include = re.compile(r"^/lib/systemd/system|" + to_include = re.compile(r"^(/usr)?/lib/systemd/system|" r".*/modprobe\.d/|" r".*/sysctl\.d/|" r".*/rules\.d/|"