14 lines
407 B
Bash
14 lines
407 B
Bash
|
|
#!/bin/bash
|
||
|
|
|
||
|
|
# archypr:summary=Check the update log for known failure conditions
|
||
|
|
|
||
|
|
update_log="/tmp/archypr-pdate.log"
|
||
|
|
|
||
|
|
# Check for initramfs generation failure
|
||
|
|
if grep -q "Updating linux initcpios" "$update_log"; then
|
||
|
|
if ! grep -q "Initcpio image generation successful" "$update_log"; then
|
||
|
|
echo -e '\e[31mError: Initramfs generation may have failed. Review logs before restart.\e[0m'
|
||
|
|
echo
|
||
|
|
fi
|
||
|
|
fi
|