Skip to content

Commit 6fb80e7

Browse files
committed
Use sshd instead of network plugin
1 parent d93b975 commit 6fb80e7

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

sdm-phase1

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,9 @@ then
218218
gfxcfgpostinstall yes
219219
fi
220220

221-
if ! ispluginselected network "$plugins"
221+
if ! ispluginselected sshd "$plugins"
222222
then
223-
logtoboth "> Enable SSH"
223+
logtoboth "> Plugin phase1: Configure SSH"
224224
dosshsetup service phase1
225225
fi
226226

@@ -231,11 +231,17 @@ logfreespace "at end of image customization"
231231
printnotes
232232

233233
#
234-
# Check for apt errors in the apt log
234+
# Check for apt issues in the apt log
235235
#
236236
if [ -f /etc/sdm/apt.log ]
237237
then
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
239245
fi
240246
#
241247
# Report run time

0 commit comments

Comments
 (0)