labs: pass VM_NAME as an argument
Don't pass VM_NAME via environment variable to vbox_kbd_escape_key and vbox_kbd_enter_key. Use an argument instead. Change-Id: I7714f52ab4f80a83595e052974258e9f2e597435
This commit is contained in:
committed by
Pranav Salunke
parent
28bf013a7d
commit
4cb74e31ef
@@ -28,7 +28,7 @@ function vbox_distro_start_installer {
|
||||
|
||||
local BOOT_ARGS=$(printf "$_BOOT_ARGS" "${!KICKSTART}")
|
||||
|
||||
vbox_kbd_escape_key
|
||||
vbox_kbd_escape_key "$VM_NAME"
|
||||
|
||||
vbox_sleep 1
|
||||
|
||||
@@ -36,7 +36,7 @@ function vbox_distro_start_installer {
|
||||
vbox_kbd_string_input "$VM_NAME" "$BOOT_ARGS"
|
||||
|
||||
echo "Initiating boot sequence"
|
||||
vbox_kbd_enter_key
|
||||
vbox_kbd_enter_key "$VM_NAME"
|
||||
}
|
||||
|
||||
# vim: set ai ts=4 sw=4 et ft=sh:
|
||||
|
||||
@@ -37,9 +37,9 @@ function vbox_distro_start_installer {
|
||||
|
||||
local BOOT_ARGS=$(printf "$_BOOT_ARGS" "${!PRESEED}")
|
||||
|
||||
vbox_kbd_escape_key
|
||||
vbox_kbd_escape_key
|
||||
vbox_kbd_enter_key
|
||||
vbox_kbd_escape_key "$VM_NAME"
|
||||
vbox_kbd_escape_key "$VM_NAME"
|
||||
vbox_kbd_enter_key "$VM_NAME"
|
||||
|
||||
vbox_sleep 1
|
||||
|
||||
@@ -47,7 +47,7 @@ function vbox_distro_start_installer {
|
||||
vbox_kbd_string_input "$VM_NAME" "$BOOT_ARGS"
|
||||
|
||||
echo "Initiating boot sequence"
|
||||
vbox_kbd_enter_key
|
||||
vbox_kbd_enter_key "$VM_NAME"
|
||||
}
|
||||
|
||||
# vim: set ai ts=4 sw=4 et ft=sh:
|
||||
|
||||
@@ -37,9 +37,9 @@ function vbox_distro_start_installer {
|
||||
|
||||
local BOOT_ARGS=$(printf "$_BOOT_ARGS" "${!PRESEED}")
|
||||
|
||||
vbox_kbd_escape_key
|
||||
vbox_kbd_escape_key
|
||||
vbox_kbd_enter_key
|
||||
vbox_kbd_escape_key "$VM_NAME"
|
||||
vbox_kbd_escape_key "$VM_NAME"
|
||||
vbox_kbd_enter_key "$VM_NAME"
|
||||
|
||||
vbox_sleep 1
|
||||
|
||||
@@ -47,7 +47,7 @@ function vbox_distro_start_installer {
|
||||
vbox_kbd_string_input "$VM_NAME" "$BOOT_ARGS"
|
||||
|
||||
echo "Initiating boot sequence"
|
||||
vbox_kbd_enter_key
|
||||
vbox_kbd_enter_key "$VM_NAME"
|
||||
}
|
||||
|
||||
# vim: set ai ts=4 sw=4 et ft=sh:
|
||||
|
||||
@@ -670,10 +670,12 @@ function _vbox_push_scancode {
|
||||
}
|
||||
|
||||
function vbox_kbd_escape_key {
|
||||
local VM_NAME=$1
|
||||
_vbox_push_scancode "$VM_NAME" "$(esc2scancode)"
|
||||
}
|
||||
|
||||
function vbox_kbd_enter_key {
|
||||
local VM_NAME=$1
|
||||
_vbox_push_scancode "$VM_NAME" "$(enter2scancode)"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user