From e42f4abd6124c31bbde28eb30726b092058a3054 Mon Sep 17 00:00:00 2001 From: Emanuele Torre Date: Sat, 20 Jun 2020 02:55:39 +0200 Subject: Meta: tweak build-image-grub.sh to allow running `make grub-image`.. without sudo. --- Meta/build-image-grub.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Meta/build-image-grub.sh') diff --git a/Meta/build-image-grub.sh b/Meta/build-image-grub.sh index 019761dd9d..6c1a428d24 100755 --- a/Meta/build-image-grub.sh +++ b/Meta/build-image-grub.sh @@ -8,7 +8,7 @@ die() { } if [ "$(id -u)" != 0 ]; then - die "this script needs to run as root" + exec sudo -E -- "$0" "$@" || die "this script needs to run as root" fi grub=$(command -v grub-install 2>/dev/null) || true -- cgit v1.2.3