From b8787aa9a81a641db95e6d5bc2d0ee5ec7691186 Mon Sep 17 00:00:00 2001 From: dalto Date: Tue, 14 Mar 2023 14:29:17 -0500 Subject: [PATCH 1/2] Update EndeavourOS support --- envycontrol.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/envycontrol.py b/envycontrol.py index 7ffa32f..826e527 100755 --- a/envycontrol.py +++ b/envycontrol.py @@ -397,9 +397,12 @@ def rebuild_initramfs(): # RHEL and SUSE derivatives elif os.path.exists('/etc/redhat-release') or os.path.exists('/usr/bin/zypper'): command = ['dracut', '--force', '--regenerate-all'] - # EndeavourOS with dracut - elif os.path.exists('/usr/lib/endeavouros-release') and os.path.exists('/usr/bin/dracut'): - command = ['dracut', '--force', '--regenerate-all'] + # EndeavourOS + elif os.path.exists('/usr/lib/endeavouros-release'): + if os.path.exists('/usr/bin/dracut'): + command = ['dracut-rebuild'] + else: + command = ['mkinitcpio', '-P'] else: command = [] From 94cd66de421b8b7dc3f111d95a6595915a1b8a1f Mon Sep 17 00:00:00 2001 From: dalto Date: Tue, 14 Mar 2023 14:43:48 -0500 Subject: [PATCH 2/2] Make EndeavourOS support dracut-only --- envycontrol.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/envycontrol.py b/envycontrol.py index 826e527..9bb3d4d 100755 --- a/envycontrol.py +++ b/envycontrol.py @@ -397,12 +397,9 @@ def rebuild_initramfs(): # RHEL and SUSE derivatives elif os.path.exists('/etc/redhat-release') or os.path.exists('/usr/bin/zypper'): command = ['dracut', '--force', '--regenerate-all'] - # EndeavourOS - elif os.path.exists('/usr/lib/endeavouros-release'): - if os.path.exists('/usr/bin/dracut'): - command = ['dracut-rebuild'] - else: - command = ['mkinitcpio', '-P'] + # EndeavourOS with dracut + elif os.path.exists('/usr/lib/endeavouros-release') and os.path.exists('/usr/bin/dracut'): + command = ['dracut-rebuild'] else: command = []