X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=zboot;fp=zboot;h=082afb5b4e03f5cff318637a7b0e6c276823d13a;hp=bf9c7c25a32b29c80ddf3317fa6d7c58913b1e53;hb=d67edcdca8795a4bca116aa532d02dda246a6f53;hpb=a9e3d60b4254cd5c6216c4b3e7f8cd5cc5107fad diff --git a/zboot b/zboot index bf9c7c2..082afb5 100755 --- a/zboot +++ b/zboot @@ -1,7 +1,6 @@ #!/bin/bash -script=$(readlink -f -- "$BASH_SOURCE") -[[ $EUID == 0 ]] || exec sudo -E "$script" "$@" +[[ $EUID == 0 ]] || exec sudo -E "${BASH_SOURCE[0]}" "$@" set -e; . /usr/local/lib/bash-bear; set +e @@ -33,7 +32,7 @@ mount -o bind /dev dev mount -o bind /proc proc mount -o bind /sys sys mkdir -p boot/efi -mount $(awk '$2 == "/boot/efi" {print $1}' /etc/mtab) boot/efi +mount "$(awk '$2 == "/boot/efi" {print $1}' /etc/mtab)" boot/efi cp /b/ds/zboot-chroot ./root