summaryrefslogtreecommitdiffstats
path: root/system76-driver-15.10.12-update-grub.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system76-driver-15.10.12-update-grub.patch')
-rw-r--r--system76-driver-15.10.12-update-grub.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/system76-driver-15.10.12-update-grub.patch b/system76-driver-15.10.12-update-grub.patch
new file mode 100644
index 0000000..0750c85
--- /dev/null
+++ b/system76-driver-15.10.12-update-grub.patch
@@ -0,0 +1,23 @@
+--- system76driver/actions.py.orig 2016-02-09 19:53:15.955662158 -0800
++++ system76driver/actions.py 2016-02-09 19:57:52.008898381 -0800
+@@ -29,6 +29,7 @@
+ from base64 import b32encode
+ import datetime
+ import logging
++import platform
+
+ from . import get_datafile
+ from .mockable import SubProcess
+@@ -74,7 +75,11 @@
+
+ def update_grub():
+ log.info('Calling `update-grub`...')
+- SubProcess.check_call(['update-grub'])
++ distname = platform.linux_distribution()[0]
++ if distname == "Ubuntu" or distname == "Debian":
++ SubProcess.check_call(['update-grub'])
++ else:
++ SubProcess.check_call(['grub2-mkconfig','-o','/boot/grub2/grub.cfg'])
+
+
+ class Action: