@bristow-0 Ok so what I’m working on is this rough outline of a script.
If you run this command on your target computer it should return the uuid of the swap partition.
blkid | grep swap | awk '{print $2}'
So if we start building a script to automate the process it might start to look like this
!#/bin/bash
uuid=$(blkid | grep swap | awk '{print $2}')
if grep -Fxq "RESUME=UUID" /etc/initramfs-tools/conf.d/resume
then
# if found replace with new uuid
sed -i 's/^RESUME=UUID.*$/RESUME=${uuid}/' /etc/initramfs-tools/conf.d/resume
else
# if not found just append command to config file
echo "RESUME=${uuid}" >>/etc/initramfs-tools/conf.d/resume
update-initramfs -u
This script would need to be executed on first boot of the target computer is what I’m thinking.