bootdevice: Refactor get_boot_devices_list
commit42f068019926078e8cd61c7c4357143199003f0b
authorSam Eiderman <shmuel.eiderman@oracle.com>
Wed, 16 Oct 2019 16:41:43 +0000 (16 19:41 +0300)
committerJohn Snow <jsnow@redhat.com>
Thu, 31 Oct 2019 15:47:33 +0000 (31 11:47 -0400)
treecb292daaa539746e22fb0be4fa99f1eb836f661c
parent71f571a23d732711908a5af8c24c56b218a44256
bootdevice: Refactor get_boot_devices_list

Move device name construction to a separate function.

We will reuse this function in the following commit to pass logical CHS
parameters through fw_cfg much like we currently pass bootindex.

Reviewed-by: Karl Heubaum <karl.heubaum@oracle.com>
Reviewed-by: Arbel Moshe <arbel.moshe@oracle.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Sam Eiderman <shmuel.eiderman@oracle.com>
Signed-off-by: Sam Eiderman <sameid@google.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
bootdevice.c