Files
snigdhaos-system-config/usr/local/bin/snigdhaos-systemd-test
2024-11-19 09:21:57 +05:30

10 lines
301 B
Bash
Executable File

#!/bin/bash
boot=$(bootctl status | grep Product | awk '{printf($2)}')
echo "The system is using $boot to boot."
# shellcheck disable=SC2086
if [ $boot = "GRUB" ]; then
/usr/bin/grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=snigdhaos --disable-shim-lock --removable
fi