From 255164c66496bc646c3a1e9262deb2df05aa82a8 Mon Sep 17 00:00:00 2001 From: MaxHearnden Date: Tue, 28 Nov 2023 21:39:23 +0000 Subject: [PATCH] use cwd attribute rather than os.chdir() --- rootfs.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rootfs.py b/rootfs.py index 0015375f..cda68cf7 100755 --- a/rootfs.py +++ b/rootfs.py @@ -239,8 +239,7 @@ print(shutil.which('chroot')) arch = stage0_arch_map.get(args.arch, args.arch) init = os.path.join('bootstrap-seeds', 'POSIX', arch, 'kaem-optional-seed') - os.chdir(system_a.tmp_dir) - run(init) + run(init, cwd = system_a.tmp_dir) elif args.bare_metal: if args.kernel: