From c61bb6c1ab3b00df507b1ad0530835180efa5ce5 Mon Sep 17 00:00:00 2001 From: Andrii Sultanov Date: Thu, 25 Sep 2025 10:29:09 +0100 Subject: [PATCH] xenopsd/bootloader: No need to create /var/run/xend/boot anymore Since c00965172 ("pygrub: make sure /var/run/xend/boot exists before calling pygrub") added this safety measure, pygrub moved to using /var/run/xen/boot (see 63dcc68151 ("tools/pygrub: store kernels in /var/run/xen/pygrub") in upstream xen https://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=63dcc681511356d42645ef2c78955864e3b3e6b9) and started creating the directory itself (if it doesn't already exist). It's time to drop this unnecessary workaround. Signed-off-by: Andrii Sultanov --- ocaml/xenopsd/lib/bootloader.ml | 2 -- 1 file changed, 2 deletions(-) diff --git a/ocaml/xenopsd/lib/bootloader.ml b/ocaml/xenopsd/lib/bootloader.ml index 8e4012a90d1..ae91daf8c3a 100644 --- a/ocaml/xenopsd/lib/bootloader.ml +++ b/ocaml/xenopsd/lib/bootloader.ml @@ -223,8 +223,6 @@ let sanity_check_path p = let extract (task : Xenops_task.task_handle) ~bootloader ~disk ?(legacy_args = "") ?(extra_args = "") ?(pv_bootloader_args = "") ~vm:vm_uuid ~domid () = - (* Without this path, pygrub will fail: *) - Unixext.mkdir_rec "/var/run/xend/boot" 0o0755 ; let bootloader_path, cmdline = command bootloader true pv_bootloader_args disk vm_uuid domid in