[gnome-boxes/wip/feborges/flatpak-net-bridge: 361/362] flatpak: Install /app/etc/qemu/bridge.conf for network bridge



commit c3ef35cf10a57cd2e4437e0f3c01b075ccd45b22
Author: Felipe Borges <felipeborges gnome org>
Date:   Mon Oct 1 16:00:30 2018 +0200

    flatpak: Install /app/etc/qemu/bridge.conf for network bridge
    
    This is necessary for qemu-bridge-helper to work.
    
    Ref #232

 data/bridge.conf | 2 ++
 data/meson.build | 4 ++++
 2 files changed, 6 insertions(+)
---
diff --git a/data/bridge.conf b/data/bridge.conf
new file mode 100644
index 00000000..ff8aa15d
--- /dev/null
+++ b/data/bridge.conf
@@ -0,0 +1,2 @@
+# This is necessary for qemu-bridge-helper to work
+allow virbr0
diff --git a/data/meson.build b/data/meson.build
index 0814380e..628090c2 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -109,4 +109,8 @@ configure_file (
 install_data ('QEMU_Session', install_dir : join_paths (data_dir, 'gnome-boxes/sources'))
 install_data ('disk.img', install_dir : join_paths (data_dir, 'gnome-boxes/unattended'))
 
+if get_option ('flatpak')
+  install_data ('bridge.conf', install_dir : '/app/etc/qemu')
+endif
+
 subdir ('osinfo')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]