initial commit
This commit is contained in:
11
bin/nomarchy-update-analyze-logs
Executable file
11
bin/nomarchy-update-analyze-logs
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
update_log="/tmp/nomarchy-update.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
|
||||
Reference in New Issue
Block a user