On Mon, Jun 28, 2021 at 04:02:40PM +0800, Kairui Song wrote:
On Tue, Jun 22, 2021 at 6:04 PM Coiby Xu <coxu(a)redhat.com>
wrote:
>
> /sys/bus/ccwgroup/devices doesn't exist for non-s390x machines. Suppress this
harmless message.
>
> Fixes: commit 7d472515688fb330eee76dac1c39ae628398f757
> ("Iterate /sys/bus/ccwgroup/devices to tell if we should set up
rd.znet")
>
> Reported-by: Ruowen Qin <ruqin(a)redhat.com>
> BugLink:
https://bugzilla.redhat.com/show_bug.cgi?id=1974618
> Signed-off-by: Coiby Xu <coxu(a)redhat.com>
> ---
> dracut-module-setup.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh
> index 35a961a..24a6be0 100755
> --- a/dracut-module-setup.sh
> +++ b/dracut-module-setup.sh
> @@ -467,7 +467,7 @@ kdump_setup_vlan() {
> find_online_znet_device() {
> local CCWGROUPBUS_DEVICEDIR="/sys/bus/ccwgroup/devices"
> local NETWORK_DEVICES d ifname ONLINE
> - NETWORK_DEVICES=$(find $CCWGROUPBUS_DEVICEDIR -type l)
> + NETWORK_DEVICES=$(find $CCWGROUPBUS_DEVICEDIR -type l 2>/dev/null)
Hi, Coiby
Maybe we can check if CCWGROUPBUS_DEVICEDIR exists instead of just
suppress the warning?
Fixed in v3, thanks for the suggestion!
> for d in $NETWORK_DEVICES
> do
> read ONLINE < $d/online
> --
> 2.32.0
> _______________________________________________
> kexec mailing list -- kexec(a)lists.fedoraproject.org
> To unsubscribe send an email to kexec-leave(a)lists.fedoraproject.org
> Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines:
https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
https://lists.fedoraproject.org/archives/list/kexec@lists.fedoraproject.org
> Do not reply to spam on the list, report it:
https://pagure.io/fedora-infrastructure
--
Best Regards,
Kairui Song
--
Best regards,
Coiby