aboutsummaryrefslogtreecommitdiffstats
path: root/liveinit.tpl
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2019-11-02 11:12:47 +0100
committer Eric Hameleers <alien@slackware.com>2019-11-02 11:12:47 +0100
commit5adc982391d84fce49e4f068347836fb136e2713 (patch)
tree61c4a370be7befc7cbfac06d90ea71b8a9931b79 /liveinit.tpl
parent9a33e778f7e5a4e40eed3606e47f9a1e2dc4533a (diff)
downloadliveslak-5adc982391d84fce49e4f068347836fb136e2713.tar.gz
liveslak-5adc982391d84fce49e4f068347836fb136e2713.tar.xz
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.
Diffstat (limited to 'liveinit.tpl')
-rw-r--r--liveinit.tpl2
1 files changed, 1 insertions, 1 deletions
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