nefelim4ag / systemd-swap

Script for creating hybrid swap space from zram swaps, swap files and swap partitions.
GNU General Public License v3.0
550 stars 81 forks source link

Rewrite systemd-swap in Python #164

Closed oold closed 3 years ago

oold commented 3 years ago

The systemd-swap script was completely rewritten as a Python 3 script. Additionally, there are some minor changes to a few other files.

Notable changes:

Closes #66 and closes #93.

oold commented 3 years ago

Everything seems to be working fine, more or less. Only swapD needs testing now, but my dev system doesn't have a swap partition on my root disk and I currently don't want to set up a VM for this.

oold commented 3 years ago

Just update the man pages to august +1and add a license header like the one here (otherwise I'm assuming that it's GLPv3 or later)

Updated the man pages and added the license identifier. I also took the liberty to work on some code formatting. Black wants 88-character lines by default, but it doesn't seem to do a great job at enforcing that, so I manually reformatted the code according to that limit.

vilgotf commented 3 years ago

Great, please squash my commit into one of yours and I'll merge it (don't squash anything else imo, or maybe also the man-page commits?)

oold commented 3 years ago

I'll just squash them all. No need to clutter the commit history.