-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cat: /sys/class/net/eth0/name_assign_type: Invalid argument #2197
Comments
@mvolgincl When you say "bug after update to 2.5" does that mean that with 2.4 you did not have this warning? |
I not sure which version were before 2.5 :) It generates iso but as far as i understand without lan settings. So if i extract iso: isoinfo -i /opt/bacula/bacula4hosts/rear/iso//rear-unknown.iso -x '/ISOLINUX/INITRD.CGZ;1' |gzip -d| cpio -idmv etc/mac-addresses does not exist:
P.S. python is OK i understand it. |
@mvolgincl why should you need etc/mac-addresses by default? I do not think there is anything wrong in your case. See issue #861 for an old (bug) discussion on that topic. Perhaps it explains a bit more how to deal with mac addresses? |
I do not reefer to mapping at all. I'm talking about /etc/mac-addresses as an example what is missing so It does not start network on recovery as it was always before. But it does work if i define it as boot options |
so it getting cp: reading `/sys/class/net/eth0/name_assign_type': Invalid argument and do not set network at all, that is the bug |
As a reference only (so others understand what name_assign_type means):
@mvolgincl Did you recently updated RHEL 6.x to 6.10 perhaps? If that is the case I would open a software case at RedHat for an explanation of this phenomena. The call is done from https://github.com/rear/rear/search?q=is%3Aopen+name_assign_type&unscoped_q=is%3Aopen+name_assign_type |
@rmetrich Does this ring a bell with you? |
@gdha Sorry no idea, never saw that parameter before. @mvolgincl Please provide the |
Not it was not recent update.
|
@mvolgincl The problem is coming from function is_persistent_ethernet_name of script A possible work-around could be in that function:
|
@mvolgincl The real error should be found in script
I wonder why the output of the command |
yes, it returns zeros:
Then:
|
This is not a general problem in RHEL 6 because on a test machine it returns a reasonable MAC address. |
@mvolgincl please provide a sosreport if you can, I would like to take a look at this. |
@rmetrich Any result/progress on this? |
@gdha Sorry, didn't find time to look at this. |
#2197 (comment) |
Stale issue message |
Relax-and-Recover (ReaR) Issue Template
Fill in the following items before submitting a new issue
(quick response is not guaranteed with free support):
ReaR version ("/usr/sbin/rear -V"):
Relax-and-Recover 2.5 / 2019-05-10
OS version ("cat /etc/rear/os.conf" or "lsb_release -a" or "cat /etc/os-release"):
lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.10 (Final)
Release: 6.10
Codename: Final
Bug after update to 2.5:
Log:
as far as i see it exists:
but cat gives an error:
The text was updated successfully, but these errors were encountered: