For reasons stated further above I like to propose changing the status of this bug to critical.
I eventually managed to setup a swap file and enable hibernation. The following steps are copy pasted together from various different websites. Here are the changes I have made: First find out how large your swap file should be. There are several recommendation tables you can find on Google. Adjust the needed size of the swap file below to your needs. Setup swap file: sudo swapoff -a # Turn off all swap space. sudo rm /swapfile # Delete current swap file. sudo dd if=/dev/zero of=/swapfile bs=1M count=16384 # Make a new 16GB swap file. (Adjust to your needs) sudo chown root:root /swapfile # Set owner to root, group root sudo chmod 0600 /swapfile # Set permission to root sudo mkswap /swapfile # Convert file to swap format sudo swapon /swapfile # Enable Enable to swap file on boot. Add the following line to /etc/fstab using your favorite editor: /swapfile none swap sw 0 0 Enable hibernation: sudo apt install uswsusp sudo apt install hibernate Test if hibernation works with this command: sudo hibernate If everything looks good continue by changing the hibernation engine to use the hibernate command. Edit hibernation service: sudo systemctl edit systemd-hibernate.service Paste the following code: [Service] ExecStart= ExecStartPre=-/bin/run-parts -v -a pre /usr/lib/systemd/system-sleep ExecStart=/usr/sbin/s2disk ExecStartPost=-/bin/run-parts -v --reverse -a post /usr/lib/systemd/system-sleep Next update systemd: sudo systemctl daemon-reload Now you should be able to hibernate with the default system command: sudo systemctl hibernate Enable hibernation in the UI by following this guide: http://ubuntuhandbook.org/index.php/2018/05/add-hibernate-option-ubuntu-18-04/ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1767299 Title: Ubuntu 18.04 Installer creates swap partition too small To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/partman-auto/+bug/1767299/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs