Open mattie47 opened 2 days ago
Thought that I had tested this and it was working, but that was a while ago...
We have been bomb cycloned and I'm without power and internet, and the prognosis doesn't look good at the moment. So, it may be a while...
We have been bomb cycloned and I'm without power and internet, and the prognosis doesn't look good at the moment. So, it may be a while...
Sorry to hear. Look after yourself and your family.
These things I'm raising are absolutely not critical nor is there any expectation on timeframe for responding/addressing them.
Given I've just been focussing on SDM recently, I wanted to raise things as I become aware of them and provide feedback from someone taking a close look at the tool and how it works.
In terms of the networking plugin, I believe there's also an issue with SDM adding "quotes" to the SSID and Password in the generated nmconnection file which is not what NetworkManager appears to expect.
This is quite easy to test by taking a running NetworkManager system, and modifying an existing connection's SSID or Password to be wrapped in quotes. I find once doing this (and systemctl restart NetworkManager), it's unable to connect again to the network.
I've worked around the issue I raised yesterday by instead using the nmconn option with configuration files instead. e.g.
--plugin network:"nmconn=/home/pi/test.nmconnection"
Worthy of note is this will nicely also overwrite the file if re-running the SDM customize command (and have the same file specified), unlike the --plugin network:"ifname=wlan0|cname=test|ctype=wifi|wifi-ssid=My SSID Here|wifi-password=pass|wificountry=NZ"
which will error out on detection of the same cname.
And another useful tip - nmconnection files can also use encrypted passwords created using wpa_passphrase
wpa_passphrase "my ssid with spaces and no quotes" mysupersecretpassword
network={
ssid="my ssid with spaces and no quotes"
#psk="mysupersecretpassword"
psk=c30d7e30f80a27ca38d64a77936d48dd08ea4692c2f4436b1d2fce691ad305d6
}
root@sdm-test:/home/pi# cat /etc/NetworkManager/system-connections/home.nmconnection
[connection]
id=home
uuid=a8a40336-021c-4b7c-9d8e-2ad77374318d
type=wifi
interface-name=wlan0
[wifi]
mode=infrastructure
ssid=my ssid with spaces and no quotes
[wifi-security]
key-mgmt=wpa-psk
psk=c30d7e30f80a27ca38d64a77936d48dd08ea4692c2f4436b1d2fce691ad305d6
[ipv4]
method=auto
[ipv6]
addr-gen-mode=default
method=auto
[proxy]
Thanks,
Matt
@mattie47 Thanks for posting the workaround! I just ran into this, but creating a .nmconnection
file got me fixed.
Hi,
Does the network plugin support spaces in the WiFI SSID?
I've tried a number of things to get SDM to customize an image using things such as:
Each time however results in:
Full command:
I have also found a couple discrepancies with the network documentation.
Docs example has SSH in the network plugin: https://github.com/gitbls/sdm/blob/master/Docs/Example-Commands.md?plain=1#L139
Example attempting to run:
https://github.com/gitbls/sdm/blob/master/Docs/Example-Commands.md?plain=1#L139
This sentence also gives this impression: https://github.com/gitbls/sdm/blob/master/Docs/Plugins.md?plain=1#L686
Thanks