[gnome-boxes/check-kvm-user] main: Instruct user in --checks how to add themselves to KVM group



commit 64aab8bb2c12f49f0dfe7a27426ddf8ddffb1535
Author: Felipe Borges <felipeborges gnome org>
Date:   Tue Sep 18 16:14:19 2018 +0200

    main: Instruct user in --checks how to add themselves to KVM group

 src/main.vala | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/main.vala b/src/main.vala
index a83a8b2d..fa170945 100644
--- a/src/main.vala
+++ b/src/main.vala
@@ -55,6 +55,8 @@ private async void run_checks () {
     GLib.stdout.printf (_("• The KVM module is loaded: %s\n").printf (Boxes.yes_no (kvm)));
     GLib.stdout.printf (_("• Libvirt KVM guest available: %s\n").printf (Boxes.yes_no (libvirt_kvm)));
     GLib.stdout.printf (_("• User is a member of KVM group: %s\n").printf (Boxes.yes_no (kvm_group)));
+    if (!kvm_group)
+        GLib.stdout.printf (Boxes.indent ("    ", "Please add your user to this group by running: \nsudo 
adduser $user kvm\n\n…and restart your system\n"));
     GLib.stdout.printf (_("• Boxes storage pool available: %s\n").printf (Boxes.yes_no (storage_pool)));
     if (storage_pool_diagnosis.length != 0)
         GLib.stdout.printf (Boxes.indent ("    ", storage_pool_diagnosis) + "\n");


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