{"id":83698,"date":"2020-06-02T19:42:29","date_gmt":"2020-06-02T17:42:29","guid":{"rendered":"https:\/\/prohoster.info\/blog\/administrirovanie\/dracut-systemd-luks-usbflash-avtorazblokirovka"},"modified":"2020-06-02T19:42:29","modified_gmt":"2020-06-02T17:42:29","slug":"dracut-systemd-luks-usbflash-avtorazblokirovka","status":"publish","type":"post","link":"https:\/\/prohoster.info\/et\/blog\/administrirovanie\/dracut-systemd-luks-usbflash-avtorazblokirovka","title":{"rendered":"dracut + systemd + LUKS + usbflash = automaatne avamine","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u043d\u0430\u0447\u0430\u043b\u0430\u0441\u044c \u0434\u0430\u0432\u043d\u043e, \u0435\u0449\u0435 \u043f\u0440\u0438 \u0432\u044b\u0445\u043e\u0434\u0435 Centos 7 (RHEL 7). \u0415\u0441\u043b\u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 \u0434\u0438\u0441\u043a\u0430\u0445 \u0441 Centos 6, \u0442\u043e \u043d\u0435 \u0431\u044b\u043b\u043e \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u043e\u0439 \u0434\u0438\u0441\u043a\u043e\u0432 \u043f\u0440\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 USB \u0444\u043b\u0435\u0448\u043a\u0438 \u0441 \u043d\u0443\u0436\u043d\u044b\u043c\u0438 \u043a\u043b\u044e\u0447\u0430\u043c\u0438. \u041e\u0434\u043d\u0430\u043a\u043e, \u043f\u0440\u0438 \u0432\u044b\u0445\u043e\u0434\u0435 7-\u043a\u0438 \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e \u0432\u0441\u0435 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e \u043a\u0430\u043a \u0432\u044b \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438. \u0422\u043e\u0433\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043d\u0430\u0439\u0442\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0435 dracut \u043a sysvinit \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u0435\u0437\u0430\u043c\u044b\u0441\u043b\u043e\u0432\u0430\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0435: echo &#8216;omit_dracutmodules+=&quot; systemd &quot;&#8217; &gt; \/etc\/dracut.conf.d\/luks-workaround.conf<br \/>\n\u0427\u0442\u043e \u0441\u0440\u0430\u0437\u0443 \u043b\u0438\u0448\u0430\u043b\u043e \u043d\u0430\u0441 \u0432\u0441\u0435\u0439 \u043f\u0440\u0435\u043b\u0435\u0441\u0442\u0438 systemd \u2014 \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u0438 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0441\u043b\u0443\u0436\u0431, \u0447\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043e\u043a\u0440\u0430\u0449\u0430\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u044b.<br \/>\n\u0412\u043e\u0437 \u0438 \u043d\u044b\u043d\u0435 \u0442\u0430\u043c: <noindex><a rel=\"nofollow\" href=\"https:\/\/bugzilla.redhat.com\/show_bug.cgi?id=905683\" rel=\"nofollow\">905683<\/a><\/noindex><br \/>\n\u041d\u0435 \u0434\u043e\u0436\u0434\u0430\u0432\u0448\u0438\u0441\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u0435\u0433\u043e \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u0441\u0430\u043c, \u0430 \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u0435\u043b\u044e\u0441\u044c \u0438 \u0441 \u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e, \u043a\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0447\u0438\u0442\u0430\u0439\u0442\u0435 \u0434\u0430\u043b\u044c\u0448\u0435.<br \/>\n<img decoding=\"async\" alt=\"dracut + systemd + LUKS + usbflash = \u0430\u0432\u0442\u043e\u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0430\" src=\"\/wp-content\/uploads\/2020\/06\/1f9ddcb17ae4b6ac6ad2374f2c7c3a3e.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><\/p>\n<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>\nSystemd, \u043a\u043e\u0433\u0434\u0430 \u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0447\u0430\u043b \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 Centos 7 \u043d\u0435 \u0432\u044b\u0437\u0432\u0430\u043b \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u044d\u043c\u043e\u0446\u0438\u0439, \u0442\u0430\u043a \u043a\u0430\u043a \u043a\u0440\u043e\u043c\u0435 \u043d\u0435\u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u043b\u0443\u0436\u0431\u0430\u043c\u0438, \u044f \u043d\u0435 \u043f\u043e\u0447\u0443\u0432\u0441\u0442\u0432\u043e\u0432\u0430\u043b \u0432\u043d\u0430\u0447\u0430\u043b\u0435 \u043e\u0441\u043e\u0431\u043e\u0439 \u0440\u0430\u0437\u043d\u0438\u0446\u044b. \u0412\u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0438 systemd \u043c\u043d\u0435 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u0441\u044f, \u043d\u043e \u043f\u0435\u0440\u0432\u043e\u0435 \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u0435\u043d\u0438\u0435 \u0431\u044b\u043b\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u043f\u043e\u0440\u0447\u0435\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 dracut \u043d\u0435 \u043e\u0441\u043e\u0431\u043e \u0443\u0434\u0435\u043b\u044f\u043b\u0438 \u0432\u0440\u0435\u043c\u044f \u043d\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e systemd \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e \u0441 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0434\u0438\u0441\u043a\u043e\u0432. \u0412 \u0446\u0435\u043b\u043e\u043c \u043e\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e, \u043d\u043e \u0432\u0432\u043e\u0434\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c \u043e\u0442 \u0434\u0438\u0441\u043a\u0430 \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u0437\u0430\u0443\u0441\u043a\u0435 <a class=\"wpil_keyword_link\" href=\"https:\/\/prohoster.info\/server\/dts-los-angeles\"   title=\"\u0441\u0435\u0440\u0432\u0435\u0440\u0430\" data-wpil-keyword-link=\"linked\"  data-wpil-monitor-id=\"3630\">\u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/a> \u2014 \u043d\u0435 \u0441\u0430\u043c\u043e\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435 \u0437\u0430\u043d\u044f\u0442\u0438\u0435.<br \/>\n\u041e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0432 \u043a\u0443\u0447\u0443 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0439 \u0438 \u0443\u0447\u0438\u0442\u0430\u0432\u0448\u0438\u0441\u044c \u043c\u0430\u043d\u0443\u0430\u043b\u043e\u043c \u044f \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 systemd \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0441 USB, \u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438 \u0440\u0443\u0447\u043d\u043e\u0439 \u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0446\u0438\u0438 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430 \u0441 \u043a\u043b\u044e\u0447\u0435\u043c \u043d\u0430 USB \u0434\u0438\u0441\u043a\u0435, \u043f\u0440\u0438\u0447\u0435\u043c \u0441\u0430\u043c USB \u0434\u0438\u0441\u043a \u043c\u043e\u0436\u043d\u043e \u0441\u0432\u044f\u0437\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u0435\u0433\u043e UUID, LABEL \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b. \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u043e\u0435 \u0443 \u0441\u0435\u0431\u044f \u0431\u044b\u043b\u043e \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u0438\u0442\u043e\u0433\u0435 \u044f \u043f\u043e\u0433\u0440\u0443\u0437\u0438\u043b\u0441\u044f \u0432 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0435 \u0438, \u043f\u0440\u043e\u0436\u0434\u0430\u0432 \u0431\u0435\u0437 \u043c\u0430\u043b\u043e\u0433\u043e 7 \u043b\u0435\u0442, \u044f \u043f\u043e\u043d\u044f\u043b \u2014 \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0440\u0435\u0448\u0430\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443.<\/p>\n<h3>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b<\/h3>\n<p>\n\u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u043f\u043b\u0430\u0433\u0438\u043d \u043a dracut \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0447\u0442\u0438 \u043a\u0430\u0436\u0434\u044b\u0439, \u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0433\u043e \u0440\u0430\u0431\u043e\u0447\u0438\u043c \u0443\u0436\u0435 \u043d\u0435 \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e. \u041e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0437\u0430 \u0441\u0447\u0435\u0442 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e\u0439 \u043f\u0440\u0438\u0440\u043e\u0434\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430 systemd \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u0432\u043e\u0435\u0433\u043e \u043a\u043e\u0434\u0430 \u0438 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0445\u043e\u0434 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043d\u0435 \u0442\u0430\u043a \u0438 \u043b\u0435\u0433\u043a\u043e. \u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043a dracut \u043f\u043e\u044f\u0441\u043d\u044f\u043b\u0430 \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u0432\u0441\u0435. \u041e\u0434\u043d\u0430\u043a\u043e \u0432\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0438 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u044d\u043a\u0441\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u044f \u0441\u043c\u043e\u0433 \u0440\u0435\u0448\u0438\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443.<\/p>\n<h3>\u041a\u0430\u043a \u043e\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442<\/h3>\n<p>\n\u0412 \u043e\u0441\u043d\u043e\u0432\u0435 \u043b\u0435\u0436\u0438\u0442 \u0442\u0440\u0438 \u044e\u043d\u0438\u0442\u0430:<\/p>\n<ol>\n<li>luks-auto-key.service \u2014 \u0438\u0449\u0435\u0442 \u043d\u0430\u043a\u043e\u043f\u0438\u0442\u0435\u043b\u0438 \u0441 \u043a\u043b\u044e\u0447\u0430\u043c\u0438 \u0434\u043b\u044f LUKS<\/li>\n<li>luks-auto.target \u2014 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0440\u043e\u043b\u044c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0434\u043b\u044f \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0445 \u044e\u043d\u0438\u0442\u043e\u0432 systemd-cryptsetup<\/li>\n<li>luks-auto-clean.service \u2014 \u043e\u0447\u0438\u0449\u0430\u0435\u0442 \u0432\u0440\u0435\u043c\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 luks-auto-key.service<\/li>\n<\/ol>\n<p>\n\u0418 luks-auto-generator.sh \u2014 \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f systemd \u0438 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e \u044e\u043d\u0438\u0442\u043e\u0432 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u044f\u0434\u0440\u0430. \u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0435 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0441\u043e\u0437\u0434\u0430\u044e\u0442 \u044e\u043d\u0438\u0442\u044b fstab \u0438 \u0442.\u043f.<\/p>\n<h4>luks-auto-generator.sh<\/h4>\n<p>\n\u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e drop-in.conf \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 systemd-cryptsetup, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044f \u0438\u043c \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c luks-auto.target.<\/p>\n<h4>luks-auto-key.service \u0438 luks-auto-key.sh<\/h4>\n<p>\n\u042d\u0442\u043e\u0442 \u044e\u043d\u0438\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 luks-auto-key.sh, \u043a\u043e\u0442\u043e\u0440\u044b\u0439, \u043e\u0441\u043d\u043e\u0432\u044b\u0432\u0430\u044f\u0441\u044c \u043d\u0430 \u043a\u043b\u044e\u0447\u0430\u0445 rd.luks.*, \u043d\u0430\u0445\u043e\u0434\u0438\u0442 \u043d\u043e\u0441\u0438\u0442\u0435\u043b\u0438 \u0441 \u043a\u043b\u044e\u0447\u0430\u043c\u0438 \u0438 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u0442 \u0438\u0445 \u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0434\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f. \u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430, \u043a\u043b\u044e\u0447\u0438 \u0438\u0437 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \u0443\u0434\u0430\u043b\u044f\u0435\u0442 luks-auto-clean.service.<\/p>\n<h3>\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438:<\/h3>\n<p><\/p>\n<p>                        <b class=\"spoiler_title\">\/usr\/lib\/dracut\/modules.d\/99luks-auto\/module-setup.sh<\/b><\/p>\n<pre><code class=\"bash\">#!\/bin\/bash\n\ncheck () {\n        if ! dracut_module_included &quot;systemd&quot;; then\n                &quot;luks-auto needs systemd in the initramfs&quot;\n                return 1\n        fi\n        return 255\n}\n\ndepends () {\n        echo &quot;systemd&quot;\n        return 0\n}\n\ninstall () {\n        inst &quot;$systemdutildir\/systemd-cryptsetup&quot;\n\t\tinst_script &quot;$moddir\/luks-auto-generator.sh&quot; &quot;$systemdutildir\/system-generators\/luks-auto-generator.sh&quot;\n\t\tinst_script &quot;$moddir\/luks-auto-key.sh&quot; &quot;\/etc\/systemd\/system\/luks-auto-key.sh&quot;\n\t\tinst_script &quot;$moddir\/luks-auto.sh&quot; &quot;\/etc\/systemd\/system\/luks-auto.sh&quot;\n\t\tinst &quot;$moddir\/luks-auto.target&quot; &quot;${systemdsystemunitdir}\/luks-auto.target&quot;\n\t\tinst &quot;$moddir\/luks-auto-key.service&quot; &quot;${systemdsystemunitdir}\/luks-auto-key.service&quot;\n\t\tinst &quot;$moddir\/luks-auto-clean.service&quot; &quot;${systemdsystemunitdir}\/luks-auto-clean.service&quot;\n\t\tln_r &quot;${systemdsystemunitdir}\/luks-auto.target&quot; &quot;${systemdsystemunitdir}\/initrd.target.wants\/luks-auto.target&quot;\n\t\tln_r &quot;${systemdsystemunitdir}\/luks-auto-key.service&quot; &quot;${systemdsystemunitdir}\/initrd.target.wants\/luks-auto-key.service&quot;\n\t\tln_r &quot;${systemdsystemunitdir}\/luks-auto-clean.service&quot; &quot;${systemdsystemunitdir}\/initrd.target.wants\/luks-auto-clean.service&quot;\n}\n<\/code><\/pre>\n<p>                        <b class=\"spoiler_title\">\/usr\/lib\/dracut\/modules.d\/99luks-auto\/luks-auto-generator.sh<\/b><\/p>\n<pre><code class=\"bash\">\n#!\/bin\/sh\n# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-\n# ex: ts=8 sw=4 sts=4 et filetype=sh\n\n. \/lib\/dracut-lib.sh\n\nSYSTEMD_RUN='\/run\/systemd\/system'\nCRYPTSETUP='\/usr\/lib\/systemd\/systemd-cryptsetup'\nTOUT=$(getargs rd.luks.key.tout)\nif [ ! -z &quot;$TOUT&quot; ]; then\n\tmkdir -p &quot;${SYSTEMD_RUN}\/luks-auto-key.service.d&quot;\n\tcat &gt; &quot;${SYSTEMD_RUN}\/luks-auto-key.service.d\/drop-in.conf&quot;  &lt;&lt;EOF\n[Service]\nType=oneshot\nExecStartPre=\/usr\/bin\/sleep $TOUT\n\nEOF\nfi\nmkdir -p &quot;$SYSTEMD_RUN\/luks-auto.target.wants&quot;\nfor argv in $(getargs rd.luks.uuid -d rd_LUKS_UUID); do\n\t_UUID=${argv#luks-}\n\t_UUID_ESC=$(systemd-escape -p $_UUID)\n\tmkdir -p &quot;${SYSTEMD_RUN}\/systemd-cryptsetup@luksx2d${_UUID_ESC}.service.d&quot;\n\tcat &gt; &quot;${SYSTEMD_RUN}\/systemd-cryptsetup@luksx2d${_UUID_ESC}.service.d\/drop-in.conf&quot;  &lt;&lt;EOF\n[Unit]\nAfter=luks-auto.target\nConditionPathExists=!\/dev\/mapper\/luks-${_UUID}\n\nEOF\n\tcat &gt; &quot;${SYSTEMD_RUN}\/luks-auto@${_UUID_ESC}.service&quot;  &lt;&lt;EOF\n[Unit]\nDescription=luks-auto Cryptography Setup for %I\nDefaultDependencies=no\nConflicts=umount.target\nIgnoreOnIsolate=true\nBefore=luks-auto.target\nBindsTo=dev-disk-byx2duuid-${_UUID_ESC}.device\nAfter=dev-disk-byx2duuid-${_UUID_ESC}.device luks-auto-key.service\nBefore=umount.target\n\n[Service]\nType=oneshot\nRemainAfterExit=yes\nTimeoutSec=0\nExecStart=\/etc\/systemd\/system\/luks-auto.sh ${_UUID}\nExecStop=$CRYPTSETUP detach 'luks-${_UUID}'\nEnvironment=DRACUT_SYSTEMD=1\nStandardInput=null\nStandardOutput=syslog\nStandardError=syslog+console\n\nEOF\nln -fs ${SYSTEMD_RUN}\/luks-auto@${_UUID_ESC}.service $SYSTEMD_RUN\/luks-auto.target.wants\/luks-auto@${_UUID_ESC}.service\ndone\n<\/code><\/pre>\n<p>                        <b class=\"spoiler_title\">\/usr\/lib\/dracut\/modules.d\/99luks-auto\/luks-auto-key.service<\/b><\/p>\n<pre><code class=\"bash\">\n[Unit]\nDescription=LUKS AUTO key searcher\nAfter=cryptsetup-pre.target\nBefore=luks-auto.target\nDefaultDependencies=no\n\n[Service]\nEnvironment=DRACUT_SYSTEMD=1\nType=oneshot\nExecStartPre=\/usr\/bin\/sleep 1\nExecStart=\/etc\/systemd\/system\/luks-auto-key.sh\nRemainAfterExit=true\nStandardInput=null\nStandardOutput=syslog\nStandardError=syslog+console\n<\/code><\/pre>\n<p>                        <b class=\"spoiler_title\">\/usr\/lib\/dracut\/modules.d\/99luks-auto\/luks-auto-key.sh<\/b><\/p>\n<pre><code class=\"bash\">\n#!\/bin\/sh\n# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-\n# ex: ts=8 sw=4 sts=4 et filetype=sh\nexport DRACUT_SYSTEMD=1\n\n. \/lib\/dracut-lib.sh\nMNT_B=&quot;\/tmp\/luks-auto&quot;\nARG=$(getargs rd.luks.key)\nIFS=$':' _t=(${ARG})\nKEY=${_t[0]}\nF_FIELD=''\nF_VALUE=''\nif [ ! -z $KEY ] &amp;&amp; [ ! -z ${_t[1]} ];then\n\tIFS=$'=' _t=(${_t[1]})\n\tF_FIELD=${_t[0]}\n\tF_VALUE=${_t[1]}\n\tF_VALUE=&quot;${F_VALUE%&quot;}&quot;\n\tF_VALUE=&quot;${F_VALUE#&quot;}&quot;\nfi\nmkdir -p $MNT_B\n\nfinding_luks_keys(){\n\tlocal _DEVNAME=''\n\tlocal _UUID=''\n\tlocal _TYPE=''\n\tlocal _LABEL=''\n\tlocal _MNT=''\n\tlocal _KEY=&quot;$1&quot;\n\tlocal _F_FIELD=&quot;$2&quot;\n\tlocal _F_VALUE=&quot;$3&quot;\n\tlocal _RET=0\t\n\tblkid -s TYPE -s UUID -s LABEL -u filesystem | grep -v -E -e &quot;TYPE=&quot;.*_member&quot;&quot; -e &quot;TYPE=&quot;crypto_.*&quot;&quot; -e &quot;TYPE=&quot;swap&quot;&quot; | while IFS=$'' read -r _line; do\n\t\tIFS=$':' _t=($_line);\n\t\t_DEVNAME=${_t[0]}\n\t\t_UUID=''\n\t\t_TYPE=''\n\t\t_LABEL=''\n\t\t_MNT=''\n\t\tIFS=$' ' _t=(${_t[1]});\n\t\tfor _a in &quot;${_t[@]}&quot;; do\n\t\t\tIFS=$'=' _v=(${_a});\n\t\t\ttemp=&quot;${_v[1]%&quot;}&quot;\n\t\t\ttemp=&quot;${temp#&quot;}&quot;\n\t\t\tcase ${_v[0]} in\n\t\t\t\t'UUID')\n\t\t\t\t\t_UUID=$temp\n\t\t\t\t;;\n\t\t\t\t'TYPE')\n\t\t\t\t\t_TYPE=$temp\n\t\t\t\t;;\n\t\t\t\t'LABEL')\n\t\t\t\t\t_LABEL=$temp\n\t\t\t\t;;\n\t\t\tesac\n\t\tdone\n\t\tif [ ! -z &quot;$_F_FIELD&quot; ];then\n\t\t\tcase $_F_FIELD in\n\t\t\t\t'UUID')\n\t\t\t\t\t[ ! -z &quot;$_F_VALUE&quot; ] &amp;&amp; [ &quot;$_UUID&quot; != &quot;$_F_VALUE&quot; ] &amp;&amp; continue\n\t\t\t\t;;\n\t\t\t\t'LABEL')\n\t\t\t\t\t[ ! -z &quot;$_F_VALUE&quot; ] &amp;&amp; [ &quot;$_LABEL&quot; != &quot;$_F_VALUE&quot; ] &amp;&amp; continue\n\t\t\t\t;;\n\t\t\t\t*)\n\t\t\t\t\t[ &quot;$_DEVNAME&quot; != &quot;$_F_FIELD&quot; ] &amp;&amp; continue\n\t\t\t\t;;\n\t\t\tesac\n\t\tfi\n\t\t_MNT=$(findmnt -n -o TARGET $_DEVNAME)\n\t\tif [ -z &quot;$_MNT&quot; ]; then\n\t\t\t_MNT=${MNT_B}\/KEY-${_UUID}\n\t\t\tmkdir -p &quot;$_MNT&quot; &amp;&amp; mount -o ro &quot;$_DEVNAME&quot; &quot;$_MNT&quot;\n\t\t\t_RET=$?\n\t\telse\n\t\t\t_RET=0\n\t\tfi\n\t\tif [ &quot;${_RET}&quot; -eq 0 ] &amp;&amp; [ -f &quot;${_MNT}\/${_KEY}&quot; ]; then\n\t\t\tcp &quot;${_MNT}\/${_KEY}&quot; &quot;$MNT_B\/${_UUID}.key&quot;\n\t\t\tinfo &quot;Found ${_MNT}\/${_KEY} on ${_UUID}&quot;\n\t\tfi\n\t\tif [[ &quot;${_MNT}&quot; =~ &quot;${MNT_B}&quot; ]]; then\n\t\t\tumount &quot;$_MNT&quot; &amp;&amp; rm -rfd --one-file-system &quot;$_MNT&quot;\t\t\t\t\t\t\n\t\tfi\n\tdone\n\treturn 0\n}\nfinding_luks_keys $KEY $F_FIELD $F_VALUE\n<\/code><\/pre>\n<p>                        <b class=\"spoiler_title\">\/usr\/lib\/dracut\/modules.d\/99luks-auto\/luks-auto.target<\/b><\/p>\n<pre><code class=\"bash\">\n[Unit]\nDescription=LUKS AUTO target\nAfter=systemd-readahead-collect.service systemd-readahead-replay.service\nAfter=cryptsetup-pre.target luks-auto-key.service\nBefore=cryptsetup.target\n<\/code><\/pre>\n<p>                        <b class=\"spoiler_title\">\/usr\/lib\/dracut\/modules.d\/99luks-auto\/luks-auto.sh<\/b><\/p>\n<pre><code class=\"bash\">\n#!\/bin\/sh\n# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-\n# ex: ts=8 sw=4 sts=4 et filetype=sh\nexport DRACUT_SYSTEMD=1\n. \/lib\/dracut-lib.sh\n\nMNT_B=&quot;\/tmp\/luks-auto&quot;\nCRYPTSETUP='\/usr\/lib\/systemd\/systemd-cryptsetup'\n\nfor i in $(ls -p $MNT_B | grep -v \/);do\n\tinfo &quot;Trying $i on $1...&quot;\n\t$CRYPTSETUP attach &quot;luks-$1&quot; &quot;\/dev\/disk\/by-uuid\/$1&quot; $MNT_B\/$i 'tries=1'\n\tif [ &quot;$?&quot; -eq &quot;0&quot; ]; then\n\t\tinfo &quot;Found $i for $1&quot;\n\t\texit 0\n\tfi\ndone\nwarn &quot;No key found for $1.  Fallback to passphrase mode.&quot;\n<\/code><\/pre>\n<p>                        <b class=\"spoiler_title\">\/usr\/lib\/dracut\/modules.d\/99luks-auto\/luks-auto-clean.service<\/b><\/p>\n<pre><code class=\"bash\">[Unit]\nDescription=LUKS AUTO key cleaner\nAfter=cryptsetup.target\nDefaultDependencies=no\n\n[Service]\nType=oneshot\nExecStart=\/usr\/bin\/rm -rfd --one-file-system \/tmp\/luks-auto\n<\/code><\/pre>\n<p>                        <b class=\"spoiler_title\">\/etc\/dracut.conf.d\/luks-auto.conf<\/b><\/p>\n<pre><code class=\"bash\">add_dracutmodules+=&quot; luks-auto &quot;<\/code><\/pre>\n<p>                        <b class=\"spoiler_title\">\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/b><\/p>\n<pre><code class=\"bash\">\nmkdir -p \/usr\/lib\/dracut\/modules.d\/99luks-auto\/\n# \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u043c \u0442\u0443\u0442 \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435 \u0444\u0430\u0439\u043b\u044b\nchmod +x \/usr\/lib\/dracut\/modules.d\/99luks-auto\/*.sh\n# \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b \/etc\/dracut.conf.d\/luks-auto.conf\n# \u0418 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u043d\u043e\u0432\u044b\u0439 initramfs\ndracut -f\n<\/code><\/pre>\n<p><\/p>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>\n\u0414\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043b \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u044f\u0434\u0440\u0430 \u043a\u0430\u043a \u0434\u043b\u044f \u0440\u0435\u0436\u0438\u043c\u0430 sysvinit, \u0447\u0442\u043e \u043e\u0431\u043b\u0435\u0433\u0447\u0430\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 \u0441\u0442\u0430\u0440\u044b\u0445 \u0438\u043d\u0441\u0442\u0430\u043b\u044f\u0446\u0438\u044f.<br \/>\n<br \/>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/504800\/\">habr.com<\/a> <\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u043d\u0430\u0447\u0430\u043b\u0430\u0441\u044c \u0434\u0430\u0432\u043d\u043e, \u0435\u0449\u0435 \u043f\u0440\u0438 \u0432\u044b\u0445\u043e\u0434\u0435 Centos 7 (RHEL 7). \u0415\u0441\u043b\u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 \u0434\u0438\u0441\u043a\u0430\u0445 \u0441 Centos 6, \u0442\u043e \u043d\u0435 \u0431\u044b\u043b\u043e \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u043e\u0439 \u0434\u0438\u0441\u043a\u043e\u0432 \u043f\u0440\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 USB \u0444\u043b\u0435\u0448\u043a\u0438 \u0441 \u043d\u0443\u0436\u043d\u044b\u043c\u0438 \u043a\u043b\u044e\u0447\u0430\u043c\u0438. \u041e\u0434\u043d\u0430\u043a\u043e, \u043f\u0440\u0438 \u0432\u044b\u0445\u043e\u0434\u0435 7-\u043a\u0438 \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e \u0432\u0441\u0435 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e \u043a\u0430\u043a \u0432\u044b \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438. \u0422\u043e\u0433\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043d\u0430\u0439\u0442\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0435 dracut \u043a [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":83699,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-83698","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u043d\u0430\u0447\u0430\u043b\u0430\u0441\u044c \u0434\u0430\u0432\u043d\u043e, \u0435\u0449\u0435 \u043f\u0440\u0438 \u0432\u044b\u0445\u043e\u0434\u0435 Centos 7 (RHEL 7). \u0415\u0441\u043b\u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 \u0434\u0438\u0441\u043a\u0430\u0445 \u0441 Centos 6, \u0442\u043e \u043d\u0435 \u0431\u044b\u043b\u043e \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u043e\u0439 \u0434\u0438\u0441\u043a\u043e\u0432 \u043f\u0440\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 USB \u0444\u043b\u0435\u0448\u043a\u0438 \u0441 \u043d\u0443\u0436\u043d\u044b\u043c\u0438 \u043a\u043b\u044e\u0447\u0430\u043c\u0438. \u041e\u0434\u043d\u0430\u043a\u043e, \u043f\u0440\u0438 \u0432\u044b\u0445\u043e\u0434\u0435 7-\u043a\u0438 \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e \u0432\u0441\u0435 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e \u043a\u0430\u043a \u0432\u044b \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438. \u0422\u043e\u0433\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043d\u0430\u0439\u0442\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0435 dracut \u043a\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/et\/blog\/administrirovanie\/dracut-systemd-luks-usbflash-avtorazblokirovka\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"et_EE\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47dracut + systemd + LUKS + usbflash = \u0430\u0432\u0442\u043e\u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0430 | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u043d\u0430\u0447\u0430\u043b\u0430\u0441\u044c \u0434\u0430\u0432\u043d\u043e, \u0435\u0449\u0435 \u043f\u0440\u0438 \u0432\u044b\u0445\u043e\u0434\u0435 Centos 7 (RHEL 7). \u0415\u0441\u043b\u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 \u0434\u0438\u0441\u043a\u0430\u0445 \u0441 Centos 6, \u0442\u043e \u043d\u0435 \u0431\u044b\u043b\u043e \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u043e\u0439 \u0434\u0438\u0441\u043a\u043e\u0432 \u043f\u0440\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 USB \u0444\u043b\u0435\u0448\u043a\u0438 \u0441 \u043d\u0443\u0436\u043d\u044b\u043c\u0438 \u043a\u043b\u044e\u0447\u0430\u043c\u0438. \u041e\u0434\u043d\u0430\u043a\u043e, \u043f\u0440\u0438 \u0432\u044b\u0445\u043e\u0434\u0435 7-\u043a\u0438 \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e \u0432\u0441\u0435 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e \u043a\u0430\u043a \u0432\u044b \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438. \u0422\u043e\u0433\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043d\u0430\u0439\u0442\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0435 dracut \u043a\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/et\/blog\/administrirovanie\/dracut-systemd-luks-usbflash-avtorazblokirovka\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-06-02T17:42:29+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-06-02T17:42:29+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47dracut + systemd + LUKS + usbflash = automaatne avamine | ProHoster","description":"Lugu algas ammu, veel Centos 7 (RHEL 7) v\u00e4lja tulekul. Kui te olete kasutanud kettas \u0161ifreerimist Centos 6-ga, siis ei olnud mingeid probleeme diskide automaatse avamisega, kui USB m\u00e4lupulk, millel olid vajalikud v\u00f5tmed, oli \u00fchendatud. Kuid Centos 7 v\u00e4lja tulekul ei t\u00f6\u00f6tanud \u00e4kitselt k\u00f5ik nii nagu te olid harjunud. Toona oli lahendust v\u00f5imalik leida dracuti taastamisel.","canonical_url":"https:\/\/prohoster.info\/et\/blog\/administrirovanie\/dracut-systemd-luks-usbflash-avtorazblokirovka","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"et_EE","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47dracut + systemd + LUKS + usbflash = \u0430\u0432\u0442\u043e\u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0430 | ProHoster","og:description":"\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u043d\u0430\u0447\u0430\u043b\u0430\u0441\u044c \u0434\u0430\u0432\u043d\u043e, \u0435\u0449\u0435 \u043f\u0440\u0438 \u0432\u044b\u0445\u043e\u0434\u0435 Centos 7 (RHEL 7). \u0415\u0441\u043b\u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 \u0434\u0438\u0441\u043a\u0430\u0445 \u0441 Centos 6, \u0442\u043e \u043d\u0435 \u0431\u044b\u043b\u043e \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u043e\u0439 \u0434\u0438\u0441\u043a\u043e\u0432 \u043f\u0440\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 USB \u0444\u043b\u0435\u0448\u043a\u0438 \u0441 \u043d\u0443\u0436\u043d\u044b\u043c\u0438 \u043a\u043b\u044e\u0447\u0430\u043c\u0438. \u041e\u0434\u043d\u0430\u043a\u043e, \u043f\u0440\u0438 \u0432\u044b\u0445\u043e\u0434\u0435 7-\u043a\u0438 \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e \u0432\u0441\u0435 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e \u043a\u0430\u043a \u0432\u044b \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438. \u0422\u043e\u0433\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043d\u0430\u0439\u0442\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0435 dracut \u043a","og:url":"https:\/\/prohoster.info\/et\/blog\/administrirovanie\/dracut-systemd-luks-usbflash-avtorazblokirovka","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2020-06-02T17:42:29+00:00","article:modified_time":"2020-06-02T17:42:29+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"83698","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":null,"breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 15:12:27","updated":"2026-02-22 15:29:29"},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/posts\/83698","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/comments?post=83698"}],"version-history":[{"count":1,"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/posts\/83698\/revisions"}],"predecessor-version":[{"id":162158,"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/posts\/83698\/revisions\/162158"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/media\/83699"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/media?parent=83698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/categories?post=83698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/tags?post=83698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}