-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds grub-mkconfig script that deletes itself
This is to prevent users from running this script, since that would brick their system.
- Loading branch information
Showing
4 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
set -e | ||
/usr/libexec/grub-mkconfig "$@" | ||
# delete this script so users don't accidentally break their system with it | ||
rm /usr/sbin/grub-mkconfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
echo please use abroot to update the grub configuration | ||
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: move-boot-scripts | ||
type: shell | ||
commands: | ||
- mkdir -p /usr/libexec/ | ||
- mv /usr/sbin/grub-mkconfig /usr/libexec/ | ||
- mv /usr/sbin/grub-mkconfig-replacement /usr/sbin/grub-mkconfig | ||
- chmod +x /usr/sbin/grub-mkconfig | ||
- mv /usr/sbin/update-grub /usr/libexec/ | ||
- mv /usr/sbin/update-grub-replacement /usr/sbin/update-grub | ||
- chmod +x /usr/sbin/update-grub | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters