From d71b03547ba7c281e659b1f08b836d7053230356 Mon Sep 17 00:00:00 2001 From: Liran Rotenberg Date: Tue, 12 Mar 2024 09:41:48 +0200 Subject: [PATCH] Add root first to cold v2v command When importing from vSphere a multiple-boot operation system v2v will ask the user which one to use. In our case virt-v2v isn't interactively. Therefore, we will default to the first boot device as we done previsouly. Signed-off-by: Liran Rotenberg --- virt-v2v/cold/entrypoint | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/virt-v2v/cold/entrypoint b/virt-v2v/cold/entrypoint index 3792fe2bf..18851826d 100755 --- a/virt-v2v/cold/entrypoint +++ b/virt-v2v/cold/entrypoint @@ -21,7 +21,7 @@ if [ "$V2V_source" == "vCenter" ] ; then echo " V2V_libvirtURL, V2V_secretKey, V2V_vmName" exit 1 fi - args+=(-i libvirt -ic "$V2V_libvirtURL") + args+=(--root first -i libvirt -ic "$V2V_libvirtURL") fi if [ "$V2V_source" == "ova" ] ; then @@ -91,4 +91,4 @@ echo "Starting virt-v2v" set -x ls -l "$DIR" -exec "${args[@]}" |& /usr/local/bin/virt-v2v-monitor \ No newline at end of file +exec "${args[@]}" |& /usr/local/bin/virt-v2v-monitor