efi-sync

Automatically install your kernel and initrd into the EFI
Log | Files | Refs | README

commit e82682aef783dec0bc5383b146eae8e05185c6f1
parent 7840c58155ba898a4f325edabe7fa55259394875
Author: Slack Coder <slackcoder@server.ky>
Date:   Sat, 27 Apr 2024 13:05:43 -0500

Correct root check

Fix a bug where the username was not being sourced correctly.  The
'USER' environment variable is not set in sysVinit scripts.

Diffstat:
Mefi-sync | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/efi-sync b/efi-sync @@ -43,7 +43,7 @@ require_efi () { } require_root () { - if [[ $USER != "root" ]]; then + if [[ "$(id --user --name)" != "root" ]]; then log "command must be run as root" exit 1 fi