Clean the system journals
()
| 602 | |
| 603 | |
| 604 | def journald_clean(): |
| 605 | """Clean the system journals""" |
| 606 | try: |
| 607 | return run_cleaner_cmd('journalctl', ['--vacuum-size=1'], JOURNALD_REGEX) |
| 608 | except subprocess.CalledProcessError as e: |
| 609 | raise RuntimeError( |
| 610 | f"Error calling '{' '.join(e.cmd)}':\n{e.output}") from e |
| 611 | |
| 612 | |
| 613 | def apt_autoremove(): |