Skip to content

Commit 13b21ac

Browse files
neeshyleahneukirchen
authored andcommitted
Use global substitution on commas in modules-load
Without this only the first occurrence is replaced
1 parent 8dec495 commit 13b21ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules-load

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export PATH=/bin:/sbin
55

66
{
77
# Parameters passed as modules-load= or rd.modules-load= in kernel command line.
8-
sed -nr 's/,/\n/;s/(.* |^)(rd\.)?modules-load=([^ ]*).*/\3/p' /proc/cmdline
8+
sed -nr 's/,/\n/g;s/(.* |^)(rd\.)?modules-load=([^ ]*).*/\3/p' /proc/cmdline
99

1010
# Find files /{etc,run,usr/lib}/modules-load.d/*.conf in that order.
1111
find -L /etc/modules-load.d /run/modules-load.d /usr/lib/modules-load.d \

0 commit comments

Comments
 (0)