Closed adam900710 closed 3 years ago
try the following:
initrd-network.netdev
and bridge dependencies: /etc/systemd/system/initrd-network.service.d/override.conf
for example:
#
# this is initrd-network.service.d/override.conf
#
[X-SystemdTool]
# include bridge device config
InitrdPath=/etc/systemd/network/initrd-network.netdev source=/etc/mkinitcpio-systemd-tool/network/initrd-network.netdev
# provision bridge support binaries and libraries if needed
InitrdBinary=/usr/bin/some-bridge-tool
InitrdBinary=/usr/lib/some-bridge-support.so
/etc/mkinitcpio-systemd-tool/network/initrd-network.network
/etc/mkinitcpio-systemd-tool/network/initrd-network.netdev
assume resolved
Yep, resolved.
In fact, it turns out that re-building the network interface after network-manager or whatever the tool is completely fine.
Since the main purpose for the network in initramfs is for LUKS decryption, it doesn't really matter any more.
Hi,
It looks like the
systemd-tool
hook only reads the fileinitrd-network.network
, but not the full*.netdev
*.network
, which makes it pretty hard to create bridge device.Is it possible to create bridges at initramfs? Or is there any special config grammar that I can put all the bridge setup into the same file?