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'):