Skip to content

Commit e2ba3d7

Browse files
authored
xenopsd/bootloader: No need to create /var/run/xend/boot anymore (#6686)
Since c009651 `("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](https://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=63dcc681511356d42645ef2c78955864e3b3e6b9) `("tools/pygrub: store kernels in /var/run/xen/pygrub")` in upstream xen ) and started creating the directory itself (if it doesn't already exist). It's time to drop this unnecessary workaround.
2 parents 539a08b + c61bb6c commit e2ba3d7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ocaml/xenopsd/lib/bootloader.ml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,6 @@ let sanity_check_path p =
223223
let extract (task : Xenops_task.task_handle) ~bootloader ~disk
224224
?(legacy_args = "") ?(extra_args = "") ?(pv_bootloader_args = "")
225225
~vm:vm_uuid ~domid () =
226-
(* Without this path, pygrub will fail: *)
227-
Unixext.mkdir_rec "/var/run/xend/boot" 0o0755 ;
228226
let bootloader_path, cmdline =
229227
command bootloader true pv_bootloader_args disk vm_uuid domid
230228
in

0 commit comments

Comments
 (0)