Resize a qcow2 disk image on Linux

For some reason, a lot of sites reference to tools that are not needed.
All you need to do to resize a qcow2 image is the following:
qemu-img resize <diskimg.qcow2> +15G
This increase the disk size by 15 Gigabyte.

Then you need to use gparted to resize the partitions you want (use a USB live boot if you don’t have a GUI installed).

Quick reference/Howto – Create a PR on Github

Initial setup

To create a PR you first need to setup API keys and gpg signature for your account on github.

To make git always sign your commits using your gpg signture, set the following config for git:
git config --global user.signingkey <key id>
git config --global commit.gpgsign true

You can find your gpg key id using:
gpg --list-secret-keys --keyid-format=long

Password for the account when prompted is your API key.

Create the PR

  1. Fork the repository on github.com that you want to create a PR for.
  2. Clone your forked repository: git clone <url>
  3. Change directory to the cloned repository and create a new branch: checkout -b <branch>
  4. Make your changes
  5. Add your changes: git add .
  6. Commit your changes to your forked repository: git commit -m "type your commit description here"
  7. Check origin using: git remote
  8. If your origin is “origin”, type: git push origin <branch> (branch is the branch in step 3)
  9. Go to your fork on github.com to submit the PR.