# Hibernate to encrypted swap partition not working

**URL:** <https://forum.endeavouros.com/t/hibernate-to-encrypted-swap-partition-not-working/49239>\
**Category:** Newbie\
**Created:** [December 22, 2023, 3:19am UTC](https://forum.endeavouros.com/t/hibernate-to-encrypted-swap-partition-not-working/49239 "2023-12-22T03:19:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![BluishHumility](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/bluishhumility/32/70412_2.png) [@BluishHumility](https://forum.endeavouros.com/u/BluishHumility)\
**Post date:** [December 23, 2023, 1:04am UTC](https://forum.endeavouros.com/t/hibernate-to-encrypted-swap-partition-not-working/49239/2 "2023-12-23T01:04:06Z")

</div>

> [@Astrosms](#):
>
> [this more recent post](https://forum.endeavouros.com/t/hibernation-stops-working-after-last-upgrade/48817) seems to be directly relevant; the solution in that post did not work for me, however.

Your config file in `/etc/dracut.conf.d/` is exactly like this?

```auto
add_dracutmodules+=" resume "
install_items+=" /usr/lib/systemd/system/systemd-hibernate-resume.service "

```

The “padding” spaces are needed.

After setting the config with the resume modules you must rebuild the init images.

```auto
sudo dracut-rebuild

```

---

_[View the full topic](https://forum.endeavouros.com/t/hibernate-to-encrypted-swap-partition-not-working/49239)._
