-
Notifications
You must be signed in to change notification settings - Fork 66
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
Replaced the current nwipe.mk download option by a git submodule, poi.. #281
base: master
Are you sure you want to change the base?
Conversation
…nting to master branch.
This might be a good idea from a developers perspective for ease of testing but from a users perspective being restricted to a official release of nwipe is safer in my opinion, in that the master is for developers and may have had limited if any testing so I wouldn't really want users using the master in ShredOS only a official release, or making it easier to switch branches. At least using the buildroot method it does verify the download with a hash. I'm unclear what protection git sub modules offer against man in the middle attacks. I test a branch by issuing a release from my fork then calculating the hash and changing the URL in the .mk and the hash. Maybe more time consuming than just editing a URL and branch in the .mk file but purposely makes it a little more difficult to build from the master for good reason so users don't do it. I do appreciate how it does make it easier for the developer though to link to their fork and branch without having to deal with releases and hashes. I will have a think about this. |
Ahhh understood, valid points, what do you think about something in the buildroot to switch between stable, and master like in many buildroot-based projects? |
Yes, that could work. From the developers point of view making it easier to switch and point to different URLS and branches would certainly make testing a branch easier for the tester/dev. But at the same time having the existing hash based download for nwipe for production use and final release is a must. |
I'm not clear on what you mean here. If I understand correctly, wouldn't this still have the issue of not checking the integrity of the download. i.e no hash, so man in the middle and corruption susceptibility issues. Not too important for developers but for production use the source download needs to be verified for it's integrity. However, like I mentioned in the previous post a simple switch somewhere that allows the developer to easily switch between git sub module and standard buildroot hash would be a good thing. Then edit the URL and branch in the .mk would be a nice update. |
Ahoy. |
Ok, if you can implement the switch, so the dev can switch between the two methods I can then test your RC4 branch at the same time on some older hardware. |
Ahoy, i think i can do it but tuesday next week only, as i will leave for vacation now over the weekend. |
Please check my new branch. I have implemented as requested, but didn't test yet.
But as mentioned, this one isn't tested yet. |
Nice work!, I'll test that out and get back you. |
Quick question. can you explain why the commit number is needed? Would it generally point to the last commit in the branch? |
Oh hey! I wanted to lock to the commit that's used for the release packing by default. But I can change this behaviour as well. |
Needs debugging, there's a couple of path errors re patching ../../ should be used instead of ../../../ for the sub module section re patch file locations? File permissions 003-nwipe-banner-patch.sh needs execute permissions and it looks like it tries to apply the patch before any source has been downloaded. I'll let you work on that next week :-) |
I will continue the debugging during next days :) |
…nting to master branch.
Ahoy.
I have used this approach to build my ShredOS release from the aes-ctr branch more easily.
The submodule always points to master, so it's easy exchangable, in my opinion more easy than have to download a release package etc.