From 98d7c5b88e79717ba6d638b2e77a189952ec09ca Mon Sep 17 00:00:00 2001 From: P3tray <31691973+P3tray@users.noreply.github.com> Date: Sat, 28 Mar 2026 17:49:50 +0000 Subject: [PATCH] Update initramfs dracut check to include Garuda --- envycontrol.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/envycontrol.py b/envycontrol.py index 320d56e..6cf739c 100755 --- a/envycontrol.py +++ b/envycontrol.py @@ -493,8 +493,8 @@ 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'): + # EndeavourOS and Garuda with dracut + elif (os.path.exists('/usr/lib/endeavouros-release') or os.path.exists('/usr/lib/garuda')) and os.path.exists('/usr/bin/dracut'): command = ['dracut-rebuild'] # ALT Linux elif os.path.exists('/etc/altlinux-release'):