@eshanized: push via push.sh!!!

This commit is contained in:
2024-03-07 11:39:56 +05:30
parent b0e31090c3
commit a4ebc91548
2 changed files with 19 additions and 0 deletions

View 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

View 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