commit 220d3039ef9e79c64416c666ee68e4b91d11cfbf parent 3489c52f5e29d8721fa2c74eb3a4226449e02814 Author: Jan Pobrislo <ccx@webprojekty.cz> Date: Fri, 22 Feb 2019 04:30:39 +0100 Actually check for syslinux MBR presence. Diffstat:
| M | bin/confz | | | 1 | + |
| M | zsh-functions/confz_fs_init | | | 7 | ++----- |
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/bin/confz b/bin/confz @@ -214,6 +214,7 @@ require() { else if (($verbose)); then print -r - "$confz_indent$fg[cyan]*$fg[default] reason: ${fail_reason:-error $check_ret}" + (($+functions[confz_${name}_do)) typeset -f -t confz_${name}_do fi confz_do "${do_command[@]}" "$@" diff --git a/zsh-functions/confz_fs_init b/zsh-functions/confz_fs_init @@ -206,11 +206,8 @@ confz_disklabel_gpt_check() { # embed file in MBR confz_mbr_code_check() { checkvars device from - if dd if=$vars[device] bs=440 count=1 | cmp -s - $vars[from]; then - return 0 - else - do_command=( dd bs=440B count=1 if=$vars[from] of=$vars[device] ) - fi + do_command=( dd bs=440B count=1 if=$vars[from] of=$vars[device] ) + dd if=$vars[device] bs=440 count=1 | cmp -s - $vars[from] }