mirror of
https://github.com/Snigdha-OS/snigdhaos-system-config.git
synced 2026-03-31 01:03:23 +02:00
11 lines
282 B
Bash
11 lines
282 B
Bash
#!/bin/bash
|
|
|
|
#set -e
|
|
|
|
boot=$(bootctl status | grep Product | awk '{printf($2)}')
|
|
echo "The system is using $boot to boot."
|
|
|
|
if [ $boot = "GRUB" ]; then
|
|
/usr/bin/grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=snigdhaos --disable-shim-lock --removable
|
|
fi
|