kernel-update: fix symlink creation
Signed-off-by: Martin Matous <m@matous.dev>
This commit is contained in:
parent
514a2ac71d
commit
75d39f3233
1 changed files with 3 additions and 1 deletions
|
|
@ -28,7 +28,9 @@ def update_config(old_dir: Path, new_dir: Path, make_cmd: list[str]) -> None:
|
|||
shutil.copy2(old_config, new_config)
|
||||
|
||||
print(f'Setting symlink to {new_dir}')
|
||||
(SRC_DIR / 'linux').symlink_to(new_dir, target_is_directory=True)
|
||||
new_symlink = SRC_DIR / 'linux.updated'
|
||||
new_symlink.symlink_to(new_dir, target_is_directory=True)
|
||||
new_symlink.rename(SRC_DIR / 'linux')
|
||||
print('Migrating config options')
|
||||
migrate = [*make_cmd, '--directory', new_dir.as_posix(), 'oldconfig']
|
||||
subprocess.run(migrate, check=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue