ec2-hibinit-agent (1.0.9-0ubuntu1) resolute; urgency=medium

  * Update to new upstream tarball version 1.0.9
    (LP: #2129313, LP: #2146289)
  * Add d/watch file and remove d/todo
  * add var/lib/hibinit-agent to d/dirs
  * Update readme name in d/docs
  * Use upstream systemd unit in d/ec2-hibinit-agent.install and drop ours
  * Update packaging for compat 13
  * Drop patches now accepted upstream:
    - lp2031345-recreate-swap-file.patch
    - lp2024505-fix-locale-issue.patch
    - lp2023924-remove-quotes-from-state-dir.patch
    - lp1941785-Add-support-for-IMDSv2.patch
    - lp1968805-Swapon-with-maximum-priority-before-hibernation.patch
    - 0005-Skip-installing-init.d-script.patch (init.d dropped upstream)
    - 0004-Fix-Python3-compatibility.patch
  * Drop patches no longer needed:
    - 0015-ignore-setting-resume-offset-again-if-dev-snapshot-d.patch
    - 0008-Detect-disabled-hibernation-with-Python-3-s-urllib-t.patch
    - fix-setuptools-package-discovery.patch
      dropped in favor of 0014-define-packages-within-setup.patch
  * Refresh or update remaining patches to align with upstream changes:
    - Replace 0005, 0008, and 0010 with a single consolidated patch:
      * d/p/debian-grub-integration.patch:
        + Update to use PARTUUID for grub config while resolving to real 
          device paths for /sys/power/resume for sysfs compatibility.
    - 0006-Use-swap-hibinit-instead-of-too-generic-swap.patch
      Refreshed.
    - detect-hibernate-cmd-by-default.patch
      Updated to reflect upstream hibernation logic refactor.
    - py3-default
      Updated for upstream change of python executable.
    - hibinit-agent.system-sleep
      Single file was not updated to install to usr/lib
  * d/p/0011-Disable-Dracut-initramfs-rebuild.patch: do not rebuild
    initramfs with dracut since we do not use dracut on cloud images
  * d/p/0013-define-packages-within-setup.patch: Fix building sgdist
    by manually specifying where python code lives

 -- Patrick Iacob <patrick.iacob@canonical.com>  Fri, 12 Dec 2025 15:17:32 -0800

ec2-hibinit-agent (1.0.0-0ubuntu18) resolute; urgency=medium

  * No-change mass rebuild for Ubuntu 26.04 (LP: #2132257)

 -- Sebastien Bacher <seb128@ubuntu.com>  Sat, 06 Dec 2025 10:44:21 +0100

ec2-hibinit-agent (1.0.0-0ubuntu17) oracular; urgency=medium

  * d/p/0015-ignore-setting-resume-offset-again-if-dev-snapshot-d.patch: do
    not set the snapshot swap area if /dev/snapshot does not exist. This is
    necessary to enable ARM hibernation. (LP: #2066999)

 -- Mitchell Dzurick <mitchell.dzurick@canonical.com>  Thu, 23 May 2024 16:51:55 -0700

ec2-hibinit-agent (1.0.0-0ubuntu16) mantic; urgency=medium

  * d/p/lp2031345-recreate-swap-file.patch: Recreate the SWAP file if instance
    type changes (LP: #2031345)

 -- Mitchell Dzurick <mitchell.dzurick@canonical.com>  Mon, 28 Aug 2023 07:23:22 -0700

ec2-hibinit-agent (1.0.0-0ubuntu15) mantic; urgency=medium

    * debian/patches/lp2023924-remove-quotes-from-state-dir.patch: fixes
      an issue where a weird directory would be created in root
      (LP: #2023924)
    * debian/patches/lp2024505-fix-locale-issue.patch:  fixes an issue where
      certain locales can cause an error when trying to decode the output of
      `df -P` (LP: #2024505)

 -- Mitchell Dzurick <mitchell.dzurick@canonical.com>  Tue, 20 Jun 2023 17:01:17 -0700

ec2-hibinit-agent (1.0.0-0ubuntu14) mantic; urgency=medium

   * d/p/lp1941785-Add-support-for-IMDSv2.patch: add IMDSv2 support
     (LP: #1941785)

 -- Mitchell Dzurick <mitchell.dzurick@canonical.com>  Tue, 16 May 2023 06:58:08 -0700

ec2-hibinit-agent (1.0.0-0ubuntu13) lunar; urgency=medium

  * d/p/fix-setuptools-package-discovery.patch: fix FTBFS with recent
    setuptools (LP: #2009133)

 -- Simon Chopin <schopin@ubuntu.com>  Fri, 03 Mar 2023 10:19:11 +0100

ec2-hibinit-agent (1.0.0-0ubuntu12) kinetic; urgency=medium

  * Swapon with maximum priority right before hibernation. This resolves
    swapfile priority issues with additional or multiple swapfiles enabled.
    (LP: #1968805)
    - d/p/lp1968805-Swapon-with-maximum-priority-before-hibernation.patch

 -- Matthew Ruffell <matthew.ruffell@canonical.com>  Wed, 11 May 2022 16:02:52 +1200

ec2-hibinit-agent (1.0.0-0ubuntu11) groovy; urgency=medium

  * Disable suspending the system (LP: #1898087)
  * Always set resume device by PARTUUID instead of by device name.
    Based on patch by Francis Ginther. (LP: #1896638)

 -- Balint Reczey <rbalint@ubuntu.com>  Wed, 14 Oct 2020 20:49:52 +0200

ec2-hibinit-agent (1.0.0-0ubuntu9) focal; urgency=medium

  * Don't restart systemd-networkd twice upon resume

 -- Balint Reczey <rbalint@ubuntu.com>  Mon, 23 Mar 2020 13:24:17 +0100

ec2-hibinit-agent (1.0.0-0ubuntu8) focal; urgency=medium

  * debian/hibinit-resume: Add extra steps around swapoff to avoid OOM errors.
    Also work around xen-netfront not resuming properly.
    Thanks to Francis Ginther for the initial patch (LP: #1863242, #1864041)

 -- Balint Reczey <rbalint@ubuntu.com>  Thu, 12 Mar 2020 14:05:06 +0100

ec2-hibinit-agent (1.0.0-0ubuntu7) eoan; urgency=medium

  * Handle power button ACPI event with acpid (LP: #1840909)

 -- Balint Reczey <rbalint@ubuntu.com>  Thu, 29 Aug 2019 22:16:15 +0200

ec2-hibinit-agent (1.0.0-0ubuntu6) eoan; urgency=medium

  * Drop 0007-Match-ACPI-sleep-action-in-a-very-liberal-way.patch.
    It turned out LP: #1831103 was responsible for the missing SBTN event
    and where it was fixed two events were handled causing two hibernations.
  * Call swapoff via systemd-run to avoid the command getting killed on timeout.
    Also stop swap after restarting systemd-networkd to recover network
    connectivity earlier.
  * debian/hibinit-agent.system-sleep: Restart systemd-networkd with --no-block
    to finish running the hook faster.

 -- Balint Reczey <rbalint@ubuntu.com>  Fri, 07 Jun 2019 13:02:59 +0200

ec2-hibinit-agent (1.0.0-0ubuntu5) eoan; urgency=medium

  * debian/gbp.conf: Fix packaging branch name
  * Restart systemd-networkd on resuming from hibernation.
    On resume the system sometimes does not restore network connections
    and this is a way of reliably triggering the restoration. (LP: #1830427)

 -- Balint Reczey <rbalint@ubuntu.com>  Fri, 24 May 2019 21:48:20 +0200

ec2-hibinit-agent (1.0.0-0ubuntu4) disco; urgency=medium

  * Update grub configuration snippet even when it exists but has outdated
    content

 -- Balint Reczey <rbalint@ubuntu.com>  Fri, 01 Mar 2019 22:43:46 +0100

ec2-hibinit-agent (1.0.0-0ubuntu3) disco; urgency=medium

  * Refer to root partition in resume=... the same way as GRUB2 refers to it
    (LP: #1818150)

 -- Balint Reczey <rbalint@ubuntu.com>  Thu, 28 Feb 2019 23:25:57 +0100

ec2-hibinit-agent (1.0.0-0ubuntu2) disco; urgency=medium

  * debian/gbp.conf: Use ubuntu/ prefix for tags
  * Silence swapoff when purging the package
  * Detect disabled hibernation with Python 3's urllib, too. (LP: #1817926)

 -- Balint Reczey <rbalint@ubuntu.com>  Wed, 27 Feb 2019 17:03:37 +0100

ec2-hibinit-agent (1.0.0-0ubuntu1) disco; urgency=medium

  * Initial release based on packaging of hibagent

 -- Balint Reczey <rbalint@ubuntu.com>  Wed, 16 Jan 2019 22:41:37 +0700

