From 1b12c3c654070f044b525049f5b989cda1c38337 Mon Sep 17 00:00:00 2001 From: andreili Date: Sun, 7 Sep 2025 15:28:01 +0200 Subject: [PATCH] Fix owner for modules. --- scripts/os.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/os.py b/scripts/os.py index abfd4e6..87b92d8 100644 --- a/scripts/os.py +++ b/scripts/os.py @@ -233,12 +233,12 @@ class OS: my_env["XZ_OPT"] = "-9 --extreme --threads=0" self.__sudo(["tar", "xf", arch_fn], cwd=to_path, env=my_env) - def __make_sqh(self, root_path, to_file): + def __make_sqh(self, root_path, to_file, extra=""): Logger.os("Create squashed archive...") t_file = Path(to_file) if (t_file.is_file()): shutil.move(to_file, f"{to_file}.bak") - self.__sudo(["mksquashfs", root_path, to_file, "-comp", "xz", "-xattrs-exclude", "^system.nfs"]) + self.__sudo(f"mksquashfs {root_path} {to_file} -comp xz -xattrs-exclude ^system.nfs {extra}", shell=True) user = getpass.getuser() self.__sudo(["chown", user + ":" + user, to_file]) @@ -253,7 +253,7 @@ class OS: kmod = Path(kmod_fn) for f in kmod.iterdir(): sqh_name = f.name - self.__make_sqh(f"{kmod_fn}/../../..", f"{mod_path}/{sqh_name}.lzm") + self.__make_sqh(f"{kmod_fn}/../../..", f"{mod_path}/{sqh_name}.lzm", "-all-root") break def sqh(self):