mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Setup EFI vars device when EFI booting.
This also allows Virgil 3D to work when EFI booting
This commit is contained in:
parent
c61c3dad2a
commit
44ca3689d8
2 changed files with 8 additions and 4 deletions
|
@ -83,7 +83,7 @@ Usage
|
||||||
|
|
||||||
You can also pass optional parameters
|
You can also pass optional parameters
|
||||||
--delete : Delete the disk image.
|
--delete : Delete the disk image.
|
||||||
--efi : Enable EFI BIOS (experimental).
|
--efi : Enable EFI BIOS.
|
||||||
--restore : Restore the snapshot.
|
--restore : Restore the snapshot.
|
||||||
--snapshot : Create a disk snapshot.
|
--snapshot : Create a disk snapshot.
|
||||||
```
|
```
|
||||||
|
@ -95,4 +95,5 @@ You can also pass optional parameters
|
||||||
- [x] Make disk image optionally size configurable
|
- [x] Make disk image optionally size configurable
|
||||||
- [ ] Improve snapshot management
|
- [ ] Improve snapshot management
|
||||||
- [ ] Create desktop launcher for a VM
|
- [ ] Create desktop launcher for a VM
|
||||||
|
- [x] Fix Virgil 3D on EFI boot
|
||||||
- [x] Get QEMU `-audiodev` working for audio input, something like:
|
- [x] Get QEMU `-audiodev` working for audio input, something like:
|
|
@ -44,6 +44,7 @@ function get_port() {
|
||||||
|
|
||||||
function vm_boot() {
|
function vm_boot() {
|
||||||
local VMNAME=$(basename ${VM} .conf)
|
local VMNAME=$(basename ${VM} .conf)
|
||||||
|
local VMDIR=$(dirname ${disk_img})
|
||||||
local BIOS=""
|
local BIOS=""
|
||||||
local GL="on"
|
local GL="on"
|
||||||
local VIRGL="on"
|
local VIRGL="on"
|
||||||
|
@ -66,8 +67,10 @@ function vm_boot() {
|
||||||
|
|
||||||
if [ ${ENABLE_EFI} -eq 1 ]; then
|
if [ ${ENABLE_EFI} -eq 1 ]; then
|
||||||
if [ -e /snap/qemu-virgil/current/usr/share/qemu/edk2-x86_64-code.fd ] ; then
|
if [ -e /snap/qemu-virgil/current/usr/share/qemu/edk2-x86_64-code.fd ] ; then
|
||||||
BIOS="-drive if=pflash,format=raw,readonly,file=/snap/qemu-virgil/current/usr/share/qemu/edk2-x86_64-code.fd"
|
if [ ! -e ${VMDIR}/${VMNAME}-vars.fd ]; then
|
||||||
VIRGL="off"
|
cp /snap/qemu-virgil/current/usr/share/qemu/edk2-i386-vars.fd ${VMDIR}/${VMNAME}-vars.fd
|
||||||
|
fi
|
||||||
|
BIOS="-drive if=pflash,format=raw,readonly,file=/snap/qemu-virgil/current/usr/share/qemu/edk2-x86_64-code.fd -drive if=pflash,format=raw,file=${VMDIR}/${VMNAME}-vars.fd"
|
||||||
else
|
else
|
||||||
echo " - EFI: Booting requested but no EFI firmware found."
|
echo " - EFI: Booting requested but no EFI firmware found."
|
||||||
echo " Booting from Legacy BIOS."
|
echo " Booting from Legacy BIOS."
|
||||||
|
@ -201,7 +204,7 @@ function usage() {
|
||||||
echo
|
echo
|
||||||
echo "You can also pass optional parameters"
|
echo "You can also pass optional parameters"
|
||||||
echo " --delete : Delete the disk image."
|
echo " --delete : Delete the disk image."
|
||||||
echo " --efi : Enable EFI BIOS (experimental)."
|
echo " --efi : Enable EFI BIOS."
|
||||||
echo " --restore : Restore the snapshot."
|
echo " --restore : Restore the snapshot."
|
||||||
echo " --snapshot : Create a disk snapshot."
|
echo " --snapshot : Create a disk snapshot."
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue