{"id":396567,"date":"2024-06-29T12:54:55","date_gmt":"2024-06-29T12:54:55","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=396567"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=396567","title":{"rendered":"<span>Gentoo \u0432 \u043e\u0431\u043b\u0430\u043a\u0435 Hetzner c LUKS \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/ac3\/b72\/0b9\/ac3b720b9df41ca9e1b647924670ad23.jpg\" width=\"1920\" height=\"1080\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ac3\/b72\/0b9\/ac3b720b9df41ca9e1b647924670ad23.jpg\" data-blurred=\"true\"\/><\/figure>\n<p>\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 Gentoo \u0432 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435 \u0441\u0430\u043c\u044b\u0445 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0438 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445 \u0437\u0430\u0440\u0443\u0431\u0435\u0436\u043d\u044b\u0445 \u0445\u043e\u0441\u0442\u0435\u0440\u043e\u0432 \u0441 KVM \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 &#8212; Hetzner. <\/p>\n<p>\u0421\u0442\u0430\u0442\u044c\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u0441 \u0446\u0435\u043b\u044c\u044e \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 Gentoo \u0441:<\/p>\n<ul>\n<li>\n<p>\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u043a\u043e\u0440\u043d\u0435\u0432\u044b\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u043c (LUKS)<\/p>\n<\/li>\n<li>\n<p>\u0431\u0435\u0437 \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u043a\u043b\u044e\u0447\u0430 \u0434\u043b\u044f \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0438 \u043d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435.<\/p>\n<\/li>\n<li>\n<p>\u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0430 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u043f\u043e SSH <strong>\u0434\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u041e\u0421<\/strong> &#8212; \u043a\u0430\u043a \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043a\u043b\u044e\u0447\u0430.<\/p>\n<\/li>\n<\/ul>\n<h2>\u041f\u043b\u0430\u043d:<\/h2>\n<ul>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b.<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0437\u043c\u0435\u0442\u043a\u0430 \u0434\u0438\u0441\u043a\u0430.<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 LUKS \u0434\u043b\u044f \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0430 ( rootfs ) .<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 Gentoo stage3.<\/p>\n<\/li>\n<li>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Gentoo.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0438 \u0441\u0431\u043e\u0440\u043a\u0430 \u044f\u0434\u0440\u0430 \u0438 initramfs.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 grub2<\/p>\n<\/li>\n<\/ul>\n<h2>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b (\u0412\u041c)<\/h2>\n<p>\u0414\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0412\u041c \u043d\u0430 \u0442\u0430\u0440\u0438\u0444\u0435 <code>CPX11<\/code> \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 &#8212; 2 vCPU (AMD EPYC 2nd Gen), 2GB RAM, 40GB NVMe SSD.<br \/>\u041f\u043e\u0434 \u0441\u043f\u043e\u0439\u043b\u0435\u0440\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u043e\u0432 \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0412\u041c, \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u0432 \u0435\u0451 \u0432 RESCUE \u0440\u0435\u0436\u0438\u043c (\u0440\u0435\u0436\u0438\u043c \u043f\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u0430 \u043f\u043e PXE).<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0412\u041c \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 Hetzner (\u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e \u0432 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0430\u0445):<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0414\u043b\u044f \u043d\u0430\u0448\u0435\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u0430\u043a\u043e\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c. \u041f\u043e\u0441\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0412\u041c, \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0435\u0451 \u0432 RESCUE \u0440\u0435\u0436\u0438\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043f\u0430\u043d\u0435\u043b\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0438\u0440\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u043e\u0439.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/793\/4b4\/63b\/7934b463b00cae7308e87168e14a00f7.png\" alt=\"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0412\u041c \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 Hetzner. \u0428\u0430\u0433 \u21161.\" title=\"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0412\u041c \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 Hetzner. \u0428\u0430\u0433 \u21161.\" width=\"1846\" height=\"921\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/793\/4b4\/63b\/7934b463b00cae7308e87168e14a00f7.png\"\/><\/p>\n<div><figcaption>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0412\u041c \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 Hetzner. \u0428\u0430\u0433 \u21161.<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c88\/94e\/593\/c8894e59374ecaa9e34edb263ec1b660.png\" alt=\"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0412\u041c \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 Hetzner. \u0428\u0430\u0433 \u21162.\" title=\"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0412\u041c \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 Hetzner. \u0428\u0430\u0433 \u21162.\" width=\"1846\" height=\"921\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c88\/94e\/593\/c8894e59374ecaa9e34edb263ec1b660.png\"\/><\/p>\n<div><figcaption>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0412\u041c \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 Hetzner. \u0428\u0430\u0433 \u21162.<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/3d5\/ccb\/1ba\/3d5ccb1bade1550d569220ccf721c24c.png\" alt=\"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0412\u041c \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 Hetzner. \u0428\u0430\u0433 \u21163.\" title=\"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0412\u041c \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 Hetzner. \u0428\u0430\u0433 \u21163.\" width=\"1846\" height=\"1268\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3d5\/ccb\/1ba\/3d5ccb1bade1550d569220ccf721c24c.png\"\/><\/p>\n<div><figcaption>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0412\u041c \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 Hetzner. \u0428\u0430\u0433 \u21163.<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/64c\/837\/11d\/64c83711de4c96571cc7a9759ab7cc73.png\" alt=\"\u0421\u043f\u0438\u0441\u043e\u043a \u0438\u043c\u044e\u0449\u0438\u0445\u0441\u044f \u0412\u041c \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 Hetzner.\" title=\"\u0421\u043f\u0438\u0441\u043e\u043a \u0438\u043c\u044e\u0449\u0438\u0445\u0441\u044f \u0412\u041c \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 Hetzner.\" width=\"1847\" height=\"473\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/64c\/837\/11d\/64c83711de4c96571cc7a9759ab7cc73.png\"\/><\/p>\n<div><figcaption>\u0421\u043f\u0438\u0441\u043e\u043a \u0438\u043c\u044e\u0449\u0438\u0445\u0441\u044f \u0412\u041c \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 Hetzner.<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/a71\/b7e\/d1d\/a71b7ed1d2231c2e84be15591f2c770e.png\" alt=\"\u0421\u043e\u0437\u0434\u0430\u043d\u043d\u0430\u044f \u0412\u041c \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 Hetzner.\" title=\"\u0421\u043e\u0437\u0434\u0430\u043d\u043d\u0430\u044f \u0412\u041c \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 Hetzner.\" width=\"1847\" height=\"653\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a71\/b7e\/d1d\/a71b7ed1d2231c2e84be15591f2c770e.png\"\/><\/p>\n<div><figcaption>\u0421\u043e\u0437\u0434\u0430\u043d\u043d\u0430\u044f \u0412\u041c \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 Hetzner.<\/figcaption><\/div>\n<\/figure>\n<p>\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0412\u041c \u0432 RESCUE \u0440\u0435\u0436\u0438\u043c. Hetzner \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 Debian \u0434\u043b\u044f RESCUE.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/704\/cb8\/76a\/704cb876a7a59f660954c24f7809ee4f.png\" alt=\"\u041f\u0435\u0440\u0435\u0432\u043e\u0434 \u0412\u041c \u0432 RESCUE. \u0428\u0430\u0433 \u21161\" title=\"\u041f\u0435\u0440\u0435\u0432\u043e\u0434 \u0412\u041c \u0432 RESCUE. \u0428\u0430\u0433 \u21161\" width=\"1473\" height=\"647\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/704\/cb8\/76a\/704cb876a7a59f660954c24f7809ee4f.png\"\/><\/p>\n<div><figcaption>\u041f\u0435\u0440\u0435\u0432\u043e\u0434 \u0412\u041c \u0432 RESCUE. \u0428\u0430\u0433 \u21161<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/840\/cf5\/7ae\/840cf57ae10a0b016443a3167dbed01b.png\" alt=\"\u041f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u0412\u041c \u0432 RESCUE. \u0428\u0430\u0433 \u21162\" title=\"\u041f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u0412\u041c \u0432 RESCUE. \u0428\u0430\u0433 \u21162\" width=\"1847\" height=\"592\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/840\/cf5\/7ae\/840cf57ae10a0b016443a3167dbed01b.png\"\/><\/p>\n<div><figcaption>\u041f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u0412\u041c \u0432 RESCUE. \u0428\u0430\u0433 \u21162<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e05\/141\/f10\/e05141f10e85d5d9601d8b6bb35424c6.png\" alt=\"\u041f\u0435\u0440\u0435\u0432\u043e\u0434 \u0412\u041c \u0432 RESCUE. \u0428\u0430\u0433 \u21163\" title=\"\u041f\u0435\u0440\u0435\u0432\u043e\u0434 \u0412\u041c \u0432 RESCUE. \u0428\u0430\u0433 \u21163\" width=\"838\" height=\"616\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e05\/141\/f10\/e05141f10e85d5d9601d8b6bb35424c6.png\"\/><\/p>\n<div><figcaption>\u041f\u0435\u0440\u0435\u0432\u043e\u0434 \u0412\u041c \u0432 RESCUE. \u0428\u0430\u0433 \u21163<\/figcaption><\/div>\n<\/figure>\n<p>\u0412\u041c \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u0430 \u0432 RESCUE \u043f\u043e PXE.<\/p>\n<\/div>\n<\/details>\n<h2>\u0420\u0430\u0437\u043c\u0435\u0442\u043a\u0430 \u0434\u0438\u0441\u043a\u0430<\/h2>\n<p>\u0414\u043e\u0436\u0438\u0434\u0430\u0435\u043c\u0441\u044f \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0412\u041c (\u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043c\u0438\u043d\u0443\u0442\u0443). \u0414\u043b\u044f \u0412\u041c \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0434\u0435\u043b\u0435\u043d \u0432\u043d\u0435\u0448\u043d\u0438\u0439 IP, \u043f\u043e \u043d\u0435\u043c\u0443 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043f\u043e SSH.<br \/>\u041f\u043e\u0441\u043b\u0435 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0430\u043c \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u0443\u044e\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043d\u0430\u0448\u0435\u0439 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435:<\/p>\n<pre><code class=\"bash\">Linux rescue 5.13.13 #1 SMP Thu Sep 2 05:38:34 UTC 2021 x86_64  ----------------------------------------------------------------------    Welcome to the Hetzner Rescue System.    This Rescue System is based on Debian GNU\/Linux 11 (bullseye) with   a custom kernel. You can install software as in a normal system.    To install a new operating system from one of our prebuilt   images, run 'installimage' and follow the instructions.    More information at https:\/\/docs.hetzner.com\/  ----------------------------------------------------------------------  Rescue System up since 2021-10-26 09:37 +02:00  Last login: Thu Oct 26 09:38:03 2021 from ***.***.***.*** Hardware data:     CPU1: AMD EPYC Processor (Cores 2)    Memory:  1944 MB    Disk \/dev\/sda: 40 GB (=> 38 GiB)     Total capacity 38 GiB with 1 Disk  Network data:    eth0  LINK: yes          MAC:  **:**:**:**:**:**          IP:   ***.***.***.***          IPv6: ***:***:****:**::2\/64          Virtio network driver<\/code><\/pre>\n<p>\u0418\u0437 \u0432\u044b\u0432\u043e\u0434\u0438\u043c\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0432\u0438\u0434\u0438\u043c &#8212; \u0441\u0435\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f <code>Virtio<\/code>. \u041d\u0430\u043c \u044d\u0442\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0434\u0430\u043b\u0435\u0435 \u043f\u0440\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u044f\u0434\u0440\u0430.<\/p>\n<p><strong>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0445 \u0434\u0438\u0441\u043a\u043e\u0432 \u0438\u0445 \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u0432:<\/strong><\/p>\n<pre><code class=\"bash\">lsblk    NAME    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT   loop0     7:0    0  2.9G  1 loop    sda       8:0    0 38.1G  0 disk    |-sda1    8:1    0 37.9G  0 part    |-sda14   8:14   0    1M  0 part    `-sda15   8:15   0  256M  0 part    sr0      11:0    1 1024M  0 rom <\/code><\/pre>\n<p><strong>\u0423\u0434\u0430\u043b\u044f\u0435\u043c \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0443 \u0434\u0438\u0441\u043a\u0430:<\/strong><\/p>\n<pre><code class=\"bash\">wipefs -a \/dev\/sda   \/dev\/sda: 2 bytes were erased at offset 0x000001fe (dos): 55 aa   \/dev\/sda: calling ioctl to re-read partition table: Success<\/code><\/pre>\n<p><strong>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0443\u044e \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0443 \u0434\u0438\u0441\u043a\u0430:<\/strong><\/p>\n<pre><code class=\"bash\">parted -a optimal --script \/dev\/sda \\     mklabel msdos \\     mkpart primary 0% 500MiB \\     set 1 boot on \\     mkpart primary 500MiB 100%<\/code><\/pre>\n<p><strong>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u043c \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c:<\/strong><\/p>\n<pre><code class=\"bash\">parted -l   Model: QEMU QEMU HARDDISK (scsi)   Disk \/dev\/sda: 41.0GB   Sector size (logical\/physical): 512B\/512B   Partition Table: msdos   Disk Flags:     Number  Start   End     Size    Type     File system  Flags    1      1049kB  524MB   523MB   primary  ext2         boot    2      524MB   41.0GB  40.4GB  primary<\/code><\/pre>\n<h2>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 LUKS \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u0438 \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c<\/h2>\n<p><strong>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043c\u043e\u0434\u0443\u043b\u044c \u044f\u0434\u0440\u0430 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 LUKS:<\/strong><\/p>\n<pre><code>modprobe dm-crypt<\/code><\/pre>\n<p><strong>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0434\u043b\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \/boot .<\/strong><br \/>\u0412 \u044d\u0442\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u044b grub2, \u044f\u0434\u0440\u043e \u0438 initramfs.<br \/>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b &#8212; \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c ext2, \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437\u0434\u0435\u043b \u043d\u0435 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u043c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0432 \u0436\u0443\u0440\u043d\u0430\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438:<\/p>\n<pre><code class=\"bash\">mkfs.ext2 \/dev\/sda1<\/code><\/pre>\n<p><strong>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043a\u043b\u044e\u0447, \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u041d\u0415 \u043d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c. \u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u043c \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0443 \u0441\u0435\u0431\u044f \u0432 \u043d\u0430\u0434\u0451\u0436\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435.<\/strong><\/p>\n<pre><code class=\"bash\">pwgen 32 -cs 1<\/code><\/pre>\n<p><strong>\u0423\u0442\u0438\u043b\u0438\u0442\u0430 <\/strong><code>\u0441ryptsetup<\/code><strong> c \u043e\u043f\u0446\u0438\u0435\u0439 <\/strong><code>benchmark<\/code><strong> \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f:<\/strong><\/p>\n<pre><code>cryptsetup benchmark     # Tests are approximate using memory only (no storage IO).     PBKDF2-sha1       941271 iterations per second for 256-bit key     PBKDF2-sha256    1859177 iterations per second for 256-bit key     PBKDF2-sha512     946368 iterations per second for 256-bit key     PBKDF2-ripemd160  719187 iterations per second for 256-bit key     PBKDF2-whirlpool  575508 iterations per second for 256-bit key     argon2i       4 iterations, 736274 memory, 4 parallel threads (CPUs) for 256-bit key (requested 2000 ms time)     argon2id      4 iterations, 685111 memory, 4 parallel threads (CPUs) for 256-bit key (requested 2000 ms time)     #     Algorithm |       Key |      Encryption |      Decryption             aes-cbc        128b       539.8 MiB\/s      2382.6 MiB\/s         serpent-cbc        128b        89.3 MiB\/s       411.0 MiB\/s         twofish-cbc        128b        91.1 MiB\/s       204.3 MiB\/s             aes-cbc        256b       729.9 MiB\/s      1796.2 MiB\/s         serpent-cbc        256b        51.6 MiB\/s       483.9 MiB\/s         twofish-cbc        256b        92.7 MiB\/s       224.3 MiB\/s             aes-xts        256b      1427.0 MiB\/s      1409.4 MiB\/s         serpent-xts        256b       297.1 MiB\/s       389.4 MiB\/s         twofish-xts        256b       164.5 MiB\/s       182.0 MiB\/s             aes-xts        512b      1242.1 MiB\/s      1685.7 MiB\/s         serpent-xts        512b       395.9 MiB\/s       334.2 MiB\/s         twofish-xts        512b       316.4 MiB\/s       321.4 MiB\/s<\/code><\/pre>\n<p>\u041f\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c \u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0430 AES \u0437\u0430\u043c\u0435\u0442\u043d\u043e \u043e\u043f\u0435\u0440\u0435\u0436\u0430\u0435\u0442 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445. \u041c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c aes-xts \u0441 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c \u043a\u043b\u044e\u0447\u0430 512 \u0431\u0438\u0442.<\/p>\n<blockquote>\n<p>\u041f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0432\u0432\u0435\u0441\u0442\u0438 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435 \u0437\u0430\u0433\u043b\u0430\u0432\u043d\u044b\u043c\u0438 \u0431\u0443\u043a\u0432\u0430\u043c\u0438 &#8212; YES, \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0442\u0435\u043c \u0443\u0436\u0435 \u0432\u0432\u0435\u0441\u0442\u0438 \u043a\u043b\u044e\u0447\/\u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0430.<\/p>\n<\/blockquote>\n<p><strong>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 LUKS \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u0441 AES-XTS \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c:<\/strong><\/p>\n<pre><code>cryptsetup -v -c aes-xts-plain64 -s 512 --hash sha512 --iter-time 5000 --use-random --type luks2 luksFormat \/dev\/sda2    WARNING!   ========   This will overwrite data on \/dev\/sda2 irrevocably.      Are you sure? (Type 'yes' in capital letters): YES   Enter passphrase for \/dev\/sda2:    Verify passphrase:    Key slot 0 created.   Command successful.<\/code><\/pre>\n<p><strong>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c LUKS \u0442\u043e\u043c \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b (Gentoo):<\/strong><\/p>\n<pre><code class=\"bash\">cryptsetup luksOpen \/dev\/sda2 root<\/code><\/pre>\n<p><strong>\u0414\u043e\u043f\u043e\u043b\u043d\u044f\u0435\u043c LUKS \u0442\u043e\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c\u0438 \u043e\u043f\u0446\u0438\u044f\u043c\u0438 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 SSD:<\/strong><\/p>\n<pre><code class=\"bash\">cryptsetup --allow-discards --persistent refresh root<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 LUKS \u0440\u0430\u0437\u0434\u0435\u043b <code>allow-discard<\/code>, \u0447\u0442\u043e\u0431\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u044f TRIM \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u043b\u0430\u0441\u044c \u043f\u043e \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044e <code>Filesystem<\/code> -> <code>LUKS<\/code> -> <code>Disk(sda)<\/code><\/p>\n<p><strong>\u0420\u0430\u0437\u043c\u0435\u0447\u0430\u0435\u043c \u0444\u0430\u0439\u043b\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 (xfs):<br \/><\/strong>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <code>bigtime<\/code> &#8212; \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c \u0434\u043b\u044f  \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b XFS, \u0435\u0441\u043b\u0438 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0435\u0451 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0441\u043b\u0435 2038 ( <a href=\"https:\/\/en.wikipedia.org\/wiki\/Year_2038_problem\" rel=\"noopener noreferrer nofollow\">\u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 2038 \u0433\u043e\u0434\u0430<\/a> ). \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u044d\u0442\u043e\u0442 \u0444\u043b\u0430\u0433 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438 \u0432\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0438 \u044d\u0442\u043e\u0433\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0430 <code>mkfs.xfs<\/code> \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0444\u0430\u0439\u043b\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 timestamps \u043b\u0438\u0448\u044c \u0434\u043e \u044f\u043d\u0432\u0430\u0440\u044f 2038\u0433, \u043e \u0447\u0451\u043c \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0432 \u043b\u043e\u0433\u0430\u0445 \u043f\u0440\u0438 \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441 XFS.<\/p>\n<pre><code class=\"bash\">mkfs.xfs -m bigtime=1 \/dev\/mapper\/root<\/code><\/pre>\n<p><strong>\u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043c\u0435\u0442\u043a\u0438 (LABEL) \u0434\u043b\u044f \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c.<\/strong><br \/>\u042d\u0442\u043e \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 fstab.<\/p>\n<ul>\n<li>\n<p>\u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u043c\u0435\u0442\u043a\u0438 \u0434\u043b\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \/boot \u0441 ext2  :<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">e2label \/dev\/sda1 boot<\/code><\/pre>\n<ul>\n<li>\n<p>\u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u043c\u0435\u0442\u043a\u0438 \u0434\u043b\u044f \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0430 <code>\/<\/code> \u0441 xfs. <\/p>\n<p>\u0435\u0441\u043b\u0438 \u0434\u043b\u044f ext2 \u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c LABEL \u0431\u0435\u0437 \u0440\u0430\u0437\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0430, \u0442\u043e \u0434\u043b\u044f xfs \u0442\u0430\u043a \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043b\u0443\u0447\u0448\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043c\u0435\u0442\u043a\u0443 \u0441\u0440\u0430\u0437\u0443:<\/p>\n<\/li>\n<\/ul>\n<pre><code>xfs_admin -L root \/dev\/mapper\/root<\/code><\/pre>\n<p><strong>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0443\u044e\u0441\u044f \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0443 \u0434\u0438\u0441\u043a\u0430 \u0441 \u0440\u0430\u0437\u0434\u0435\u043b\u0430\u043c\u0438:<\/strong><\/p>\n<pre><code>lsblk -f \/dev\/sda   NAME     FSTYPE      FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINT   sda                                                                                     |-sda1   ext2        1.0   boot  5feec57d-3b4a-4bba-b264-577b1bba8c8e                   `-sda2   crypto_LUKS 2           766df4ca-831c-4a6c-9d92-3b8c3b43afab                     `-root xfs               root  fb0a437d-aeb4-47e1-8a1a-043bf9d045af      <\/code><\/pre>\n<p><strong>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0438 \u043c\u043e\u043d\u0442\u0438\u0440\u0438\u0440\u0443\u0435\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u044b:<\/strong><\/p>\n<pre><code class=\"bash\">mkdir \/mnt\/gentoo\/ mount \/dev\/mapper\/root \/mnt\/gentoo\/ mkdir \/mnt\/gentoo\/boot mount \/dev\/sda1 \/mnt\/gentoo\/boot\/ cd \/mnt\/gentoo\/<\/code><\/pre>\n<h2>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 Gentoo stage3<\/h2>\n<p>Stage3 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0441\u043e <a href=\"https:\/\/www.gentoo.org\/downloads\/\" rel=\"noopener noreferrer nofollow\">\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 Gentoo<\/a>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/ee2\/f55\/da2\/ee2f55da24b724bded0e96500866bca5.png\" alt=\"\u0421\u043a\u0440\u0438\u043d\u0448\u043e\u0442 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f Gentoo stage3\" title=\"\u0421\u043a\u0440\u0438\u043d\u0448\u043e\u0442 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f Gentoo stage3\" width=\"1161\" height=\"627\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ee2\/f55\/da2\/ee2f55da24b724bded0e96500866bca5.png\"\/><\/p>\n<div><figcaption>\u0421\u043a\u0440\u0438\u043d\u0448\u043e\u0442 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f Gentoo stage3<\/figcaption><\/div>\n<\/figure>\n<p>\u0420\u0430\u0437\u0434\u0435\u043b &#171;Details (contents, hashes, and signatures)&#187; \u0432\u043d\u0438\u0437\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b  \u0438 \u0441\u0441\u044b\u043b\u043a\u0430 &#171;Stage 3&#187; \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u0442 \u043d\u0430\u0441 \u043a <a href=\"https:\/\/bouncer.gentoo.org\/fetch\/root\/all\/releases\/amd64\/autobuilds\/\" rel=\"noopener noreferrer nofollow\">\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0430\u0432\u0442\u043e\u0431\u0438\u043b\u0434\u043e\u0432 Gentoo<\/a>. \u041e\u0441\u0442\u0430\u0432\u043b\u044f\u044e \u044d\u0442\u043e \u0437\u0434\u0435\u0441\u044c, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u044d\u0442\u043e \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e \u0434\u043b\u044f \u0442\u0430\u043a\u043e\u0439 \u043d\u0443\u0436\u043d\u043e \u0441\u0441\u044b\u043b\u043a\u0438:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f5d\/1d6\/5ea\/f5d1d65ea9ed7f8c868ce2e35e241444.png\" width=\"1364\" height=\"783\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f5d\/1d6\/5ea\/f5d1d65ea9ed7f8c868ce2e35e241444.png\"\/><\/figure>\n<p>\u0414\u043b\u044f \u043d\u0430\u0448\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u0437\u0435\u0440\u043a\u0430\u043b\u043e\u043c \u042f\u043d\u0434\u0435\u043a\u0441\u0430 (<a href=\"https:\/\/mirror.yandex.ru\" rel=\"noopener noreferrer nofollow\">https:\/\/mirror.yandex.ru<\/a>), \u0442.\u043a. \u0434\u043b\u044f \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0437\u0435\u0440\u043a\u0430\u043b\u0430, \u0447\u0442\u043e\u0431\u044b \u0441\u043d\u0438\u0437\u0438\u0442\u044c \u0441\u0435\u0442\u0435\u0432\u0443\u044e \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043d\u0430 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 Gentoo.<\/p>\n<p>\u041d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<ul>\n<li>\n<p>\u043f\u0443\u0442\u044c \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0441 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 stage3<br \/><a href=\"https:\/\/mirror.yandex.ru\/gentoo-distfiles\/releases\/amd64\/autobuilds\/current-stage3-amd64-openrc\/\" rel=\"noopener noreferrer nofollow\">https:\/\/mirror.yandex.ru\/gentoo-distfiles\/releases\/amd64\/autobuilds\/current-stage3-amd64-openrc\/<\/a><\/p>\n<\/li>\n<li>\n<p>stage3 \u0430\u0440\u0445\u0438\u0432<br \/><a href=\"https:\/\/mirror.yandex.ru\/gentoo-distfiles\/releases\/amd64\/autobuilds\/current-stage3-amd64-openrc\/stage3-amd64-openrc-20211018T200943Z.tar.xz\" rel=\"noopener noreferrer nofollow\">https:\/\/mirror.yandex.ru\/gentoo-distfiles\/releases\/amd64\/autobuilds\/current-stage3-amd64-openrc\/stage3-amd64-openrc-20211018T200943Z.tar.xz<\/a><\/p>\n<\/li>\n<li>\n<p>\u0444\u0430\u0439\u043b \u0441\u043e \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u0444\u0430\u0439\u043b\u043e\u0432 \u0432 \u0430\u0440\u0445\u0438\u0432\u0435 stage3<br \/><a href=\"https:\/\/mirror.yandex.ru\/gentoo-distfiles\/releases\/amd64\/autobuilds\/current-stage3-amd64-openrc\/stage3-amd64-openrc-20211018T200943Z.tar.xz.CONTENTS.gz\" rel=\"noopener noreferrer nofollow\">https:\/\/mirror.yandex.ru\/gentoo-distfiles\/releases\/amd64\/autobuilds\/current-stage3-amd64-openrc\/stage3-amd64-openrc-20211018T200943Z.tar.xz.CONTENTS.gz<\/a><\/p>\n<\/li>\n<li>\n<p>\u0444\u0430\u0439\u043b \u0441 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u044b\u043c\u0438 \u0441\u0443\u043c\u043c\u044b stage3 \u0432 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430\u0445.<br \/><a href=\"https:\/\/mirror.yandex.ru\/gentoo-distfiles\/releases\/amd64\/autobuilds\/current-stage3-amd64-openrc\/stage3-amd64-openrc-20211018T200943Z.tar.xz.DIGESTS\" rel=\"noopener noreferrer nofollow\">https:\/\/mirror.yandex.ru\/gentoo-distfiles\/releases\/amd64\/autobuilds\/current-stage3-amd64-openrc\/stage3-amd64-openrc-20211018T200943Z.tar.xz.DIGESTS<\/a><\/p>\n<\/li>\n<li>\n<p>\u0442\u0430\u043a \u0436\u0435 \u043a\u0430\u043a \u0438 .DIGESTS \u0444\u0430\u0439\u043b, \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u044b\u0435 \u0441\u0443\u043c\u043c\u044b stage3 \u0432 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430\u0445, \u043d\u043e \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 DIGESTS &#8212; \u0437\u0434\u0435\u0441\u044c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u044b\u0435 \u0441\u0443\u043c\u043c\u044b \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u044b gpg \u043a\u043b\u044e\u0447\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0430 Gentoo.<br \/><a href=\"https:\/\/mirror.yandex.ru\/gentoo-distfiles\/releases\/amd64\/autobuilds\/current-stage3-amd64-openrc\/stage3-amd64-openrc-20211018T200943Z.tar.xz.DIGESTS.asc\" rel=\"noopener noreferrer nofollow\">https:\/\/mirror.yandex.ru\/gentoo-distfiles\/releases\/amd64\/autobuilds\/current-stage3-amd64-openrc\/stage3-amd64-openrc-20211018T200943Z.tar.xz.DIGESTS.asc<\/a><\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0412\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f BASH \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438 \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0438 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f stage3 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0435\u0433\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u0435\u0439:<\/strong><\/p>\n<pre><code class=\"bash\">MIRROR=\"https:\/\/mirror.yandex.ru\" AUTOBUILD_PATH=\"\/gentoo-distfiles\/releases\/amd64\/autobuilds\" STAGE3_PATH=$(curl -s \"${MIRROR}${AUTOBUILD_PATH}\/latest-stage3-amd64-openrc.txt\" | grep -v \\# | awk '{print $1}') STAGE3_URL=\"${MIRROR}${AUTOBUILD_PATH}\/${STAGE3_PATH}\" STAGE3_CONTENTS=\"${STAGE3_URL}.CONTENTS.gz\" STAGE3_DIGESTS=\"${STAGE3_URL}.DIGESTS\" STAGE3_ASC=\"${STAGE3_URL}.DIGESTS.asc\"  wget -4qc \"$STAGE3_URL\"      &amp;&amp; echo \"$STAGE3_URL download completed!\" wget -4qc \"$STAGE3_DIGESTS\"  &amp;&amp; echo \"$STAGE3_DIGESTS download completed!\" wget -4qc \"$STAGE3_ASC\"      &amp;&amp; echo \"$STAGE3_ASC download completed!\" wget -4qc \"$STAGE3_CONTENTS\" &amp;&amp; echo \"$STAGE3_CONTENTS download completed!\" wget -4qc \"$MIRROR\/gentoo-distfiles\/releases\/verify-digests.sh\" &amp;&amp; echo \"verify-digests.sh download completed!\"<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f stage3 \u0430\u0440\u0445\u0438\u0432\u0430 \u0438 \u043f\u0435\u0440\u0435\u0434 \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c &#8212; \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u043a\u0430\u0447\u0430\u043d\u043d\u044b\u0439 \u0430\u0440\u0445\u0438\u0432 \u0438 \u0435\u0433\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u0438. \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u043b \u0431\u044b \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0443\u0436\u0435 \u0438\u043c\u0435\u044e\u0449\u0438\u043c\u0441\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u043c \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 Gentoo, \u043d\u043e \u0437\u0434\u0435\u0441\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435\u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0432\u044b\u0437\u0432\u0430\u043d\u044b \u0442\u0435\u043c, \u0447\u0442\u043e \u0432 RESCUE \u043e\u0431\u0440\u0430\u0437\u0435 \u043e\u0442 Hetzner \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u043e\u043c \u043d\u0430 Debian \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f <strong>mawk<\/strong> \u0432\u043c\u0435\u0441\u0442\u043e <strong>gawk<\/strong>. \u041e\u043f\u0446\u0438\u0438 \u0432 <strong>gawk<\/strong> \u0438 <strong>mawk<\/strong> \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0431\u0443\u0434\u0435\u043c \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c \u0432 chroot \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0438.<\/p>\n<p>\u041f\u0440\u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u0438, \u043c\u043e\u0436\u0435\u0442\u0435 \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u043f\u043e\u0434 \u043e\u043f\u0446\u0438\u0438 \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u0434\u043b\u044f \u043f\u043e\u0434 <code>mawk<\/code> \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0432 Debian. \u042f \u044d\u0442\u043e \u043e\u043f\u0443\u0449\u0443 \u0438 \u043a\u0430\u043a \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u0432\u044b\u0448\u0435 &#8212; \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0432\u044b\u043f\u043e\u043b\u043d\u044e \u0432  chroot \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0438 Gentoo.<\/p>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Gentoo<\/h2>\n<p><strong>\u0420\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0430\u0440\u0445\u0438\u0432:<\/strong><\/p>\n<pre><code class=\"bash\">tar xJpf stage3-amd64-openrc-*.tar.xz --xattrs-include='*.*' --numeric-owner<\/code><\/pre>\n<p><strong>\u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c ssh \u043a\u043b\u044e\u0447:<br \/><\/strong>\u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 SSH \u043a\u043b\u044e\u0447 \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0443\u0436\u0435 \u0432 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438. \u041f\u0443\u0431\u043b\u0438\u0447\u043d\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u043a\u043b\u044e\u0447\u0430 \u043c\u044b \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438 \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f Hetzner \u043f\u0435\u0440\u0435\u0434 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b \u0432 RESCUE. \u0418 \u043f\u043e\u043a\u0430 \u043c\u044b \u0432 RESCUE &#8212; \u043e\u043d \u0440\u0430\u043f\u043e\u043b\u043e\u0436\u0435\u043d \u043f\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u043c\u0443 \u043f\u0443\u0442\u0438 <code>\/root\/.ssh\/authorized_keys<\/code><\/p>\n<pre><code class=\"bash\">mkdir root\/.ssh chown root:root root\/.ssh chmod 700 root\/.ssh cp \/root\/.ssh\/authorized_keys root\/.ssh\/<\/code><\/pre>\n<p><strong>\u0421\u043e\u0437\u0434\u0430\u0435\u043c resolv.conf \u0438\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0437 RESCUE \u0441\u0438\u0441\u0442\u0435\u043c\u044b:<\/strong><\/p>\n<pre><code class=\"bash\">cat &lt;&lt; EOF > \/etc\/resolv.conf nameserver 1.1.1.1 nameserver 8.8.8.8 options edns0 trust-ad EOF<\/code><\/pre>\n<p><strong><br \/>\u0417\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u043c \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0443 chroot \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f:<\/strong><\/p>\n<pre><code class=\"bash\">chmod 1777 \/mnt\/gentoo\/tmp\/ chmod 1777 \/mnt\/gentoo\/var\/tmp\/ mount -t proc none proc mount --rbind \/sys sys mount --rbind \/dev dev<\/code><\/pre>\n<p><strong>\u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u0432 chroot (Gentoo):<\/strong><\/p>\n<pre><code class=\"bash\">env -i HOME=\/root TERM=$TERM \/usr\/sbin\/chroot . bash -l export PS1=\"(chroot) $PS1\"<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0442 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0432 <code>chroot<\/code> \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0438 Gentoo. \u0422.\u0435. \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u0432 Gentoo, \u0430 \u043d\u0435 Debian, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u044b\u043b\u0430 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u0430 \u0412\u041c \u0432 RESCUE.<\/p>\n<p><strong>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c stage3 \u0430\u0440\u0445\u0438\u0432:<\/strong><\/p>\n<pre><code class=\"bash\">bash verify-digests.sh   find: File system loop detected; \u2018.\/sys\/kernel\/debug\/pinctrl\u2019 is part of the same file system loop as \u2018.\/sys\/kernel\/debug\u2019.   Checking digests from .\/stage3-amd64-openrc-20211024T170536Z.tar.xz.DIGESTS.asc: using SHA512   stage3-amd64-openrc-20211024T170536Z.tar.xz: OK   stage3-amd64-openrc-20211024T170536Z.tar.xz.CONTENTS.gz: OK<\/code><\/pre>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u0440\u043e\u0448\u043b\u0430 \u0443\u0441\u043f\u0435\u0448\u043d\u043e.<\/p>\n<p><strong>\u0421\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0434\u0435\u0440\u0435\u0432\u043e portage:<\/strong><\/p>\n<pre><code class=\"bash\">emaint sync -A<\/code><\/pre>\n<p><strong>\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u0440\u043e\u0444\u0438\u043b\u044c portage:<\/strong><\/p>\n<p>\u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u043f\u0438\u0441\u043a\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u043f\u0440\u043e\u0444\u0438\u043b\u0435\u0439 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435:<\/p>\n<pre><code class=\"bash\">eselect profile list<\/code><\/pre>\n<p>\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043f\u0440\u043e\u0444\u0438\u043b\u044c &#8212; <em>default\/linux\/amd64\/17.1 (stable)<\/em>, \u043f\u043e\u0434 \u043d\u043e\u043c\u0435\u0440\u043e\u043c 1. <\/p>\n<pre><code>eselect profile set 1<\/code><\/pre>\n<p><strong>\u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u043e\u044f\u0441:<\/strong><\/p>\n<pre><code>ln -sf \/usr\/share\/zoneinfo\/Europe\/Moscow \/etc\/localtime<\/code><\/pre>\n<p><strong>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u043f\u0440\u0438 \u0441\u0431\u043e\u0440\u043a\u0435 \u0432 emerge:<\/strong><\/p>\n<pre><code class=\"bash\">cat &lt;&lt; EOF >> \/etc\/portage\/make.conf  MAKEOPTS=\"-j3\" ACCEPT_LICENSE=\"*\" EMERGE_DEFAULT_OPTS=\"--jobs 3 --load-average=3\" FEATURES=\"candy compress-build-logs parallel-fetch parallel-install\" VIDEO_CARDS=\"\" GRUB_PLATFORMS=\"pc\" EOF<\/code><\/pre>\n<ul>\n<li>\n<p>MAKEOPTS:<\/p>\n<ul>\n<li>\n<p><em>-jN<\/em> &#8212; \u043e\u043f\u0446\u0438\u044f \u0434\u043b\u044f GCC. \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0432\u043e \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0442\u043e\u043a\u043e\u0432 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f. \u0420\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e\u043c \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0435\u0434\u0438\u043d\u0438\u0446\u0443 \u0431\u043e\u043b\u044c\u0448\u0435 \u043e\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u044f\u0434\u0435\u0440\/\u043f\u043e\u0442\u043e\u043a\u043e\u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>EMERGE_DEFAULT_OPTS:<\/p>\n<ul>\n<li>\n<p>&#8212;jobs &#8212; \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u0430\u043a\u0435\u0442\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p>&#8212;load-average &#8212; \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043d\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u043f\u0440\u0438 \u043f\u0440\u0435\u0432\u044b\u0448\u0435\u043d\u0438\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u043d\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0431\u0438\u043b\u0434\u043e\u0432 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u0422.\u0435. \u043f\u0440\u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0443 \u0432\u0430\u0441 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043e \u043d\u0430 \u0441\u0431\u043e\u0440\u043a\u0443 9 \u043a\u043e\u043f\u0438\u0439 gcc \u0434\u043b\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u043f\u0430\u043a\u0435\u0442\u043e\u0432. \u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0435\u0441\u043b\u0438 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043d\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u0442\u0430\u043a\u0436\u0435 \u043d\u0435 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430, \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u043f\u0430\u043a\u0435\u0442\u0430 \u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0439 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0435\u0439 \u0442\u0440\u0435\u043c\u044f \u043a\u043e\u043f\u0438\u044f\u043c\u0438 gcc.<\/p>\n<ul>\n<li>\n<p>FEATURES:<br \/>\u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f FEATURES \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u043e\u043f\u0446\u0438\u0439 portage. \u041e\u043f\u0446\u0438\u0438 \u0432\u043b\u0438\u044f\u044e\u0442 \u043d\u0430 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 Portage. \u042f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439, \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0432 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438\u0437 \u043f\u0440\u043e\u0444\u0438\u043b\u044f Gentoo.<\/p>\n<ul>\n<li>\n<p><em>candy<\/em> &#8212; \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0438\u0434\u0438\u043a\u0430\u0442\u043e\u0440 \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0430 \u043f\u0440\u0438 \u043f\u043e\u0434\u0441\u0447\u0451\u0442\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 emerge \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u0430\u043a\u0435\u0442\u0430.<\/p>\n<\/li>\n<li>\n<p><em>compress-build-logs<\/em> &#8212; \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0441\u0436\u0430\u0442\u0438\u0435 \u0434\u043b\u044f \u043b\u043e\u0433\u043e\u0432 \u043f\u0440\u0438 \u0441\u0431\u043e\u0440\u043a\u0435 \u043f\u0430\u043a\u0435\u0442\u0430. \u041f\u043e\u043a\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e gzip \u0441\u0436\u0430\u0442\u0438\u0435.<\/p>\n<\/li>\n<li>\n<p><em>parallel-fetch<\/em> &#8212; \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0434\u043b\u044f \u043a\u043e\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u043a\u043e\u043c\u043f\u043d\u0435\u043d\u0442\u043e\u0432 \u0432 \u0444\u043e\u043d\u043e\u0432\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435.<\/p>\n<\/li>\n<li>\n<p><em>parallel-install<\/em> &#8212; \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0443 \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u043f\u0430\u043a\u0435\u0442\u043e\u0432, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0431\u043e\u0440\u043e\u043a, \u043d\u0435 \u0434\u043e\u0436\u0438\u0434\u0430\u044f\u0441\u044c \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0438.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><strong>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e:<\/strong><\/p>\n<pre><code class=\"bash\">cat &lt;&lt; EOF > \/etc\/locale.gen en_US.UTF-8 UTF-8 C.UTF8 UTF-8 EOF locale-gen  eselect locale list eselect locale set 4  env-update &amp;&amp; source \/etc\/profile export PS1=\"(chroot) $PS1\"<\/code><\/pre>\n<p><strong>\u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043e\u043f\u0446\u0438\u0438 \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 dropbear, grub2:<\/strong><\/p>\n<pre><code class=\"bash\">echo \"net-misc\/dropbear minimal\" > \/etc\/portage\/package.use\/dropbear echo \"sys-boot\/grub:2 device-mapper\" > \/etc\/portage\/package.use\/sys-boot<\/code><\/pre>\n<p><strong>\u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b:<\/strong><\/p>\n<pre><code class=\"bash\">emerge sys-process\/cronie sys-kernel\/gentoo-sources sys-kernel\/genkernel sys-fs\/cryptsetup app-misc\/screen dev-vcs\/git sys-fs\/xfsprogs sys-boot\/grub:2 app-arch\/lz4 app-portage\/gentoolkit net-misc\/dropbear<\/code><\/pre>\n<p><strong>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0441\u0435\u0442\u044c:<br \/><\/strong><\/p>\n<blockquote>\n<p>\u041e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0432 Hetzner Cloud. <br \/>\u0414\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0445 \u0412\u041c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c  <code>172.31.1.1<\/code> \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.<\/p>\n<\/blockquote>\n<pre><code class=\"bash\">IPV4=\"$( ifconfig eth0 | grep \"inet \" | awk '{print $2}' )\" IPV6=\"$( ifconfig eth0 | grep \"inet6 \" | awk '{print $2}' )\" NETMASK=\"$( ifconfig eth0 | grep \"inet \" | awk '{print $4}' )\" BROADCAST=\"$( ifconfig eth0 | grep \"inet \" | awk '{print $6}' )\"  cat &lt;&lt; EOF > \/etc\/conf.d\/net config_eth0=\"${IPV4} netmask ${NETMASK} brd ${BROADCAST} ${IPV6}\"  routes_eth0=\"172.31.1.1 scope link 169.254.0.0\/16 scope link metric 1002 default via 172.31.1.1 default via fe80::1\" EOF  ln -rs \/etc\/init.d\/net.lo \/etc\/init.d\/net.eth0 rc-update add net.eth0 default rc-update add sshd default rc-update add cronie default<\/code><\/pre>\n<p><strong>\u041c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b \/etc\/fstab \u043f\u043e\u0434 \u043d\u0430\u0448\u0438 \u043d\u0443\u0436\u0434\u044b.<\/strong><br \/>\u0422.\u043a. \u0440\u0430\u043d\u0435\u0435 \u043c\u044b \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438 LABEL \u0434\u043b\u044f \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c, \u043f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0438\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c:<\/p>\n<pre><code class=\"bash\">cat &lt;&lt; EOF > \/etc\/fstab # &lt;fs>           &lt;mountpoint>    &lt;type>         &lt;opts>          &lt;dump\/pass> LABEL=root       \/               xfs            defaults        0 1 LABEL=boot       \/boot           ext2           noauto,noatime  1 2 EOF<\/code><\/pre>\n<p><strong>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a GRUB2 \u043d\u0430 \u0434\u0438\u0441\u043a <\/strong><code>\/dev\/sda<\/code><strong>:<\/strong><\/p>\n<pre><code>grub-install \/dev\/sda<\/code><\/pre>\n<p><strong>\u0417\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u043c \u0438\u043c\u0435\u044e\u0449\u0443\u044e\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u0443 <\/strong><em>GRUB_CMDLINE_LINUX<\/em><strong> \u0432 <\/strong><em>\/etc\/default\/grub<\/em>:<\/p>\n<pre><code class=\"bash\">sed -i '\/^GRUB_CMDLINE_LINUX\/ s\/^\/#\/' \/etc\/default\/grub<\/code><\/pre>\n<p><strong>\u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0434\u043b\u044f <\/strong><em>GRUB_CMDLINE_LINUX<\/em><strong> \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432<\/strong> <em>\/etc\/default\/grub<\/em><strong>:<br \/><\/strong>\u041c\u044b \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <code>gk.net.iface<\/code>, \u0442.\u043a. \u0443 \u043d\u0430\u0441 \u0432\u0441\u0435\u0433\u043e \u043e\u0434\u0438\u043d \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 &#8212; <code>eth0<\/code>. \u0414\u043b\u044f \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u0432 \u0432\u0438\u0434\u0435 <code>eth0<\/code>, \u043c\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u043c <code>net.ifnames=0<\/code> \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0445 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u044f\u0434\u0440\u0430.<\/p>\n<pre><code class=\"bash\">SDA2_ID=$(blkid -s UUID -o value \/dev\/sda2) echo \"GRUB_CMDLINE_LINUX=\\\"crypt_root=UUID=${SDA2_ID} rootfstype=xfs rootflags=discard root_trim=yes dosshd gk.sshd.port=22022 gk.net.gw=172.31.1.1 ip=${IPV4} gk.net.routes=172.31.1.1 net.ifnames=0\\\" \" >> \/etc\/default\/grub<\/code><\/pre>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u044f\u0434\u0440\u0430:<\/h2>\n<p><strong>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 <em>\/usr\/src\/linux<\/em> \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u044f\u0434\u0440\u0430:<\/strong><\/p>\n<pre><code class=\"bash\">eselect kernel set 1<\/code><\/pre>\n<p><strong>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <\/strong><code>menuconfig<\/code><strong> \u0434\u043b\u044f <\/strong><code>make<\/code><strong> \u043f\u0440\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u044f\u0434\u0440\u0430:<\/strong><\/p>\n<pre><code class=\"bash\">cd \/usr\/src\/linux make menuconfig<\/code><\/pre>\n<blockquote>\n<p>\u0414\u043b\u044f \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f\/\u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043e\u043f\u0446\u0438\u0438 \u044f\u0434\u0440\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043d\u0430 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c\u043e\u043c \u043f\u0443\u043d\u043a\u0442\u0435\/\u043c\u043e\u0434\u0443\u043b\u0435 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043a\u043b\u0430\u0432\u0438\u0448\u0443 &lt;\u041f\u0420\u041e\u0411\u0415\u041b> \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0438\u0442\u044c \u0432\u044b\u0431\u043e\u0440, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0432 \u043d\u0438\u0436\u043d\u0435\u043c \u043c\u0435\u043d\u044e <img class=\"formula inline\" source=\"&lt;Select> &lt;Exit> &lt;Help> &lt;Save> &lt;Load>&#187; alt=&#187;&lt;Select> &lt;Exit> &lt;Help> &lt;Save> &lt;Load>&#187; src=&#187;https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/68c\/e92\/417\/68ce924175b0e89868af054ced6c7f02.svg&#187; width=&#187;426&#8243; height=&#187;20&#8243;\/><br \/>\u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043d\u0430 <img class=\"formula inline\" source=\"&lt;Select>&#187; alt=&#187;&lt;Select>&#187; src=&#187;https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/133\/41e\/438\/13341e4388d16f20949bf15db849265e.svg&#187; width=&#187;94&#8243; height=&#187;17&#8243;\/><\/p>\n<\/blockquote>\n<blockquote>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c &#8212; \u0434\u043b\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u043d\u0443\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0435 <img class=\"formula inline\" source=\"&lt;Save>&#187; alt=&#187;&lt;Save>&#187; src=&#187;https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/17f\/779\/aff\/17f779aff57add2d45f7845e006409e3.svg&#187; width=&#187;83&#8243; height=&#187;17&#8243;\/> \u0432 \u043d\u0438\u0436\u043d\u0435\u043c \u043c\u0435\u043d\u044e, \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c \u0432\u044b\u0431\u043e\u0440 \u043a\u043d\u043e\u043f\u043a\u043e\u0439 Enter \u043d\u0430 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0435 \u0438 \u0435\u0449\u0451 \u0440\u0430\u0437 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f (.config).<\/p>\n<\/blockquote>\n<blockquote>\n<p>\u0412\u044b\u0445\u043e\u0434 &#8212; \u0434\u043b\u044f \u0432\u044b\u0445\u043e\u0434\u0430 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0435 <img class=\"formula inline\" source=\"&lt;Exit>&#187; alt=&#187;&lt;Exit>&#187; src=&#187;https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/47d\/707\/5b2\/47d7075b24e67497c48d9ec449836cc7.svg&#187; width=&#187;81&#8243; height=&#187;17&#8243;\/> \u0432 \u043d\u0438\u0436\u043d\u0435\u043c \u043c\u0435\u043d\u044e \u0438 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c \u0432\u044b\u0431\u043e\u0440.<\/p>\n<\/blockquote>\n<p><strong>\u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043c\u043e\u0434\u0443\u043b\u044c virtio \u0432 \u044f\u0434\u0440\u0435:<\/strong><\/p>\n<pre><code class=\"bash\">Processor type and features  --->     [*] Linux guest support --->         [*] Enable Paravirtualization code         [*] KVM Guest support (including kvmclock) Device Drivers  --->     [*] Virtio drivers  --->         &lt;*>   PCI driver for virtio devices                                      [*]     Support for legacy virtio draft 0.9.X and older devices (NEW)         &lt;*>   Virtio balloon driver                                                   &lt;*>   Virtio input driver                                                     &lt;*>   Platform bus driver for memory mapped virtio devices               [*]     Memory mapped virtio devices parameter parsing                    [*] Block devices  --->         &lt;*> Virtio block driver     SCSI device support  --->         [*] SCSI low-level drivers  --->             [*] virtio-scsi support     [*] Network device support  --->         [*] Network core driver support             &lt;*> Virtio network driver     Graphics support  --->         &lt;*> Virtio GPU driver     Character devices --->         &lt;*> Virtio console        &lt;*>   Hardware Random Number Generator Core support --->            &lt;*>   VirtIO Random Number Generator support          <\/code><\/pre>\n<p><strong>\u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c dm-crypt:<\/strong><\/p>\n<pre><code>Device Drivers --->     [*] Multiple devices driver support (RAID and LVM) --->         &lt;*> Device mapper support         &lt;*>   Crypt target support<\/code><\/pre>\n<p><strong>\u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c ext2 \u0438 XFS:<\/strong><\/p>\n<pre><code class=\"bash\">File systems  --->      &lt;*> Second extended fs support                   [*]   Ext2 extended attributes                   [*]     Ext2 POSIX Access Control Lists          [*]     Ext2 Security Labels                     &lt;*> XFS filesystem support                    [ ]   Support deprecated V4 (crc=0) format    [*]   XFS Quota support                       [*]   XFS POSIX ACL support                   [*]   XFS Realtime subvolume support          [*]   XFS online metadata check support       [*]     XFS online metadata repair support    [ ]   XFS Verbose Warnings                    [ ]   XFS Debugging support    <\/code><\/pre>\n<p><strong>\u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u043a\u0440\u0438\u043f\u0442\u043e-\u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432 \u0432 \u044f\u0434\u0440\u0435:<\/strong><br \/>C\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u044b \u0443\u0436\u0435 \u0438\u043c\u0435\u044e\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 AES-NI \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439. <a href=\"https:\/\/en.wikipedia.org\/wiki\/AES_instruction_set#Supporting_x86_CPUs\" rel=\"noopener noreferrer nofollow\">\u0412\u043e\u0442 \u0441\u043f\u0438\u0441\u043e\u043a <\/a>\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u0432 \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 AES-NI \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439. <br \/>AES-NI \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u044b \u0434\u043b\u044f \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0438\u0445 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0443 AES.<\/p>\n<p>\u041f\u0440\u0438 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u043f\u0443\u043d\u043a\u0442\u043e\u0432, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0438\u0437 \u0442\u043e\u0433\u043e &#8212; \u043a\u0430\u043a\u0438\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b \u0431\u044b\u043b\u0438 \u0437\u0430\u0434\u0430\u043d\u044b \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 LUKS \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <code>cryptsetup<\/code>.<\/p>\n<pre><code>Cryptographic API  --->      &lt;*>   XTS support     -*-   SHA1 digest algorithm                               &lt;*>   SHA1 digest algorithm (SSSE3\/AVX\/AVX2\/SHA-NI)       &lt;*>   SHA256 digest algorithm (SSSE3\/AVX\/AVX2\/SHA-NI)     &lt;*>   SHA512 digest algorithm (SSSE3\/AVX\/AVX2)     &lt;*>   Whirlpool digest algorithms     -*-   AES cipher algorithms       &lt;*>   AES cipher algorithms (AES-NI)     &lt;*>   Blowfish cipher algorithm              &lt;*>   Blowfish cipher algorithm (x86_64)     -*-   Serpent cipher algorithm                   &lt;*>   Serpent cipher algorithm (x86_64\/SSE2)     -*-   Serpent cipher algorithm (x86_64\/AVX)      &lt;*>   Serpent cipher algorithm (x86_64\/AVX2)     &lt;*>   Twofish cipher algorithm                                  -*-   Twofish cipher algorithm (x86_64)                         -*-   Twofish cipher algorithm (x86_64, 3-way parallel)         &lt;*>   Twofish cipher algorithm (x86_64\/AVX)                     &lt;*>   User-space interface for hash algorithms     &lt;*>   User-space interface for symmetric key cipher algorithms        &lt;*>   User-space interface for random number generator algorithms<\/code><\/pre>\n<p><strong>\u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u044f\u0434\u0440\u0430:<\/strong><\/p>\n<pre><code>[*] Enable loadable module support  --->     -*-   Module signature verification     [ ]     Require modules to be validly signed     [*]     Automatically sign all modules             Which hash algorithm should modules be signed with? (Sign modules with SHA-512)  --->     [*]   Compress modules on installation             Compression algorithm (XZ)  --->     [ ]   Allow loading of modules with missing namespace imports<\/code><\/pre>\n<p>\u041f\u0443\u043d\u043a\u0442 &#171;<strong>Require modules to be validly signed<\/strong>&#187; \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u043f\u0435\u0440\u0435\u0441\u043e\u0431\u0440\u0430\u0432 \u044f\u0434\u0440\u043e. \u0422\u0430\u043a\u0436\u0435 \u044d\u0442\u043e\u0442 \u043f\u0443\u043d\u043a\u0442 \u043c\u043e\u0436\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u044f\u0434\u0440\u0430 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435. \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u044d\u0442\u043e \u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0442.\u043a. \u043f\u043e\u0434\u043f\u0438\u0441\u044c, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442 \u0441\u0442\u0430\u0442\u044c\u044e. \u041d\u043e \u0442\u0435\u043c\u0430 \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u0432 <a href=\"https:\/\/www.kernel.org\/doc\/html\/v4.15\/admin-guide\/module-signing.html\" rel=\"noopener noreferrer nofollow\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/a>.<\/p>\n<p><strong>\u0421\u0431\u043e\u0440\u043a\u0430 \u044f\u0434\u0440\u0430, \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u0438 initramfs:<br \/><\/strong>\u0412 <code>genkernel<\/code> \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043e\u043f\u0446\u0438\u0438 \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 <code>initramfs<\/code> c \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u043c SSH \u043d\u0430 \u043f\u043e\u0440\u0442\u0443 22022, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u0441\u044f <code>dropbear<\/code>.<\/p>\n<ul>\n<li>\n<p>\u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 (grub2) \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u043a\u043b\u044e\u0447\u0430\u043c\u0438 \u0434\u043b\u044f SSH \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u0445 \u043e\u0442 \u0442\u0435\u0445 \u0447\u0442\u043e \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0432 \u041e\u0421 ( <code>\/etc\/ssh_host_{ALG}_key<\/code> ).<\/p>\n<\/li>\n<li>\n<p>\u0431\u0443\u0434\u0443\u0442 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 SSH \u043a\u043b\u044e\u0447\u0438. <\/p>\n<\/li>\n<li>\n<p>\u043f\u0443\u0431\u043b\u0438\u0447\u043d\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u043a\u043b\u044e\u0447\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0434\u043b\u044f \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f MITM. \u0414\u043e\u0431\u0430\u0432\u0438\u0432 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u043a\u043b\u044e\u0447\u0430 \u0443 \u0441\u0435\u0431\u044f \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 \u0432 <code>~\/.ssh\/known_hosts.<\/code><\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u043b\u043e\u0436\u0438\u043c \u0432 <code>initramfs<\/code> \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u043d\u0430\u0448\u0435\u0433\u043e SSH \u043a\u043b\u044e\u0447\u0430 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">make -j3 make install make modules make modules_install genkernel --install --luks --xfsprogs --ssh --ssh-authorized-keys-file=\/root\/.ssh\/authorized_keys --ssh-host-keys=create --virtio initramfs grub-mkconfig -o \/boot\/grub\/grub.cfg<\/code><\/pre>\n<p><strong>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u043a\u043b\u044e\u0447\u0430<\/strong> \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0434\u043b\u044f <code>initramfs<\/code>. \u041d\u0443\u0436\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432\u0442\u043e\u0440\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0441 \u043a\u043b\u044e\u0447\u043e\u043c.<\/p>\n<pre><code class=\"bash\">dropbearkey -y -f \/etc\/dropbear\/dropbear_ecdsa_host_key   Public key portion is: ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBPiw\/DaGsCsmML2Tjb1gvID5aQS+Ud8lctig2xQaCcWRWw81SAAiU2XJ89Y\/j2roI1rCRVfi9rsJkloih\/l8is4= root@localhost   Fingerprint: sha1!! f7:d1:3d:55:e5:75:77:8c:23:7c:56:db:63:8a:26:eb:25:17:bd:80<\/code><\/pre>\n<p><strong>\u0412\u043d\u043e\u0441\u0438\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u043a\u043b\u044e\u0447<\/strong> \u043a \u0441\u0435\u0431\u0435 \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0443\u044e \u043c\u0430\u0448\u0438\u043d\u0443 \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043a \u0412\u041c \u0432 <code>~\/.ssh\/known_hosts<\/code> \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 (\u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c <code>REMOTE_HOST_IP<\/code> \u0430\u0434\u0440\u0435\u0441\u043e\u043c \u0432\u0430\u0448\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043e\u0441\u0442\u0430\u0432\u0438\u0432 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u044b\u0435 \u0441\u043a\u043e\u0431\u043a\u0438):<\/p>\n<pre><code class=\"bash\">[REMOTE_HOST_IP]:22022 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBPiw\/DaGsCsmML2Tjb1gvID5aQS+Ud8lctig2xQaCcWRWw81SAAiU2XJ89Y\/j2roI1rCRVfi9rsJkloih\/l8is4=<\/code><\/pre>\n<p><strong>\u0417\u0430\u0434\u0430\u0451\u043c \u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f root-a:<\/strong><\/p>\n<pre><code class=\"bash\">ROOT_PASS=$(tr -dc A-Za-z0-9_ &lt; \/dev\/urandom | head -c 16 | xargs); echo \"root:$ROOT_PASS\" | chpasswd; echo \"root password is $ROOT_PASS\"<\/code><\/pre>\n<p><strong>\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c \u0432 \u043d\u0430\u0434\u0451\u0436\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435:<\/strong><\/p>\n<pre><code class=\"bash\">echo \"$ROOT_PASS\"<\/code><\/pre>\n<p><strong>\u0412\u044b\u0445\u043e\u0434\u0438\u043c \u0438\u0437 chroot \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0412\u041c:<\/strong><\/p>\n<pre><code class=\"bash\">exit  cd umount -l \/mnt\/dev umount -l \/mnt\/proc umount -l \/mnt\/sys umount \/mnt\/boot umount \/mnt cryptsetup luksClose root reboot<\/code><\/pre>\n<p><strong>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043f\u043e SSH \u0434\u043b\u044f \u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438 LUKS:<\/strong><\/p>\n<p>\u0412\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u043c\u0430\u0448\u0438\u043d\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0430 \u0432 reboot \u0438 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u043f\u043e \u043f\u043e\u0440\u0442\u0443 22022 \u0434\u043b\u044f SSH \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f.<\/p>\n<pre><code>ssh REMOTE_HOST_IP -l root -p 22022   >> Welcome to Genkernel 4.2.3 (2021-10-29 00:20:05 UTC) remote rescue shell!    >> ...running Linux kernel 5.10.61-gentoo     >> The lockfile \/tmp\/remote-rescueshell.lock' was created.    >> In order to resume boot process, run 'resume-boot'.    >> Be aware that it will kill your connection which means    >> you will no longer be able to work in this shell.    >> To remote unlock LUKS-encrypted root device, run 'unlock-luks root'. <\/code><\/pre>\n<p><strong>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c LUKS \u0440\u0430\u0437\u0434\u0435\u043b:<\/strong><\/p>\n<pre><code>remote rescueshell ~ # unlock-luks root   >> Using the following cryptsetup options for root: --allow-discards    Enter passphrase for \/dev\/sda2:     >> LUKS device \/dev\/sda2 opened<\/code><\/pre>\n<p><strong>\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 Gentoo:<\/strong><\/p>\n<pre><code>remote rescueshell ~ # resume-boot    >> Resuming boot process ... <\/code><\/pre>\n<p><strong>\u0414\u0430\u043b\u0435\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043f\u043e SSH \u043a \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0441 Gentoo \u043d\u0430 22 \u043f\u043e\u0440\u0442\u0443.<\/strong><\/p>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0441\u0442\u0430\u0442\u044c\u044f \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u043e\u0432\u0438\u0447\u043a\u0430\u043c \u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e, \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0442\u0435\u043c \u043a\u0442\u043e \u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u0441\u044f \u0441 Linux \u0438\u043b\u0438 Gentoo, \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043a\u0438(\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u044b) \u043d\u0430 \u0447\u0443\u0436\u043e\u043c \u0436\u0435\u043b\u0435\u0437\u0435(\u0432 \u043e\u0431\u043b\u0430\u043a\u0435).<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/587164\/\"> https:\/\/habr.com\/ru\/articles\/587164\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><\/figure>\n<p>\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 Gentoo \u0432 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435 \u0441\u0430\u043c\u044b\u0445 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0438 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445 \u0437\u0430\u0440\u0443\u0431\u0435\u0436\u043d\u044b\u0445 \u0445\u043e\u0441\u0442\u0435\u0440\u043e\u0432 \u0441 KVM \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 &#8212; Hetzner. <\/p>\n<p>\u0421\u0442\u0430\u0442\u044c\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u0441 \u0446\u0435\u043b\u044c\u044e \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 Gentoo \u0441:<\/p>\n<ul>\n<li>\n<p>\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u043a\u043e\u0440\u043d\u0435\u0432\u044b\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u043c (LUKS)<\/p>\n<\/li>\n<li>\n<p>\u0431\u0435\u0437 \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u043a\u043b\u044e\u0447\u0430 \u0434\u043b\u044f \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0438 \u043d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435.<\/p>\n<\/li>\n<li>\n<p>\u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0430 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u043f\u043e SSH <strong>\u0434\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u041e\u0421<\/strong> &#8212; \u043a\u0430\u043a \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043a\u043b\u044e\u0447\u0430.<\/p>\n<\/li>\n<\/ul>\n<h2>\u041f\u043b\u0430\u043d:<\/h2>\n<ul>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b.<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0437\u043c\u0435\u0442\u043a\u0430 \u0434\u0438\u0441\u043a\u0430.<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 LUKS \u0434\u043b\u044f \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0430 ( rootfs ) .<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 Gentoo stage3.<\/p>\n<\/li>\n<li>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Gentoo.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0438 \u0441\u0431\u043e\u0440\u043a\u0430 \u044f\u0434\u0440\u0430 \u0438 initramfs.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 grub2<\/p>\n<\/li>\n<\/ul>\n<h2>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b (\u0412\u041c)<\/h2>\n<p>\u0414\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0412\u041c \u043d\u0430 \u0442\u0430\u0440\u0438\u0444\u0435 <code>CPX11<\/code> \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 &#8212; 2 vCPU (AMD EPYC 2nd Gen), 2GB RAM, 40GB NVMe SSD.<br \/>\u041f\u043e\u0434 \u0441\u043f\u043e\u0439\u043b\u0435\u0440\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u043e\u0432 \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0412\u041c, \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u0432 \u0435\u0451 \u0432 RESCUE \u0440\u0435\u0436\u0438\u043c (\u0440\u0435\u0436\u0438\u043c \u043f\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u0430 \u043f\u043e PXE).<\/p>\n<details class=\"spoiler\">\n<summary>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0412\u041c \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 Hetzner (\u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e \u0432 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0430\u0445):<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0414\u043b\u044f \u043d\u0430\u0448\u0435\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u0430\u043a\u043e\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c. \u041f\u043e\u0441\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0412\u041c, \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0435\u0451 \u0432 RESCUE \u0440\u0435\u0436\u0438\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043f\u0430\u043d\u0435\u043b\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0438\u0440\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u043e\u0439.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0412\u041c \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 Hetzner. \u0428\u0430\u0433 \u21161.<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\">\n<div><figcaption>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0412\u041c \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 Hetzner. \u0428\u0430\u0433 \u21162.<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\">\n<div><figcaption>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0412\u041c \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 Hetzner. \u0428\u0430\u0433 \u21163.<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\">\n<div><figcaption>\u0421\u043f\u0438\u0441\u043e\u043a \u0438\u043c\u044e\u0449\u0438\u0445\u0441\u044f \u0412\u041c \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 Hetzner.<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\">\n<div><figcaption>\u0421\u043e\u0437\u0434\u0430\u043d\u043d\u0430\u044f \u0412\u041c \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 Hetzner.<\/figcaption><\/div>\n<\/figure>\n<p>\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0412\u041c \u0432 RESCUE \u0440\u0435\u0436\u0438\u043c. Hetzner \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 Debian \u0434\u043b\u044f RESCUE.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u041f\u0435\u0440\u0435\u0432\u043e\u0434 \u0412\u041c \u0432 RESCUE. \u0428\u0430\u0433 \u21161<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\">\n<div><figcaption>\u041f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u0412\u041c \u0432 RESCUE. \u0428\u0430\u0433 \u21162<\/figcaption><\/div>\n<\/figure>\n<figure class=\"full-width\">\n<div><figcaption>\u041f\u0435\u0440\u0435\u0432\u043e\u0434 \u0412\u041c \u0432 RESCUE. \u0428\u0430\u0433 \u21163<\/figcaption><\/div>\n<\/figure>\n<p>\u0412\u041c \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u0430 \u0432 RESCUE \u043f\u043e PXE.<\/p>\n<\/div>\n<\/details>\n<h2>\u0420\u0430\u0437\u043c\u0435\u0442\u043a\u0430 \u0434\u0438\u0441\u043a\u0430<\/h2>\n<p>\u0414\u043e\u0436\u0438\u0434\u0430\u0435\u043c\u0441\u044f \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0412\u041c (\u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043c\u0438\u043d\u0443\u0442\u0443). \u0414\u043b\u044f \u0412\u041c \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0434\u0435\u043b\u0435\u043d \u0432\u043d\u0435\u0448\u043d\u0438\u0439 IP, \u043f\u043e \u043d\u0435\u043c\u0443 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043f\u043e SSH.<br \/>\u041f\u043e\u0441\u043b\u0435 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0430\u043c \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u0443\u044e\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043d\u0430\u0448\u0435\u0439 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435:<\/p>\n<pre><code class=\"bash\">Linux rescue 5.13.13 #1 SMP Thu Sep 2 05:38:34 UTC 2021 x86_64  ----------------------------------------------------------------------    Welcome to the Hetzner Rescue System.    This Rescue System is based on Debian GNU\/Linux 11 (bullseye) with   a custom kernel. You can install software as in a normal system.    To install a new operating system from one of our prebuilt   images, run 'installimage' and follow the instructions.    More information at https:\/\/docs.hetzner.com\/  ----------------------------------------------------------------------  Rescue System up since 2021-10-26 09:37 +02:00  Last login: Thu Oct 26 09:38:03 2021 from ***.***.***.*** Hardware data:     CPU1: AMD EPYC Processor (Cores 2)    Memory:  1944 MB    Disk \/dev\/sda: 40 GB (=> 38 GiB)     Total capacity 38 GiB with 1 Disk  Network data:    eth0  LINK: yes          MAC:  **:**:**:**:**:**          IP:   ***.***.***.***          IPv6: ***:***:****:**::2\/64          Virtio network driver<\/code><\/pre>\n<p>\u0418\u0437 \u0432\u044b\u0432\u043e\u0434\u0438\u043c\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0432\u0438\u0434\u0438\u043c &#8212; \u0441\u0435\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f <code>Virtio<\/code>. \u041d\u0430\u043c \u044d\u0442\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0434\u0430\u043b\u0435\u0435 \u043f\u0440\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u044f\u0434\u0440\u0430.<\/p>\n<p><strong>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0445 \u0434\u0438\u0441\u043a\u043e\u0432 \u0438\u0445 \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u0432:<\/strong><\/p>\n<pre><code class=\"bash\">lsblk    NAME    MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT   loop0     7:0    0  2.9G  1 loop    sda       8:0    0 38.1G  0 disk    |-sda1    8:1    0 37.9G  0 part    |-sda14   8:14   0    1M  0 part    `-sda15   8:15   0  256M  0 part    sr0      11:0    1 1024M  0 rom <\/code><\/pre>\n<p><strong>\u0423\u0434\u0430\u043b\u044f\u0435\u043c \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0443 \u0434\u0438\u0441\u043a\u0430:<\/strong><\/p>\n<pre><code class=\"bash\">wipefs -a \/dev\/sda   \/dev\/sda: 2 bytes were erased at offset 0x000001fe (dos): 55 aa   \/dev\/sda: calling ioctl to re-read partition table: Success<\/code><\/pre>\n<p><strong>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0443\u044e \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0443 \u0434\u0438\u0441\u043a\u0430:<\/strong><\/p>\n<pre><code class=\"bash\">parted -a optimal --script \/dev\/sda \\     mklabel msdos \\     mkpart primary 0% 500MiB \\     set 1 boot on \\     mkpart primary 500MiB 100%<\/code><\/pre>\n<p><strong>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u043c \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c:<\/strong><\/p>\n<pre><code class=\"bash\">parted -l   Model: QEMU QEMU HARDDISK (scsi)   Disk \/dev\/sda: 41.0GB   Sector size (logical\/physical): 512B\/512B   Partition Table: msdos   Disk Flags:     Number  Start   End     Size    Type     File system  Flags    1      1049kB  524MB   523MB   primary  ext2         boot    2      524MB   41.0GB  40.4GB  primary<\/code><\/pre>\n<h2>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 LUKS \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u0438 \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c<\/h2>\n<p><strong>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043c\u043e\u0434\u0443\u043b\u044c \u044f\u0434\u0440\u0430 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 LUKS:<\/strong><\/p>\n<pre><code>modprobe dm-crypt<\/code><\/pre>\n<p><strong>\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0434\u043b\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \/boot .<\/strong><br \/>\u0412 \u044d\u0442\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u044b grub2, \u044f\u0434\u0440\u043e \u0438 initramfs.<br \/>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b &#8212; \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c ext2, \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437\u0434\u0435\u043b \u043d\u0435 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u043c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0432 \u0436\u0443\u0440\u043d\u0430\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438:<\/p>\n<pre><code class=\"bash\">mkfs.ext2 \/dev\/sda1<\/code><\/pre>\n<p><strong>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043a\u043b\u044e\u0447, \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u041d\u0415 \u043d\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c. \u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u043c \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0443 \u0441\u0435\u0431\u044f \u0432 \u043d\u0430\u0434\u0451\u0436\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435.<\/strong><\/p>\n<pre><code class=\"bash\">pwgen 32 -cs 1<\/code><\/pre>\n<p><strong>\u0423\u0442\u0438\u043b\u0438\u0442\u0430 <\/strong><code>\u0441ryptsetup<\/code><strong> c \u043e\u043f\u0446\u0438\u0435\u0439 <\/strong><code>benchmark<\/code><strong> \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f:<\/strong><\/p>\n<pre><code>cryptsetup benchmark     # Tests are approximate using memory only (no storage IO).     PBKDF2-sha1       941271 iterations per second for 256-bit key     PBKDF2-sha256    1859177 iterations per second for 256-bit key     PBKDF2-sha512     946368 iterations per second for 256-bit key     PBKDF2-ripemd160  719187 iterations per second for 256-bit key     PBKDF2-whirlpool  575508 iterations per second for 256-bit key     argon2i       4 iterations, 736274 memory, 4 parallel threads (CPUs) for 256-bit key (requested 2000 ms time)     argon2id      4 iterations, 685111 memory, 4 parallel threads (CPUs) for 256-bit key (requested 2000 ms time)     #     Algorithm |       Key |      Encryption |      Decryption             aes-cbc        128b       539.8 MiB\/s      2382.6 MiB\/s         serpent-cbc        128b        89.3 MiB\/s       411.0 MiB\/s         twofish-cbc        128b        91.1 MiB\/s       204.3 MiB\/s             aes-cbc        256b       729.9 MiB\/s      1796.2 MiB\/s         serpent-cbc        256b        51.6 MiB\/s       483.9 MiB\/s         twofish-cbc        256b        92.7 MiB\/s       224.3 MiB\/s             aes-xts        256b      1427.0 MiB\/s      1409.4 MiB\/s         serpent-xts        256b       297.1 MiB\/s       389.4 MiB\/s         twofish-xts        256b       164.5 MiB\/s       182.0 MiB\/s             aes-xts        512b      1242.1 MiB\/s      1685.7 MiB\/s         serpent-xts        512b       395.9 MiB\/s       334.2 MiB\/s         twofish-xts        512b       316.4 MiB\/s       321.4 MiB\/s<\/code><\/pre>\n<p>\u041f\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c \u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0430 AES \u0437\u0430\u043c\u0435\u0442\u043d\u043e \u043e\u043f\u0435\u0440\u0435\u0436\u0430\u0435\u0442 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445. \u041c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c aes-xts \u0441 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c \u043a\u043b\u044e\u0447\u0430 512 \u0431\u0438\u0442.<\/p>\n<blockquote>\n<p>\u041f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0432\u0432\u0435\u0441\u0442\u0438 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435 \u0437\u0430\u0433\u043b\u0430\u0432\u043d\u044b\u043c\u0438 \u0431\u0443\u043a\u0432\u0430\u043c\u0438 &#8212; YES, \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0442\u0435\u043c \u0443\u0436\u0435 \u0432\u0432\u0435\u0441\u0442\u0438 \u043a\u043b\u044e\u0447\/\u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0430.<\/p>\n<\/blockquote>\n<p><strong>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 LUKS \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u0441 AES-XTS \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c:<\/strong><\/p>\n<pre><code>cryptsetup -v -c aes-xts-plain64 -s 512 --hash sha512 --iter-time 5000 --use-random --type luks2 luksFormat \/dev\/sda2    WARNING!   ========   This will overwrite data on \/dev\/sda2 irrevocably.      Are you sure? (Type 'yes' in capital letters): YES   Enter passphrase for \/dev\/sda2:    Verify passphrase:    Key slot 0 created.   Command successful.<\/code><\/pre>\n<p><strong>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c LUKS \u0442\u043e\u043c \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b (Gentoo):<\/strong><\/p>\n<pre><code class=\"bash\">cryptsetup luksOpen \/dev\/sda2 root<\/code><\/pre>\n<p><strong>\u0414\u043e\u043f\u043e\u043b\u043d\u044f\u0435\u043c LUKS \u0442\u043e\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c\u0438 \u043e\u043f\u0446\u0438\u044f\u043c\u0438 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 SSD:<\/strong><\/p>\n<pre><code class=\"bash\">cryptsetup --allow-discards --persistent refresh root<\/code><\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 LUKS \u0440\u0430\u0437\u0434\u0435\u043b <code>allow-discard<\/code>, \u0447\u0442\u043e\u0431\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u044f TRIM \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u043b\u0430\u0441\u044c \u043f\u043e \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044e <code>Filesystem<\/code> -> <code>LUKS<\/code> -> <code>Disk(sda)<\/code><\/p>\n<p><strong>\u0420\u0430\u0437\u043c\u0435\u0447\u0430\u0435\u043c \u0444\u0430\u0439\u043b\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 (xfs):<br \/><\/strong>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <code>bigtime<\/code> &#8212; \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c \u0434\u043b\u044f  \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b XFS, \u0435\u0441\u043b\u0438 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0435\u0451 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0441\u043b\u0435 2038 ( <a href=\"https:\/\/en.wikipedia.org\/wiki\/Year_2038_problem\" rel=\"noopener noreferrer nofollow\">\u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 2038 \u0433\u043e\u0434\u0430<\/a> ). \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u044d\u0442\u043e\u0442 \u0444\u043b\u0430\u0433 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438 \u0432\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0438 \u044d\u0442\u043e\u0433\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0430 <code>mkfs.xfs<\/code> \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0444\u0430\u0439\u043b\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 timestamps \u043b\u0438\u0448\u044c \u0434\u043e \u044f\u043d\u0432\u0430\u0440\u044f 2038\u0433, \u043e \u0447\u0451\u043c \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0432 \u043b\u043e\u0433\u0430\u0445 \u043f\u0440\u0438 \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441 XFS.<\/p>\n<pre><code class=\"bash\">mkfs.xfs -m bigtime=1 \/dev\/mapper\/root<\/code><\/pre>\n<p><strong>\u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043c\u0435\u0442\u043a\u0438 (LABEL) \u0434\u043b\u044f \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c.<\/strong><br \/>\u042d\u0442\u043e \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 fstab.<\/p>\n<ul>\n<li>\n<p>\u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u043c\u0435\u0442\u043a\u0438 \u0434\u043b\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \/boot \u0441 ext2  :<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"bash\">e2label \/dev\/sda1 boot<\/code><\/pre>\n<ul>\n<li>\n<p>\u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u043c\u0435\u0442\u043a\u0438 \u0434\u043b\u044f \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0430 <code>\/<\/code> \u0441 xfs. <\/p>\n<p>\u0435\u0441\u043b\u0438 \u0434\u043b\u044f ext2 \u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c LABEL \u0431\u0435\u0437 \u0440\u0430\u0437\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0430, \u0442\u043e \u0434\u043b\u044f xfs \u0442\u0430\u043a \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043b\u0443\u0447\u0448\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043c\u0435\u0442\u043a\u0443 \u0441\u0440\u0430\u0437\u0443:<\/p>\n<\/li>\n<\/ul>\n<pre><code>xfs_admin -L root \/dev\/mapper\/root<\/code><\/pre>\n<p><strong>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0443\u044e\u0441\u044f \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0443 \u0434\u0438\u0441\u043a\u0430 \u0441 \u0440\u0430\u0437\u0434\u0435\u043b\u0430\u043c\u0438:<\/strong><\/p>\n<pre><code>lsblk -f \/dev\/sda   NAME     FSTYPE      FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINT   sda                                                                                     |-sda1   ext2        1.0   boot  5feec57d-3b4a-4bba-b264-577b1bba8c8e                   `-sda2   crypto_LUKS 2           766df4ca-831c-4a6c-9d92-3b8c3b43afab                     `-root xfs               root  fb0a437d-aeb4-47e1-8a1a-043bf9d045af      <\/code><\/pre>\n<p><strong>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0438 \u043c\u043e\u043d\u0442\u0438\u0440\u0438\u0440\u0443\u0435\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u044b:<\/strong><\/p>\n<pre><code class=\"bash\">mkdir \/mnt\/gentoo\/ mount \/dev\/mapper\/root \/mnt\/gentoo\/ mkdir \/mnt\/gentoo\/boot mount \/dev\/sda1 \/mnt\/gentoo\/boot\/ cd \/mnt\/gentoo\/<\/code><\/pre>\n<h2>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 Gentoo stage3<\/h2>\n<p>Stage3 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0441\u043e <a href=\"https:\/\/www.gentoo.org\/downloads\/\" rel=\"noopener noreferrer nofollow\">\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 Gentoo<\/a>.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u0421\u043a\u0440\u0438\u043d\u0448\u043e\u0442 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f Gentoo stage3<\/figcaption><\/div>\n<\/figure>\n<p>\u0420\u0430\u0437\u0434\u0435\u043b &#171;Details (contents, hashes, and signatures)&#187; \u0432\u043d\u0438\u0437\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b  \u0438 \u0441\u0441\u044b\u043b\u043a\u0430 &#171;Stage 3&#187; \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u0442 \u043d\u0430\u0441 \u043a <a href=\"https:\/\/bouncer.gentoo.org\/fetch\/root\/all\/releases\/amd64\/autobuilds\/\" rel=\"noopener noreferrer nofollow\">\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0430\u0432\u0442\u043e\u0431\u0438\u043b\u0434\u043e\u0432 Gentoo<\/a>. \u041e\u0441\u0442\u0430\u0432\u043b\u044f\u044e \u044d\u0442\u043e \u0437\u0434\u0435\u0441\u044c, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u044d\u0442\u043e \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e \u0434\u043b\u044f \u0442\u0430\u043a\u043e\u0439 \u043d\u0443\u0436\u043d\u043e \u0441\u0441\u044b\u043b\u043a\u0438:<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0414\u043b\u044f \u043d\u0430\u0448\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u0437\u0435\u0440\u043a\u0430\u043b\u043e\u043c \u042f\u043d\u0434\u0435\u043a\u0441\u0430 (<a href=\"https:\/\/mirror.yandex.ru\" rel=\"noopener noreferrer nofollow\">https:\/\/mirror.yandex.ru<\/a>), \u0442.\u043a. \u0434\u043b\u044f \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0437\u0435\u0440\u043a\u0430\u043b\u0430, \u0447\u0442\u043e\u0431\u044b \u0441\u043d\u0438\u0437\u0438\u0442\u044c \u0441\u0435\u0442\u0435\u0432\u0443\u044e \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043d\u0430 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 Gentoo.<\/p>\n<p>\u041d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<ul>\n<li>\n<p>\u043f\u0443\u0442\u044c \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0441 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 stage3<br \/><a href=\"https:\/\/mirror.yandex.ru\/gentoo-distfiles\/releases\/amd64\/autobuilds\/current-stage3-amd64-openrc\/\" rel=\"noopener noreferrer nofollow\">https:\/\/mirror.yandex.ru\/gentoo-distfiles\/releases\/amd64\/autobuilds\/current-stage3-amd64-openrc\/<\/a><\/p>\n<\/li>\n<li>\n<p>stage3 \u0430\u0440\u0445\u0438\u0432<br \/><a href=\"https:\/\/mirror.yandex.ru\/gentoo-distfiles\/releases\/amd64\/autobuilds\/current-stage3-amd64-openrc\/stage3-amd64-openrc-20211018T200943Z.tar.xz\" rel=\"noopener noreferrer nofollow\">https:\/\/mirror.yandex.ru\/gentoo-distfiles\/releases\/amd64\/autobuilds\/current-stage3-amd64-openrc\/stage3-amd64-openrc-20211018T200943Z.tar.xz<\/a><\/p>\n<\/li>\n<li>\n<p>\u0444\u0430\u0439\u043b \u0441\u043e \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u0444\u0430\u0439\u043b\u043e\u0432 \u0432 \u0430\u0440\u0445\u0438\u0432\u0435 stage3<br \/><a href=\"https:\/\/mirror.yandex.ru\/gentoo-distfiles\/releases\/amd64\/autobuilds\/current-stage3-amd64-openrc\/stage3-amd64-openrc-20211018T200943Z.tar.xz.CONTENTS.gz\" rel=\"noopener noreferrer nofollow\">https:\/\/mirror.yandex.ru\/gentoo-distfiles\/releases\/amd64\/autobuilds\/current-stage3-amd64-openrc\/stage3-amd64-openrc-20211018T200943Z.tar.xz.CONTENTS.gz<\/a><\/p>\n<\/li>\n<li>\n<p>\u0444\u0430\u0439\u043b \u0441 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u044b\u043c\u0438 \u0441\u0443\u043c\u043c\u044b stage3 \u0432 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430\u0445.<br \/><a href=\"https:\/\/mirror.yandex.ru\/gentoo-distfiles\/releases\/amd64\/autobuilds\/current-stage3-amd64-openrc\/stage3-amd64-openrc-20211018T200943Z.tar.xz.DIGESTS\" rel=\"noopener noreferrer nofollow\">https:\/\/mirror.yandex.ru\/gentoo-distfiles\/releases\/amd64\/autobuilds\/current-stage3-amd64-openrc\/stage3-amd64-openrc-20211018T200943Z.tar.xz.DIGESTS<\/a><\/p>\n<\/li>\n<li>\n<p>\u0442\u0430\u043a \u0436\u0435 \u043a\u0430\u043a \u0438 .DIGESTS \u0444\u0430\u0439\u043b, \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u044b\u0435 \u0441\u0443\u043c\u043c\u044b stage3 \u0432 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430\u0445, \u043d\u043e \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 DIGESTS &#8212; \u0437\u0434\u0435\u0441\u044c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u044b\u0435 \u0441\u0443\u043c\u043c\u044b \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043d\u044b gpg \u043a\u043b\u044e\u0447\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0430 Gentoo.<br \/><a href=\"https:\/\/mirror.yandex.ru\/gentoo-distfiles\/releases\/amd64\/autobuilds\/current-stage3-amd64-openrc\/stage3-amd64-openrc-20211018T200943Z.tar.xz.DIGESTS.asc\" rel=\"noopener noreferrer nofollow\">https:\/\/mirror.yandex.ru\/gentoo-distfiles\/releases\/amd64\/autobuilds\/current-stage3-amd64-openrc\/stage3-amd64-openrc-20211018T200943Z.tar.xz.DIGESTS.asc<\/a><\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0412\u043e\u0441\u043f\u043e\u043b\u044c<\/strong><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-396567","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/396567","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=396567"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/396567\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=396567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=396567"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=396567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}