Removing sourcing of network link files from the udev-rules module.
What always should be included should be placed in the systemd-network
module and other modules that provide/require spesific link files
should add them, themselves via their relevant include section.
# called by dracut
install() {
local _arch
+
+ #Adding default link
+ if dracut_module_included "systemd"; then
+ inst_multiple -o "${systemdutildir}/network/99-default.link"
+ [[ $hostonly ]] && inst_multiple -H -o "${systemdsystemconfdir}/network/*.link"
+ fi
+
inst_multiple ip dhclient sed awk grep pgrep tr
inst_multiple -o arping arping2
inst_simple "$moddir"/nm-initrd.service "$systemdsystemunitdir"/nm-initrd.service
inst_simple "$moddir"/nm-wait-online-initrd.service "$systemdsystemunitdir"/nm-wait-online-initrd.service
+ # Adding default link
+ inst_multiple -o "${systemdutildir}/network/99-default.link"
+ [[ $hostonly ]] && inst_multiple -H -o "${systemdsystemconfdir}/network/*.link"
+
$SYSTEMCTL -q --root "$initdir" enable nm-initrd.service
fi
# legacy persistent network device name rules
[[ $hostonly ]] && inst_rules 70-persistent-net.rules
- if dracut_module_included "systemd"; then
- inst_multiple -o "${systemdutildir}/network/*.link"
- [[ $hostonly ]] && inst_multiple -H -o "/etc/systemd/network/*.link"
- fi
-
{
for i in cdrom tape dialout floppy; do
if ! grep -q "^$i:" "$initdir"/etc/group 2> /dev/null; then
)
inst /etc/passwd /etc/passwd
inst_multiple sh ls shutdown poweroff stty cat ps ln ip \
- dmesg mkdir cp ping \
- modprobe tcpdump setsid \
+ dmesg mkdir cp ping modprobe tcpdump setsid \
/etc/services sleep mount chmod pidof
inst_multiple tgtd tgtadm
for _terminfodir in /lib/terminfo /etc/terminfo /usr/share/terminfo; do
inst_multiple poweroff shutdown
inst_hook shutdown-emergency 000 ./hard-off.sh
inst_hook emergency 000 ./hard-off.sh
- inst_simple ./99-default.link /etc/systemd/network/99-default.link
)
# Make server's dracut image