summarylogtreecommitdiffstats
path: root/actions.patch
diff options
context:
space:
mode:
authorMark Wagie2021-02-23 15:26:48 -0700
committerMark Wagie2021-02-23 15:26:48 -0700
commitfb495d68a608ba3274e302cba5242f37cce9ab71 (patch)
treee3181b1f90405bdb1addcf21608afb1181f7a391 /actions.patch
parent2c5a8598e4ad391622d627359200103e22268f12 (diff)
downloadaur-fb495d68a608ba3274e302cba5242f37cce9ab71.tar.gz
Use mkinitcpio instead of initramfs-tools
Diffstat (limited to 'actions.patch')
-rw-r--r--actions.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/actions.patch b/actions.patch
new file mode 100644
index 000000000000..f8994f7904d7
--- /dev/null
+++ b/actions.patch
@@ -0,0 +1,34 @@
+diff --unified --recursive --text a/system76driver/actions.py b/system76driver/actions.py
+--- a/system76driver/actions.py 2021-02-23 12:14:22.000000000 -0700
++++ b/system76driver/actions.py 2021-02-23 15:19:40.284093704 -0700
+@@ -102,8 +102,8 @@
+
+
+ def update_initramfs():
+- log.info('Calling `update-initramfs`...')
+- SubProcess.check_call(['update-initramfs', '-u'])
++ log.info('Calling `mkinitcpio`...')
++ SubProcess.check_call(['mkinitcpio', '-P'])
+
+
+ def parse_lspci(text):
+@@ -264,7 +264,7 @@
+ update_grub()
+
+ if any(action.update_initramfs for action in self.needed):
+- yield _('Running `update-initramfs`')
++ yield _('Running `mkinitcpio`')
+ update_initramfs()
+
+
+@@ -1494,8 +1494,8 @@
+
+ class i915_initramfs(FileAction):
+ update_initramfs = True
+- relpath = ('usr', 'share', 'initramfs-tools', 'modules.d', 's76-i915-initramfs.conf')
+- content = '# Added by system76-driver\ni915\n'
++ relpath = ('etc', 'modprobe.d', 's76-i915-mkinitcpio.conf')
++ content = '# Added by system76-driver\noptions i915\n'
+
+ def describe(self):
+ return _('Add i915 driver to initramfs')