-
Notifications
You must be signed in to change notification settings - Fork 400
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(net-lib): add a new dracut module called net-lib
- Loading branch information
1 parent
b2af8c8
commit f6b62f9
Showing
13 changed files
with
29 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -290,3 +290,6 @@ test: | |
- test/**/* | ||
- modules.d/80test* | ||
- modules.d/80test*/* | ||
|
||
net-lib: | ||
- modules.d/45net-lib/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ check() { | |
|
||
# called by dracut | ||
depends() { | ||
echo net-lib | ||
return 0 | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ check() { | |
|
||
# called by dracut | ||
depends() { | ||
echo dbus bash | ||
echo dbus bash net-lib | ||
return 0 | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
check() { | ||
return 255 | ||
} | ||
|
||
depends() { | ||
echo base | ||
return 0 | ||
} | ||
|
||
install() { | ||
inst_script "$moddir/netroot.sh" "/sbin/netroot" | ||
inst_simple "$moddir/net-lib.sh" "/lib/net-lib.sh" | ||
inst_hook pre-udev 50 "$moddir/ifname-genrules.sh" | ||
inst_hook cmdline 91 "$moddir/dhcp-root.sh" | ||
inst_multiple ip sed awk grep pgrep tr | ||
inst_multiple -o arping arping2 | ||
dracut_need_initqueue | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters