{"id":2456,"date":"2019-08-06T01:16:09","date_gmt":"2019-08-05T16:16:09","guid":{"rendered":"http:\/\/matoken.org\/blog\/?p=2456"},"modified":"2019-08-06T01:16:09","modified_gmt":"2019-08-05T16:16:09","slug":"the-dm-crypt-area-is-not-found-from-ubuntu-19-10-initramfs-tools-and-an-error-occurs","status":"publish","type":"post","link":"https:\/\/matoken.org\/blog\/2019\/08\/06\/the-dm-crypt-area-is-not-found-from-ubuntu-19-10-initramfs-tools-and-an-error-occurs\/","title":{"rendered":"Ubuntu 19.10 \u306e initramfs-tools \u304b\u3089 dm-crypt \u9818\u57df\u304c\u898b\u3064\u304b\u3089\u305a\u30a8\u30e9\u30fc\u3068\u306a\u308b"},"content":{"rendered":"<div class=\"paragraph\">\n<p>Ubuntu 19.10 amd64 \u74b0\u5883\u3067apt upgrade \u3067\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\uff0e<br \/>\n\u65b0\u3057\u3044Kernel \u304c\u964d\u308a\u3066\u304d\u3066initramfs \u306e\u3068\u3053\u308d\u3067dm-crypy \u9818\u57df\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u611f\u3058\u306e\u3088\u3046\u3067\u3059\uff0e<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>initramfs-tools (0.133ubuntu9) \u306e\u30c8\u30ea\u30ac\u3092\u51e6\u7406\u3057\u3066\u3044\u307e\u3059 ...\r\nupdate-initramfs: Generating \/boot\/initrd.img-5.2.0-8-generic\r\ncryptsetup: ERROR: Couldn't resolve device\r\n  \/dev\/disk\/by-uuid\/805938be-2c29-4a53-9ed2-36fb233d76ea\r\ncryptsetup: ERROR: Couldn't resolve device\r\n  UUID=31145c5b-93fc-4fe0-9e46-3a68bfcadeae\r\nW: initramfs-tools configuration sets RESUME=UUID=31145c5b-93fc-4fe0-9e46-3a68bfcadeae\r\nW: but no matching swap device is available.\r\n\u51e6\u7406\u4e2d\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f:<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u691c\u7d22\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3092\u767a\u898b\uff0e<\/p>\n<\/div>\n<div class=\"quoteblock\">\n<div class=\"title\"><a href=\"https:\/\/www.reddit.com\/r\/debian\/comments\/8yxiud\/livebuild_issue_getting_persistence_with_luks\/\">live-build issue getting persistence with luks encryption : debian<\/a><\/div>\n<blockquote>\n<div class=\"paragraph\">\n<p>The problem is that cryptsetup is not supported in the \/etc\/initramfs-tools\/initramfs.conf configuration anymore.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>The new location for loading dm-crypt during boot is \/etc\/cryptsetup-initramfs\/conf-hook<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>CRYPTSETUP=y<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>you&#8217;ll see it in the conf-hook file commented out, just set it as above and it will work again.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>If you build a system with encryption, I believe this gets changed at some point, but the live builds are systems that are not built like this, and there isn&#8217;t a lot to go on to direct you to make this change.<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>When you set that and re-make your iso image, you&#8217;ll be able to do encrypted persistence again. Worked for me on latest Kali January 2019. :-)<\/p>\n<\/div>\n<\/blockquote>\n<\/div>\n<div class=\"paragraph\">\n<p>\u306a\u308b\u307b\u3069\uff0c\u3053\u306e\u74b0\u5883\u306f\u3044\u3064\u3082 development branch \u306b\u3057\u3066\u3044\u308b\u306e\u3067\u3053\u306e\u554f\u984c\u306b\u5f53\u305f\u3063\u305f\u3088\u3046\u3067\u3059\u306d\uff0e<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p><code>\/etc\/cryptsetup-initramfs\/conf-hook<\/code> \u3092 <code>CRYPTSETUP=y<\/code> \u3068\u7de8\u96c6\u3057\u3066\uff0c<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>$ sudo vi \/etc\/cryptsetup-initramfs\/conf-hook\r\n$ sudo git diff HEAD \/etc\/cryptsetup-initramfs\/conf-hook\r\ndiff --git a\/cryptsetup-initramfs\/conf-hook b\/cryptsetup-initramfs\/conf-hook\r\nindex 8a6a474..fdd7920 100644\r\n--- a\/cryptsetup-initramfs\/conf-hook\r\n+++ b\/cryptsetup-initramfs\/conf-hook\r\n@@ -15,7 +15,7 @@\r\n # cryptsetup initramfs integration.\r\n #\r\n\r\n-#CRYPTSETUP=\r\n+CRYPTSETUP=y\r\n\r\n #\r\n # KEYFILE_PATTERN: ...<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>apt \u3067fix-broken \u3092\u639b\u3051\u308b\u3068\u6b63\u5e38\u306binitramfs \u304c\u901a\u308a\uff0c\u518d\u8d77\u52d5\u3057\u3066\u65b0\u3057\u3044kernal \u3067\u8d77\u52d5\u3057\u307e\u3057\u305f :)<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>$ sudo apt install -f<\/pre>\n<\/div>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"title\">\u74b0\u5883<\/div>\n<div class=\"content\">\n<pre>$ dpkg-query -W cryptsetup* initramfs-tools*\r\ncryptsetup      2:2.1.0-5ubuntu2\r\ncryptsetup-bin  2:2.1.0-5ubuntu2\r\ncryptsetup-initramfs    2:2.1.0-5ubuntu2\r\ncryptsetup-run  2:2.1.0-5ubuntu2\r\ninitramfs-tools 0.133ubuntu9\r\ninitramfs-tools-bin     0.133ubuntu9\r\ninitramfs-tools-core    0.133ubuntu9\r\n$ lsb_release -dr\r\nDescription:    Ubuntu Eoan Ermine (development branch)\r\nRelease:        19.10\r\n$ uname -m\r\nx86_64<\/pre>\n<\/div>\n<\/div>\n<p><iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=matokensmeme-22&#038;language=ja_JP&#038;o=9&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;ref=as_ss_li_til&#038;asins=B07JZHLTR8&#038;linkId=e997c0c2f74c514acf4051f5697cf172\"><\/iframe><iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=matokensmeme-22&#038;language=ja_JP&#038;o=9&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;ref=as_ss_li_til&#038;asins=B07TMRSP77&#038;linkId=3d2c1361ca220b689f143d7a76f5bded\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu 19.10 amd64 \u74b0\u5883\u3067apt upgrade \u3067\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\uff0e \u65b0\u3057\u3044Kernel \u304c\u964d\u308a\u3066\u304d\u3066initramfs \u306e\u3068\u3053\u308d\u3067dm-crypy \u9818\u57df\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u611f\u3058\u306e\u3088\u3046\u3067\u3059\uff0e initram [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"webmentions_disabled_pings":false,"webmentions_disabled":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[474,63],"tags":[234,288,475],"class_list":["post-2456","post","type-post","status-publish","format-standard","hentry","category-eoan-ermine19-10","category-ubuntu","tag-apt","tag-ubuntu","tag-ubuntu-19-10"],"_links":{"self":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/2456","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/comments?post=2456"}],"version-history":[{"count":0,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/2456\/revisions"}],"wp:attachment":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/media?parent=2456"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/categories?post=2456"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/tags?post=2456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}