From 1ceb81cd1226d7787704a18a1d54a03e4878e049 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 5062e0ab..b078f5fd 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/|"