That's really strange. I mean, clevis_all_netbootable_devices()
certainly does prepend a space. After cut & pasting the function into
the shell:
(initramfs) clevis_all_netbootable_devices() {
> for device in /sys/class/net/*; do
<snip - rest of the function>
> }
(initramfs) clevis_all_netbootable_devices
enp1s0 enp7s0
(initramfs)
But the way it is called by eth_check should be fine as long as it is
using the default $IFS (and I see no evidence this has changed):
----
for device in $(clevis_all_netbootable_devices); do
ip link set dev "$device" up
---
(initramfs) for device in $(clevis_all_netbootable_devices); do
> echo ",$device,"
> done
,enp1s0, <<< no preceding space
,enp7s0,
,enp1s0,
,enp7s0,
(initramfs)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1873593
Title:
clevis-initramfs no ethernet because of Error: argument " enp2s0" is
wrong: "dev" not a valid ifname
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/clevis/+bug/1873593/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs