Commit Graph

579 Commits

Author SHA1 Message Date
PartialVolume
b55b020a83 Log the initialisation of the prng type
Logs the specific prng that is initialised.
2021-05-28 19:45:19 +01:00
PartialVolume
b34c99b81b Bump banner & version minor version 2021-05-27 14:23:34 +01:00
PartialVolume
63d20dc4be Merge pull request #319 from PartialVolume/Add_details_of_wipe_to_log
log the nwipe options that the wipe/s is going to use.
2021-05-27 14:16:14 +01:00
PartialVolume
2111206fa3 Add nwipe options that have been selected.
The log now contains wipe configuration detail
such as method, prng, blanking, sync, rounds etc.
2021-05-27 14:06:57 +01:00
PartialVolume
5263a23cd6 Merge pull request #317 from PartialVolume/Fix_contradictory_log_messaging
Fixes contradictory log messages.
2021-05-27 08:18:29 +01:00
PartialVolume
a6b60bfd15 Fixes contradictory log messages.
1. The log reported verification errors while also
showing an entry in the log that said "[SUCCESS] Blanked /dev/...".
The blanked device message now shows [FAILURE] /dev/... may not be blanked"
if any verification errors are detected for a specific drive.

2. If a verification error occurred, the error would be correctly
shown in the GUI and in the logs but the summary table drive status
would show 'ERASED' not 'FAILED'. Now corrected so that the tables
drive status field shows 'FAILED' if any verification error is detected.
Prior to this it was marking the status as 'FAILED' only if the O.S
detected write errors. In practise most drive errors are detected
by the write I/O process on syncing but this will now detect errors not
recognised by the O.S. and found by the verification process. Despite
this the textual log and GUI correcty reported verification errors.

3. The final log message "Nwipe exited successfully" was checking for
fatal errors but ignoring non fatal errors despite being reported in
the log.

The final message now reads
either "Nwipe Exited Succesfully" if no fatal and non fatal errors were
detected. Alternatively it displays ...
"Nwipe exited with errors, check the log & summary table for individual drive status."
if any fatal OR non fatal errors are detected.
2021-05-27 08:07:20 +01:00
PartialVolume
d8d627dce3 Merge pull request #315 from PartialVolume/Fix_shutdown
Fix shutdown on buildroot based distros such as shredos 2020, while maintaining compatibility with Ubuntu/Debian etc.
2021-04-19 15:34:21 +01:00
PartialVolume
95d0b3f382 Fix shutdown on buildroot based distros
The shutdown command that nwipe currently uses is
"shutdown -P +1 "Broadcast shutdown message".
While the above command works works fine on Ubuntu 18.04 LTS it
does not work on the version of shutdown used in buildroot, failing
with the error:
"shutdown -H and -P flags can only be used along with -h flag"

Luckily there is a shutdown command with options that work correctly
on both buildroot (ShredOS) and Ubuntu 18.04 LTS, this is
shutdown -Ph +1 "Broadcast shutdown message". i.e. the option -h has been added.
2021-04-19 15:22:43 +01:00
PartialVolume
055d2e8b0c Bump minor revision 2021-03-17 21:28:29 +00:00
PartialVolume
9f0674b3b9 Merge pull request #314 from andrewvaughanj/code_formatting
Run 'make format'
2021-03-17 21:27:03 +00:00
PartialVolume
5f332a407d Merge pull request #313 from andrewvaughanj/fix_global_wipe_status
Correcting multiple definition of 'global_wipe_status'
2021-03-17 21:26:28 +00:00
Andrew V. Jones
543a880064 Run 'make format'
Signed-off-by: Andrew V. Jones <andrewvaughanj@gmail.com>
2021-03-17 17:41:32 +00:00
Andrew V. Jones
62c604bc0e Correcting multiple definition of 'global_wipe_status'
Signed-off-by: Andrew V. Jones <andrewvaughanj@gmail.com>
2021-03-17 16:07:37 +00:00
PartialVolume
2bc62a7217 Update README.md with link to gparted live 2021-02-17 21:16:55 +00:00
PartialVolume
7f5bc5aa34 Merge pull request #301 from ndowens/master
bits/sigthread.h is a glibc only and is not needed
2021-02-05 17:07:29 +00:00
PartialVolume
7fa5c98023 Merge pull request #312 from PartialVolume/fix_footer_corruption_on_resize_and_method_rounds_blanking_selection
Fixes footer bar corruption to the right of the message
2021-02-04 21:51:26 +00:00
PartialVolume
4e159a902c Merge branch 'master' into fix_footer_corruption_on_resize_and_method_rounds_blanking_selection 2021-02-04 21:50:06 +00:00
PartialVolume
3090b0682f Fixes footer bar corruption to the right of the message
This bug only occurs when you resize the terminal while
on the drive selection screen, then switch to method, rounds
or blanking. To the right of the message the text background
is now blue and not white and random box characters appear.

