{"id":1762,"date":"2022-09-11T15:23:12","date_gmt":"2022-09-11T14:23:12","guid":{"rendered":"https:\/\/coding.moris.org\/?p=1762"},"modified":"2022-09-11T21:06:06","modified_gmt":"2022-09-11T20:06:06","slug":"debian-linux-kernel-5-19-and-crypttab","status":"publish","type":"post","link":"https:\/\/priscimon.net\/coding\/2022\/09\/11\/debian-linux-kernel-5-19-and-crypttab\/","title":{"rendered":"Debian Linux, kernel 5.19, and crypttab"},"content":{"rendered":"\n<p>A Debian Linux system, running kernel 5.19 with Linux Unified Key Setup (LUKS) encryption, sometimes fails to boot from the suspend state, with the error message: <em>Gave up waiting for suspend\/resume device<\/em>.<\/p>\n\n\n\n<p>This failure <strong>does not<\/strong> happen on kernel 5.18 and seems related to how the swap partition is set up in LVM volumes. For example, it occurs on my laptop with the swap partition in a volume group spanning two encrypted devices, but not on my desktop with the same partition in a volume group on a single encrypted device.<\/p>\n\n\n\n<p>To resolve this error, identify the device that cannot be mounted at boot and add option <code>initramfs<\/code> to its corresponding entry in <em>\/etc\/crypttab<\/em>. This change forces the device to be opened during the initramfs stage at boot. (Typically, <a href=\"https:\/\/cryptsetup-team.pages.debian.net\/cryptsetup\/README.initramfs.html#resume-device-support\">the device <em>should<\/em> automatically be identified and set up during this stage<\/a>, as it was in kernel 5.18.)<\/p>\n\n\n\n<p>Note that option <code>initramfs<\/code> is supported in only the Debian version of <em>\/etc\/crypttab<\/em>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A Debian Linux system, running kernel 5.19 with Linux Unified Key Setup (LUKS) encryption, sometimes fails to boot from the suspend state, with the error message: Gave up waiting for suspend\/resume device. This failure does not happen on kernel 5.18 and seems related to how the swap partition is set up in LVM volumes. For [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1762","post","type-post","status-publish","format-standard","hentry","category-general"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3I4g9-sq","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/priscimon.net\/coding\/wp-json\/wp\/v2\/posts\/1762","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/priscimon.net\/coding\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/priscimon.net\/coding\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/priscimon.net\/coding\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/priscimon.net\/coding\/wp-json\/wp\/v2\/comments?post=1762"}],"version-history":[{"count":10,"href":"https:\/\/priscimon.net\/coding\/wp-json\/wp\/v2\/posts\/1762\/revisions"}],"predecessor-version":[{"id":1775,"href":"https:\/\/priscimon.net\/coding\/wp-json\/wp\/v2\/posts\/1762\/revisions\/1775"}],"wp:attachment":[{"href":"https:\/\/priscimon.net\/coding\/wp-json\/wp\/v2\/media?parent=1762"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/priscimon.net\/coding\/wp-json\/wp\/v2\/categories?post=1762"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/priscimon.net\/coding\/wp-json\/wp\/v2\/tags?post=1762"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}