New comment by sgn on void-packages repository https://github.com/void-linux/void-packages/pull/24079#issuecomment-669640399 Comment: On 2020-08-05 18:50:05-0700, "Andrew J. Hesford" wrote: > @ahesford commented on this pull request. > > > > > @@ -13,7 +13,7 @@ if [ "z$UPDATE_REFIND_CONF" != "z1" ]; then > fi > > # Default refind.conf > -: "${REFIND_CONF:=/boot/EFI/refind/refind.conf}" > +: "${REFIND_CONF:=boot/EFI/refind/refind.conf}" > > The `post-install` is too complicated. What about > ``` > REFIND_CONF="$(readlink -m "${ROOTDIR}/${REFIND_CONF:-boot/EFI/refind/refind.conf}" 2>/dev/null)" > [ -n "${REFIND_CONF}" ] || exit 0 > ``` > Since we already rely on `cat`, which is in `coreutils` alongside > `readlink`, I don't have a problem just assuming readlink exists. We > also just assume `awk` and `sed` are available anyway. The complicated logic below it to ensure if we don't have `boot/EFI/refind/refind.conf`, we'll create it. So, `exit 0` isn't a right choice. for sbsigntool, please use the commit from #23688 -- Danh