Update README with Clearer Examples
Improves readability and provides more immediate comprehension for users checking filesystem mount details. (Uses `awk` to provide more descriptive output).
1. Modified the `df -hT | grep log2ram` command to include labels for each output field, making it easier to understand the filesystem statistics.
2. Updated the `mount | grep log2ram` command to better display information about the `log2ram` mount.
* Update install_log2ram.yml
Updated Ansible playbook to configure notification settings in Log2Ram...
The playbook incorrectly referenced 'MAIL=' - this should instead be 'NOTIFICATION='
Added support for customizable notification commands - 'NOTIFICATION_COMMAND='
* Update install_log2ram.yml
Aligned Ansible playbook settings with Log2Ram config defaults to ensure consistency and predictability.
* Update install_log2ram.yml
Added a task to install the prerequisite apt package 'gnupg'.
(GnuPG is required by the task, 'Add gpg key').
* Update log2ram.conf
Changes to comments for setting: 'SIZE=128M'
* Update log2ram.conf
Changes to comments for setting: 'USE_RSYNC=false'
* Update log2ram.conf
Changes to comments for setting: 'NOTIFICATION=true'
* Update log2ram.conf
Changes to comments for setting: 'NOTIFICATION_COMMAND='
* Update log2ram.conf
Changes to comments for setting: 'PATH_DISK='
* Update log2ram.conf
Changes to comments for setting: 'JOURNALD_AWARE='
* Update log2ram.conf
Changes to comments for setting: 'ZL2R='
* Update log2ram.conf
Changes to comments for setting: 'COMP_ALG='
* Update log2ram.conf
Update to comment for setting: 'LOG_DISK_SIZE='
* Update log2ram.conf
Update to comment for setting: 'ZL2R='
* Update log2ram.conf
Update to comment for setting: 'SIZE='
Enhance visibility of log2ram filesystem type
Changed the command...
`df -h | grep log2ram`
to:
`df -hT | grep log2ram`
This provides additional clarity by explicitly showing the type of filesystem (e.g. tmpfs) where 'log2ram' is mounted. This makes the output more useful for diagnostics and ensuring correct configuration.
* Reformatted and refactored some files
* Added awareness of systemd-journald
- Added dependency for bash in debian control file, because this implementation uses bash arrays
- Changed in all shell scripts the interpreter to bash
- Replaced "service log2ram stop" with "systemctl stop log2ram"
- Replaced "-a" with "] && ["
- Increased SIZE and LOG_DISK_SIZE to 128M and 256M because journald can use a lot of space
- Introduced a new switch JOURNALD_AWARE
- Adds support for missing options in the /etc/log2ram.conf (USE_RSYNC and MAIL)
- apt-key command has been deprecated, as mentioned by issue #179. Changing it to use a keyring in /usr/share/keyrings
- Move "Is it working?" section to after "Install"
- Adjust "Is it working?" a bit, mention "systemctl status"
- Wording
- Add Troubleshooting section with journal cleanup tips
* Add quotes and support path with spaces
* Using findmnt instead of mount | grep
findmnt is part of util-linux and should be available on almost all systems