mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
fix hook error message
This commit is contained in:
parent
b474171595
commit
2180b83df7
1 changed files with 1 additions and 1 deletions
|
@ -5102,7 +5102,7 @@ configure_system() {
|
|||
HOOK_ERROR=""
|
||||
${EDITOR} ${DESTDIR}${FILE}
|
||||
for i in $(cat ${DESTDIR}/etc/mkinitcpio.conf | grep ^HOOKS | sed -e 's/"//g' -e 's/HOOKS=//g'); do
|
||||
[[ -e ${DESTDIR}/lib/initcpio/install/${i} ]] || HOOK_ERROR=1
|
||||
[[ -e ${DESTDIR}/usr/lib/initcpio/install/${i} ]] || HOOK_ERROR=1
|
||||
done
|
||||
if [[ "${HOOK_ERROR}" = "1" ]]; then
|
||||
DIALOG --msgbox "ERROR: Detected error in 'HOOKS=' line, please correct HOOKS= in /etc/mkinitcpio.conf!" 18 70
|
||||
|
|
Loading…
Reference in a new issue