-
-
Notifications
You must be signed in to change notification settings - Fork 490
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
Add a seperate function inside dietpi-globals to generate troubleshoot template for the forum #6880
base: dev
Are you sure you want to change the base?
Conversation
…forums troubleshoot template. This info will be also integrated into G_EXEC error handler
Alright, I learned a bit more bash and I think I got it now. A function G_BUG_REPORT() generates info for the forums troubleshoot template, which the can be copied and pasted into the forum by the users. I tested with some preset conditions (see code below, it has the test conditions in it) and I also sent some bug reports for testing ( sry ;) ) I will commit right away.
|
final working version Users can now call G_BUG_REPORT which outputs necessary info for the forums troubleshout template in the format of: ``` root@DietPi:~# G_BUG_REPORT #### Required Information - DietPi version | v9.0.2 (MichaIng/master) - Distro version | bookworm (ID=7,RASPBIAN=0) - Kernel version | `Linux DietPi 6.1.21-v8+ MichaIng#1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux` - Architecture | `arm64` - SBC model | RPi 3 Model B (aarch64) (ID=3) - Image creator | - Pre-image | ```
I still wonder whether it would be easier to have the whole template pre-filled as output, instead of only the first block. So one can copy&paste everything into an empty GitHub issue or forum topic. What you think? The lines "Command"/"Exit code"/"Software title" (which we should rename to "Script" or "Program") could be added dynamically, e.g. given as input parameters for What I do not like is the doubled generation of
|
Users then have to only run
G_BUG_REPORT
to get the informationen needed, they can just copy and paste it from terminal into the forum.G_EXEC error handler should work like before.
I still need to figure out way to trigger an error in one of
dietpi-*
functions to test this properly. I trieddietpi-update
without internet access, but this triggers not the full error handler