mirror of
https://github.com/Snigdha-OS/snigdhaos-system-config.git
synced 2025-09-20 19:44:58 +02:00
@eshanized: push via push.sh!!!
This commit is contained in:
9
etc/pacman.d/hooks/grub-install.hook
Normal file
9
etc/pacman.d/hooks/grub-install.hook
Normal file
@@ -0,0 +1,9 @@
|
||||
[Trigger]
|
||||
Operation = Upgrade
|
||||
Type = Package
|
||||
Target = grub
|
||||
|
||||
[Action]
|
||||
Description = Executing grub-install - not when on systemd-boot
|
||||
When = PostTransaction
|
||||
Exec = /usr/local/bin/snigdhaos-systemd-test
|
10
local/bin/snigdhaos-systemd-test
Normal file
10
local/bin/snigdhaos-systemd-test
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/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
|
Reference in New Issue
Block a user