To me it seems to be a bug not in nwipe but in curses, however
placing double quotes around the message fixes the problem. I
also found that the contents of the message appeared to trigger
the problem, possibly the '=' symbol, however the fact that
the main selection text does not require the quotes is most odd.
Still, this simple fix seems to get rid of the problem.
2021-02-04 21:40:26 +00:00
PartialVolume
d2dff52407 Merge pull request #310 from Firminator/patch-1
Update gui.c - Add CTRL+A
2021-02-01 11:43:46 +00:00
PartialVolume
58a5184c88 Removed CTRL+A=SelectALL from help as it makes the help text greater than 80 characters required for system working with frame buffer displays using 80x25. I have a plan to make the help line responsive or multipage to overcome this limitation so more commands can be added. Secondly, one line needed to be formatted to pass CI format check. 2021-02-01 11:40:52 +00:00
PartialVolume
6dcaaa6920 Update README.md with make format
If submitting pull requests, you must `make format` prior to commiting code and submitting a pull request otherwise you pull request will fail the CI that checks formatting.
2021-01-31 00:17:35 +00:00
PartialVolume
8e9e2ae90f Update README.md with make format
If submitting pull requests, you must `make format` prior to commiting code and submitting a pull request otherwise you pull request will fail the CI that checks formatting.
2021-01-31 00:15:58 +00:00
PartialVolume
02e356e0ec Merge pull request #311 from PartialVolume/fix_uaborted_message_in_summary_table
Fixes to summary table & fix final status message Fixes #308
2021-01-30 19:17:15 +00:00
PartialVolume
12063ad954 Fixes to summary table & fix final status message
1. Prior to this fix, if a user aborted a multi drive using control-C,
and if some of the drives had completed their wipe either
successfully or with a I/O failures, the summary log would say
UABORTED for all drives. UABORTED is acceptable status for drives that
hadn't completed their wipe but for drives that had completed the wipe,
the summary table should have gave either a ERASED or FAILED status
message. This fix corrects the summary status when using control-c to
abort a multi drive wipe where some drives have completed and some have
not.

2. If I wipe was selected but not started and then the user used
control-C to abort nwipe, the summary table would possibly
intermittently be displayed showing the last drive wiped. The correct
behaviour is that no summary table is displayed if the wipe hasn't been
started yet. This fix corrects the behaviour of the summary table when
control-c is used and a drive has been selected for wiping but not
started, in this scenario the summary table is NOT displayed.

3. When nwipe exits it always prints the message "nwipe successfully
exited". To make this single line message more informative it now
reports a different message depending upon the wipe status.

These four messages are:

"Nwipe was aborted by the user. Check the summary table for the drive
status" -  When the user aborts during a wipe.

"Nwipe was aborted by the user prior to the wipe starting."

"Nwipe exited with fatal errors, check the summary table for individual
drive status." - When one or more drives failed.

