diff --git a/src/bootman/update.c b/src/bootman/update.c index 64ada63..6c300cc 100644 --- a/src/bootman/update.c +++ b/src/bootman/update.c @@ -293,6 +293,11 @@ static bool boot_manager_update_native(BootManager *self) LOG_SUCCESS("update_native: Bootloader updated"); + if (!boot_manager_copy_initrd_freestanding(self)) { + LOG_ERROR("Failed to copying freestanding initrd"); + return false; + } + /* This is mostly to allow a repair-situation */ if (running) { /* Not necessarily fatal. */ @@ -304,11 +309,6 @@ static bool boot_manager_update_native(BootManager *self) } } - if (!boot_manager_copy_initrd_freestanding(self)) { - LOG_ERROR("Failed to copying freestanding initrd"); - return false; - } - nc_hashmap_iter_init(mapped_kernels, &map_iter); while (nc_hashmap_iter_next(&map_iter, (void **)&kernel_type, (void **)&typed_kernels)) { Kernel *tip = NULL;