From 1eb4b0f6823effbf32351428f71f2ef1fa5679f6 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 18 Aug 2020 17:25:15 -0400 Subject: [PATCH] Copy all of scripts for genesis init --- confluent_server/bin/osdeploy | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/confluent_server/bin/osdeploy b/confluent_server/bin/osdeploy index 6dcfbb9f..83aa9edd 100644 --- a/confluent_server/bin/osdeploy +++ b/confluent_server/bin/osdeploy @@ -82,7 +82,6 @@ def initialize_genesis(): os.umask(0o22) os.makedirs('/var/lib/confluent/public/os/genesis-x86_64/boot/efi/boot', 0o755) os.makedirs('/var/lib/confluent/public/os/genesis-x86_64/boot/initramfs', 0o755) - os.makedirs('/var/lib/confluent/public/os/genesis-x86_64/scripts', 0o755) os.symlink('/opt/confluent/genesis/x86_64/boot/efi/boot/BOOTX64.EFI', '/var/lib/confluent/public/os/genesis-x86_64/boot/efi/boot/BOOTX64.EFI') os.symlink('/opt/confluent/genesis/x86_64/boot/efi/boot/grubx64.efi', @@ -95,10 +94,8 @@ def initialize_genesis(): '/var/lib/confluent/public/os/genesis-x86_64/boot/initramfs/addons.cpio') os.symlink('/opt/confluent/genesis/x86_64/boot/kernel', '/var/lib/confluent/public/os/genesis-x86_64/boot/kernel') - shutil.copyfile('/opt/confluent/lib/osdeploy/genesis/profiles/default/scripts/onboot.sh', - '/var/lib/confluent/public/os/genesis-x86_64/scripts/onboot.sh') - shutil.copyfile('/opt/confluent/lib/osdeploy/genesis/profiles/default/scripts/functions', - '/var/lib/confluent/public/os/genesis-x86_64/scripts/functions') + shutil.copytree('/opt/confluent/lib/osdeploy/genesis/profiles/default/scripts/', + '/var/lib/confluent/public/os/genesis-x86_64/scripts/') shutil.copyfile('/opt/confluent/lib/osdeploy/genesis/profiles/default/profile.yaml', '/var/lib/confluent/public/os/genesis-x86_64/profile.yaml') except Exception: