-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Error at launch when GRUB_CMDLINE_LINUX="net.ifnames=0" #1159
Comments
How strange. Sounds like it might be an Electron bug? Can you confirm that removing that GRUB setting makes Etcher work properly again? Also, could you copy'n'paste the contents of |
The |
Yeah, I actually just found up balena-io-modules/drivelist#125 which sounds very similar. |
@actuino Could you please paste here the result of udevadm info --query=property --export --export-prefix=UDEV_ --name="/dev/sda" Thanks. |
Here it is:
I'll then change Grub again and reboot to confirm. |
Hm, so @actuino Can you try: udevadm info --query=property --export --export-prefix=UDEV_ --name="/dev/sda" | awk -F= '{gsub("\\\\.","_",$1); print $1 "=" $2}' ? |
Before rebooting, I checked the /tmp file, it's indeed the drive detection script
|
@jviotti :
|
@jviotti I've just been doing some testing on the command line, and the @actuino Could you download https://github.com/resin-io-modules/drivelist/blob/master/scripts/linux.sh and try running it, confirm that it fails with the same error, and then edit line 86 to remove two of the backslashes, and see if it works then? :-) |
Oh, I see. If that's the case I wonder why I didn't catch it in my testing :/ |
In the meantime, I rebooted without the net.ifnames=0 : etcher works well. Tested the script, script fails with the same error.
|
Hey, thank you for the fast troubleshooting, that's awesome ! |
@jviotti Maybe different shells and/or shell, awk, gsub versions? |
The script shebang is set to bash, so I guess its not because of different shells. @actuino thanks a lot :) As a last petition, do you mind sharing your awk version with us? |
Sure : |
Oh, right – but possibly different bash versions? There were some significant changes in bash@4, if I remember it right. |
|
Yeah, if the fix is really so simple, I'm also wondering how this didn't get picked up in earlier testing. |
I'm running Ubuntu 16.04 as well, and:
Maybe mawk vs GNU awk was the problem? @lurch if so, we should test that in mawk as well. |
Pinging @wrboyce as he's mentioned in balena-io-modules/drivelist#125 - maybe he has some ideas :-) |
On Ubuntu 14.04, |
This fixes the fix in #125 See balena-io/etcher#1159 Change-type: patch
This fixes the issue in #125 See balena-io/etcher#1159 Change-type: patch
See: balena-io-modules/drivelist#150 Fixes: #1159 Change-Type: patch Changelog-Entry: Fix GNU/Linux udev error when `net.ifnames` is set. Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
Yeah, makes sense. I'll prepare one and upload it here. |
Re-opening again ;-) |
Hi guys, |
Great news, thanks for confirming it's fixed @actuino 😃 |
1.0.0. beta 19 x64
Ubuntu Mate - 16.04.2 TLS
Alert box on launch
When /etc/default/grub contains
GRUB_CMDLINE_LINUX="net.ifnames=0"
Etcher shows an error at launch, before displaying:
Same error when launched in the devtool console log.
(The very same etcher was working on the same box before the Grub modification)
Image selection is then ok, but etcher doesn't recognize any usb drive.
Tried with the https://dl.bintray.com/resin-io/debian stable etcher repo too, idem.
The text was updated successfully, but these errors were encountered: