wifibroadcast-image-builder
wifibroadcast-image-builder copied to clipboard
apt-get asking questions during image build
I think this can be fixed with the --assume-no parameter (IIRC this has to be put in front of the package name).
Thanks @rodizio1 . I will test this parameter. But I don't remember the name of the package that was asking a question with apt-get.
I've tried with :
DEBIAN_FRONTEND=noninteractive sudo apt-get -yq install --assume-no tshark
in stages/03-Packages/00-run-chroot.sh
But it doesn't change anything.
I believe the yes/no question is caused by a dependency.
I don't know which, but will continue to investigate ...
I'm sorry, I can't reproduce the yes/no question on the live image. I've removed tshark and all its dependencies, then reinstalled it. But I didn't get the yes/no question. I can't find where it's coming from ...
I've fixed it !!
DEBIAN_FRONTEND=noninteractive sudo apt-get -yq install --assume-no wireshark-common
I'm preparing a PR for it, and 2 more issues ...
Can this issue be closed now?
DEBIAN_FRONTEND=noninteractive sudo apt-get -yq install --assume-no wireshark-common
No, it doesn't work. I did believe it, but the packages wasn't installed because of an other problem ...
Not so sure this is such a high priority issue. It’s annoying that you have to answer a question but not that terrible in my opinion.
On another note, do we need/want wireshark at all?
Not so sure this is such a high priority issue. It’s annoying that you have to answer a question but not that terrible in my opinion.
I agree, that's not terrible. The main drawback is that one can't let the process goes to the end without answering to the question ...
On another note, do we need/want wireshark at all?
Wireshark-common is needed by tshark. I think OSD wasn't working without tshark, but not sure. We should try again to be sure ...
I don't think the OSD needs wireshark, but that's easy to test. As i recall wireshark is used mainly for debugging purposes, but it might also be used in setting up the wifi cards. I'll look into this in the near future. For now, try removing the package and compiling the OSD on a live image.
I’ll test that.
If it’s not required another option might be to clone it onto the image but not install. That way if an advanced user wants to use it all they have to do is install it sans downloading and the ass pain of connecting the pi to internet.
1- wireshark-common and tshark are not installed in 1.6RC6.
2- I did remove them both on air and groundPi, and I could see no difference (video, OSD, telemetry working).
So we could perhaps remove them for the script (just commenting tshark install, to remember)
@pilotnbr1 Did you test removing wireshark-common and tshark with your 722n and 036nha ? If it works for you, I think we could remove them from the script.
I have not tried yet. Ill start a build and give it a test.
I finally tested this (wife is back after her trip so I am busy again) and no problems removing wireshark and tshark.