File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 218218 gfxcfgpostinstall yes
219219fi
220220
221- if ! ispluginselected network " $plugins "
221+ if ! ispluginselected sshd " $plugins "
222222then
223- logtoboth " > Enable SSH"
223+ logtoboth " > Plugin phase1: Configure SSH"
224224 dosshsetup service phase1
225225fi
226226
@@ -231,11 +231,17 @@ logfreespace "at end of image customization"
231231printnotes
232232
233233#
234- # Check for apt errors in the apt log
234+ # Check for apt issues in the apt log
235235#
236236if [ -f /etc/sdm/apt.log ]
237237then
238- grep -q " ^E:" /etc/sdm/apt.log && logtoboth " ? apt reported errors; review /etc/sdm/apt.log"
238+ grep -q " E:" /etc/sdm/apt.log && logtobothex " ? apt reported errors; review /etc/sdm/apt.log"
239+ if grep -q " W: An error occurred" /etc/sdm/apt.log || grep -q " W: Failed to fetch" /etc/sdm/apt.log \
240+ || grep -q " signatures were invalid" /etc/sdm/apt.log || grep -q " W: Some index files failed to download" /etc/sdm/apt.log
241+ then
242+ [ " $aptcache " == " " ] && logtobothex " ? apt reported warnings; review /etc/sdm/apt.log" \
243+ || logtobothex " ? apt reported warnings; review /etc/sdm/apt.log and check your apt-cacher-ng server for problems"
244+ fi
239245fi
240246#
241247# Report run time
You can’t perform that action at this time.
0 commit comments