From 0ef959338448e76e1f19515941215bcbf53c99f4 Mon Sep 17 00:00:00 2001 From: Natalia Serrano Date: Mon, 16 Jun 2025 15:21:07 +0200 Subject: [PATCH] refs #2225 take ogrepo ssh key --- boottools/btog.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boottools/btog.py b/boottools/btog.py index 26a6721..0f1c463 100644 --- a/boottools/btog.py +++ b/boottools/btog.py @@ -229,6 +229,8 @@ def copy_og_files (builder, og_shared, ogrepo_ssh_key, ogclientmount, osdistrib, os.makedirs (f'{ogclientmount}/root/.ssh', exist_ok=True) shutil.copy (f'{ogrepo_ssh_key}/opengnsys', f'{ogclientmount}/root/.ssh/id_ed25519') shutil.copy (f'{ogrepo_ssh_key}/opengnsys.pub', f'{ogclientmount}/root/.ssh/id_ed25519.pub') + os.chmod (f'{ogclientmount}/root/.ssh/id_ed25519', 0o0600) + os.chmod (f'{ogclientmount}/root/.ssh/id_ed25519.pub', 0o0600) subprocess.run (f'rsync -aH {builder}/includes/* {ogclientmount}/' , shell=True) subprocess.run (f'rsync -aH {og_shared}/* {ogclientmount}/opt/opengnsys/', shell=True)