iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lots: shellcheck, streaming stuff, fixes
[distro-setup]
/
zboot
diff --git
a/zboot
b/zboot
index 4e4edce21a7ad5a97a6da4e9fcb0d7469b36fd6b..082afb5b4e03f5cff318637a7b0e6c276823d13a 100755
(executable)
--- a/
zboot
+++ b/
zboot
@@
-1,9
+1,8
@@
#!/bin/bash
#!/bin/bash
-script=$(readlink -f -- "$BASH_SOURCE")
-[[ $EUID == 0 ]] || exec sudo -E "$script" "$@"
+[[ $EUID == 0 ]] || exec sudo -E "${BASH_SOURCE[0]}" "$@"
-s
ource /usr/local/lib/err
+s
et -e; . /usr/local/lib/bash-bear; set +e
# Explaining this whole thing. The host amy is used by someone else,
# Explaining this whole thing. The host amy is used by someone else,
@@
-33,7
+32,7
@@
mount -o bind /dev dev
mount -o bind /proc proc
mount -o bind /sys sys
mkdir -p boot/efi
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
cp /b/ds/zboot-chroot ./root