Update README.md

This commit is contained in:
Lutz Schwarz 2020-09-04 12:21:27 +02:00
parent 9613c75afd
commit f674c1f2b6
1 changed files with 4 additions and 1 deletions

View File

@ -16,7 +16,8 @@ Usage: $0 [-adhrspvzZ] imagefile.img [newimagefile.img]
-z Compress image after shrinking with gzip -z Compress image after shrinking with gzip
-Z Compress image after shrinking with xz -Z Compress image after shrinking with xz
-a Compress image in parallel using multiple cores -a Compress image in parallel using multiple cores
-p Remove logs, apt archives, dhcp leases and ssh hostkeys -p Remove logs, apt archives, dhcp leases
-P Remove logs, apt archives, dhcp leases and ssh hostkeys
-d Write debug messages in a debug log file -d Write debug messages in a debug log file
``` ```
@ -28,6 +29,8 @@ If you specify the `newimagefile.img` parameter, the script will make a copy of
* `-z` will compress the image after shrinking using gzip. `.gz` extension will be added to the filename. * `-z` will compress the image after shrinking using gzip. `.gz` extension will be added to the filename.
* `-Z` will compress the image after shrinking using xz. `.xz` extension will be added to the filename. * `-Z` will compress the image after shrinking using xz. `.xz` extension will be added to the filename.
* `-a` will use option -f9 for pigz and option -T0 for xz and compress in parallel. * `-a` will use option -f9 for pigz and option -T0 for xz and compress in parallel.
* `-p` will remove temp files, logs, apt archives, dhcp leases (but no longer removes hostkeys as in previous version)
* `-P` will remove temp files, logs, apt archives, dhcp leases and hostkeys (beware: this prevents ssh login)
* `-d` will create a logfile `pishrink.log` which may help for problem analysis. * `-d` will create a logfile `pishrink.log` which may help for problem analysis.
Default options for compressors can be overwritten by defining PISHRINK_GZIP or PSHRINK_XZ environment variables for gzip and xz. Default options for compressors can be overwritten by defining PISHRINK_GZIP or PSHRINK_XZ environment variables for gzip and xz.