From 58cfa7ab24930020f6aee2f9ad66850d6e0619e0 Mon Sep 17 00:00:00 2001 From: Markus Hilger Date: Fri, 20 Nov 2026 12:48:48 +0100 Subject: [PATCH] Run initprofile.sh with a relaxed umask Debian's initprofile.sh copies the EFI loaders out of efi.img with mcopy. Under the daemon's 077 umask they became mode 0600 and could not be served over HTTP, so UEFI boot of a fresh debian profile failed. --- confluent_server/confluent/osimage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/osimage.py b/confluent_server/confluent/osimage.py index abeb3e36..5273e2c5 100644 --- a/confluent_server/confluent/osimage.py +++ b/confluent_server/confluent/osimage.py @@ -1323,7 +1323,7 @@ async def generate_stock_profiles(defprofile, distpath, targpath, osname, os.symlink(distpath, '{0}/distribution'.format(dirname)) await util.check_call( 'sh', '{0}/initprofile.sh'.format(dirname), - targpath, dirname) + targpath, dirname, preexec_fn=relax_umask) bootupdates.append(tasks.spawn_task(update_boot(dirname, True))) profilelist.append(profname) for upd in bootupdates: