[gnome-boxes] unattended-file: Be aware of CDROM as an injection method
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] unattended-file: Be aware of CDROM as an injection method
- Date: Mon, 5 Aug 2019 14:17:16 +0000 (UTC)
commit 7f58e7dda6b05014f5f214f4bb627a14b2f2802d
Author: Fabiano FidĂȘncio <fidencio redhat com>
Date: Fri Jun 7 15:35:07 2019 +0200
unattended-file: Be aware of CDROM as an injection method
Let's make UnattendedScriptFile() aware of CDROM as a viable injection
method.
The reason why CDROM has been added *after* FLOPPY in the if-else is
because that's currently the only logic on Boxes side about preferred
injection method.
Signed-off-by: Fabiano FidĂȘncio <fidencio redhat com>
src/unattended-file.vala | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/unattended-file.vala b/src/unattended-file.vala
index 7705e73c..fc25f443 100644
--- a/src/unattended-file.vala
+++ b/src/unattended-file.vala
@@ -125,6 +125,8 @@ else if (InstallScriptInjectionMethod.DISK in injection_methods)
injection_method = InstallScriptInjectionMethod.DISK;
else if (InstallScriptInjectionMethod.FLOPPY in injection_methods)
injection_method = InstallScriptInjectionMethod.FLOPPY;
+ else if (InstallScriptInjectionMethod.CDROM in injection_methods)
+ injection_method = InstallScriptInjectionMethod.CDROM;
else
throw new GLib.IOError.NOT_SUPPORTED ("No supported injection method available.");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]