"Nwipe successfully completed. See summary table for details." - When
selected drives were all erased without error.
2021-01-30 19:08:05 +00:00
Firminator
66d239c980 Update gui.c - Add CTRL+A
... and reduce confusion about lowercase and uppercase option. All options are now defaulting to show as lowercase in the GUI except Start which can only be invoked with SHIFT S to prevent accidental start of wipe. Unless someone enjoys pressing additionally SHIFT for B and R and V and all the other options I'd propose it might be time to remove unneeded code for this :)
2021-01-30 13:37:48 -05:00
PartialVolume
462777d92b Merge pull request #309 from Firminator/patch-1
Corrected --nousb
2021-01-30 09:14:50 +00:00
Firminator
69c9d7d6c5 Corrected --nousb
emphasized that no[gui,blank,wait,signals,usb] will ignore things
2021-01-29 21:13:37 -05:00
PartialVolume
fffee8bb34 Update README.md
Updated link to buildnwipe script
2021-01-08 23:35:07 +00:00
PartialVolume
b8a536a02f Merge pull request #303 from NoNameForMee/master
Correct one external link in README.md
2021-01-08 23:13:33 +00:00
NoNameForMee
0c542660ff Correct one external link in README.md
To official website of SystemRescue (also known as SystemRescueCd).
2021-01-08 20:35:45 +01:00
PartialVolume
412917ab17 Update README.md
Add link to repology with reference to nwipe. Information on which version of Nwipe is in which distro version.
2021-01-07 21:01:14 +00:00
Nathan Owens
f5501ccc45 bits/sigthread.h is a glibc only and is not needed 2020-12-21 12:23:53 -06:00
PartialVolume
d819330583 bump minor banner revision 2020-12-19 18:32:39 +00:00
PartialVolume
2061346ace Merge pull request #300 from andreasheil/update-man-and-help
Update man and help
2020-12-19 18:30:51 +00:00
Andreas Heil
69fed30dde fix typo and reformat 2020-12-18 10:14:06 +01:00
Andreas Heil
7cc1a68a89 updated manpage 2020-12-18 10:13:35 +01:00
PartialVolume
ab6c4c0014 Update version.c for 0.30 release v0.30 2020-12-09 17:28:14 +00:00
PartialVolume
22f596c228 Update nwipe.1 for 0.30 release 2020-12-09 17:27:03 +00:00
PartialVolume
be0de995f8 Update configure.ac for 0.30 release 2020-12-09 17:10:43 +00:00
PartialVolume
24a3eb5734 Update CHANGELOG.md for 0.30 release 2020-12-09 17:07:48 +00:00
PartialVolume
5f14819e65 Update CHANGELOG.md
Added nwipe version & OS info to log [#297](https://github.com/martijnvanbrummelen/nwipe/pull/297)
2020-12-05 01:00:48 +00:00
PartialVolume
e06db0702b Bump minor version from .010 to .011 2020-12-05 00:56:12 +00:00
PartialVolume
1e02b754ff Merge pull request #297 from PartialVolume/add_nwipe_version_and_OS_info_to_log
This commit adds nwipes banner version number and OS info derived from /proc/version to the nwipe log. This information may be useful when a user has an issue and submits a log file.
2020-12-05 00:43:17 +00:00
PartialVolume
4a1690be59 Added /proc/version info to log 2020-12-05 00:32:46 +00:00
PartialVolume
b826ce9fc5 Bump minor version number to .010 i.e 0.29.010 2020-12-03 22:08:40 +00:00
PartialVolume
9ebed56d43 Update CHANGELOG.md
Added ..
[DONE] Right Justify log labels to maintain column alignment [#280](https://github.com/martijnvanbrummelen/nwipe/issues/280)
2020-12-03 22:07:03 +00:00
PartialVolume
c03ec324ba Merge pull request #296 from PartialVolume/Right_justify_log_message_labels
Right justify log labels.
2020-12-03 21:59:52 +00:00
PartialVolume
fb27ab8d55 Right justify log labels.
Right justify log labels in order to maintain column alignment
2020-12-03 21:56:23 +00:00
PartialVolume
c7d486f776 Merge pull request #295 from PartialVolume/master
Use past tense of fix, i.e. Fixed.
2020-12-02 14:52:10 +00:00
PartialVolume
69b125ba4d Use past tense of fix, i.e. Fixed. 2020-12-02 14:48:13 +00:00