I went ahead and tested the proposed package for Lunar/Kinetic/Jammy/Focal. The results are good. The testing steps are very similar for all releases so I'll make a single comment and highlight the small changes between them. I tested the following packages: Lunar - 1.0.0-0ubuntu13.2 Kinetic - 1.0.0-0ubuntu12.2 Jammy - 1.0.0-0ubuntu11.22.04.3 Focal - 1.0.0-0ubuntu9.4 1) Create AWS instance like so: aws ec2 run-instances \ --region ${AWS_REGION} \ --image-id ${AWS_AMI} \ --count 1 \ --instance-type t3.micro \ --key-name ${AWS_KEY} \ --metadata-options "HttpTokens=required" \ --security-group-ids ${AWS_SECURITY_GROUP} \ --tag-specifications 'ResourceType=instance,Tags=[{Key=Name,Value=test-hibinit-${RELEASE}}]' \ --block-device-mappings '[{"DeviceName":"/dev/sda1","Ebs":{"Encrypted":true,"DeleteOnTermination":true,"VolumeSize":8,"VolumeType":"gp2"}}]' \ --hibernation-options 'Configured=true' Following AMIs were used: images=( "ami-095495524a76a487a lunar" "ami-070f3a579ee524cc4 kinetic" "ami-086178f8d4f1d44a2 jammy" "ami-00ab811808de193f8 focal" ) 2) update system $ sudo apt install -y language-pack-ru 3) set russian locale $ export LC_ALL=ru_RU.UTF-8 4) test failure $ sudo /usr/bin/hibinit-agent Traceback (most recent call last): File "/usr/bin/hibinit-agent", line 269, in swap_needs_touch dev = find_device_for_file(swap_place) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/bin/hibinit-agent", line 148, in find_device_for_file df_out = check_output(['df', '-P', filename]).decode('ascii') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/bin/hibinit-agent", line 480, in main() File "/usr/bin/hibinit-agent", line 413, in main config = Config(config_file, args) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/bin/hibinit-agent", line 309, in __init__ swap_needs_touch(SWAP_FILE)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/bin/hibinit-agent", line 273, in swap_needs_touch raise Exception("Failed to find the filesystem type of /") Exception: Failed to find the filesystem type of / 5) now try proposed package $ echo "deb http://archive.ubuntu.com/ubuntu/ $(lsb_release -cs)-proposed restricted main multiverse universe" | sudo tee /etc/apt/sources.list.d/ubuntu-$(lsb_release -cs)-proposed.list $ sudo apt update -y && sudo apt upgrade -y $ sudo /usr/bin/hibinit-agent Effective config: {'log_to_syslog': True, 'log_to_stderr': True, 'mkswap': 'mkswap {swapfile}', 'swapon': 'swapon {swapfile}', 'swapoff': 'swapoff {swapfile}', 'touch_swap': False, 'grub_update': True, 'swap_percentage': 100, 'swap_mb': 4000, 'state_dir': '/var/lib/hibinit-agent'} Found '/var/lib/hibinit-agent/hibernation-enabled', configuring hibernation Will check if swap is at least: 4000 megabytes There's sufficient swap available (have 4194304000, need 4194304000) Running: swapon /swap-hibinit Updating the kernel offset for the swapfile: /swap-hibinit Setting swap device to 66305 with offset 2066432 Done updating the swap offset. Turning swapoff Running: swapoff /swap-hibinit In addition to this, I tested the hibernation functionality of the utility to ensure no regressions. 1) Create a program to run continuously and run it /bin/cat <~/allocate_mem.py #!/usr/bin/python3 import time # Allocate 200MB chunk of memory size = 200 * 1024 * 1024 # 200MB memory_chunk = bytearray(size) print("Allocated 200MB of memory.") # Enter indefinite loop while True: time.sleep(1) # Wait for 1 second # The script will never reach this point EOM python3 ~/allocate_mem.py & 2) hibernate instance, and then resume instance 3) check for process still running $ ps aux | grep allocate_mem | grep -v grep ubuntu 2151 0.1 22.1 220644 210992 ? S 20:08 0:00 python3 /home/ubuntu/allocate_mem.py