From 5adc982391d84fce49e4f068347836fb136e2713 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sat, 2 Nov 2019 11:12:47 +0100 Subject: liveinit.tpl: explicitly tell udevadm to add newly detected hardware The default for 'udevadm trigger' is 'change', not 'add', so the scriptline basically did nothing. This prevented some network devices from getting initialized because their subsystem is 'pci' and not 'net'. Thanks to Kanaya for debugging this with his Nvidia MCP51 ethernet device. --- liveinit.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'liveinit.tpl') diff --git a/liveinit.tpl b/liveinit.tpl index 6fd9620..a1c0aed 100644 --- a/liveinit.tpl +++ b/liveinit.tpl @@ -292,7 +292,7 @@ if [ -x /sbin/udevd -a -x /sbin/udevadm ]; then if [ -n "$NFSHOST" ]; then # We also need network devices if NFS root is requested: if [ -z "$(/sbin/udevadm trigger --subsystem-match=net --action=add -v -n |rev |cut -d/ -f1 |rev |grep -v lo)" ]; then - /sbin/udevadm trigger $DEBUGV + /sbin/udevadm trigger --action=add $DEBUGV else /sbin/udevadm trigger --subsystem-match=net --action=add $DEBUGV fi -- cgit v1.2.3