Comment 2 for bug 1873593

Revision history for this message
dann frazier (dannf) wrote :

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)