Skip to content

Commit

Permalink
use cwd attribute rather than os.chdir()
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxHearnden committed Nov 28, 2023
1 parent 31f4ef4 commit 255164c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rootfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,7 @@ def bootstrap(args, system_a, system_c, tmpdir):
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:
Expand Down

0 comments on commit 255164c

Please sign in to comment.