[Merge] ~mitchdz/ubuntu/+source/ec2-hibinit-agent:add-IMDSv2-mantic into ubuntu/+source/ec2-hibinit-agent:ubuntu/devel

Mitchell Dzurick mp+443022 at code.launchpad.net
Wed May 17 17:58:15 UTC 2023


For a little extra information,

After creating an EC2 instance configured correctly you can add my PPA to test, and if you see `Running: swapoff /swap-hibinit` from the agent service and upgrade then that likely means everything is good. 


$ sudo add-apt-repository ppa:mitchdz/ec2-hibinit-agent-add-imdsv2-support
$ sudo apt update -y && sudo apt upgrade -y
$ systemctl status hibinit-agent
○ hibinit-agent.service - EC2 instance hibernation setup agent
     Loaded: loaded (/lib/systemd/system/hibinit-agent.service; enabled; preset: enabled)
     Active: inactive (dead) since Wed 2023-05-17 17:53:54 UTC; 20s ago
   Duration: 1.209s
       Docs: file:/usr/share/doc/ec2-hibinit-agent/README
    Process: 2511 ExecStart=/usr/bin/hibinit-agent -c /etc/hibinit-config.cfg (code=exited, status=0/SUCCESS)
        CPU: 1.000s

May 17 17:53:54 ip-172-31-3-141 hibinit-agent[2513]: GRUB configuration is updated
May 17 17:53:54 ip-172-31-3-141 hibinit-agent[2513]: Setting swap device to 66305 with offset 749568
May 17 17:53:54 ip-172-31-3-141 hibinit-agent[2513]: GRUB configuration is updated
May 17 17:53:54 ip-172-31-3-141 hibinit-agent[2513]: Setting swap device to 66305 with offset 749568
May 17 17:53:54 ip-172-31-3-141 hibinit-agent[2513]: Done updating the swap offset. Turning swapoff
May 17 17:53:54 ip-172-31-3-141 hibinit-agent[2513]: Done updating the swap offset. Turning swapoff
May 17 17:53:54 ip-172-31-3-141 hibinit-agent[2513]: Running: swapoff /swap-hibinit
May 17 17:53:54 ip-172-31-3-141 hibinit-agent[2513]: Running: swapoff /swap-hibinit
May 17 17:53:54 ip-172-31-3-141 systemd[1]: hibinit-agent.service: Deactivated successfully.
May 17 17:53:54 ip-172-31-3-141 systemd[1]: hibinit-agent.service: Consumed 1.000s CPU time.


>From this point, start a daemon process and then initiate hibernation, start the machine, and the daemon process should still be running. I do provide an example daemon process to use in the parent bug report.

-- 
https://code.launchpad.net/~mitchdz/ubuntu/+source/ec2-hibinit-agent/+git/ec2-hibinit-agent/+merge/443022
Your team Ubuntu Sponsors Team is requested to review the proposed merge of ~mitchdz/ubuntu/+source/ec2-hibinit-agent:add-IMDSv2-mantic into ubuntu/+source/ec2-hibinit-agent:ubuntu/devel.




More information about the Ubuntu-sponsors mailing list