{"id":3597,"date":"2017-05-30T09:41:53","date_gmt":"2017-05-30T07:41:53","guid":{"rendered":"https:\/\/rephlex.de\/blog\/?p=3597"},"modified":"2017-05-30T09:41:53","modified_gmt":"2017-05-30T07:41:53","slug":"quick-tip-how-to-rebuild-all-initrds-with-dracut-in-centos-67","status":"publish","type":"post","link":"https:\/\/rephlex.de\/blog\/2017\/05\/30\/quick-tip-how-to-rebuild-all-initrds-with-dracut-in-centos-67\/","title":{"rendered":"Quick Tip: How to rebuild all initrds with dracut in CentOS 6\/7"},"content":{"rendered":"<p>If you need to automatically rebuild all initrds for all installed kernels:<\/p>\n<blockquote><p>rpm -qa | grep kernel | grep -v headers | grep -v tools | sed &#8217;s\/^kernel\\-\/\/g&#8216; | xargs -i dracut -v -f \/boot\/initramfs-{}.img {}<\/p><\/blockquote>\n<p>Oh, and while we&#8217;re at it, the same for Ubuntu<\/p>\n<blockquote><p>update-initramfs -u -k all<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>If you need to automatically rebuild all initrds for all installed kernels: rpm -qa | grep kernel | grep -v headers | grep -v tools | sed &#8217;s\/^kernel\\-\/\/g&#8216; | xargs -i dracut -v -f \/boot\/initramfs-{}.img {} Oh, and while we&#8217;re at it, the same for Ubuntu update-initramfs -u -k all<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[4],"tags":[295,288,290,293,297,292,291,229,289,296,47,294],"class_list":["post-3597","post","type-post","status-publish","format-standard","hentry","category-techtalk","tag-apt","tag-centos","tag-create","tag-dracut","tag-grub","tag-initramfs","tag-initrd","tag-kernel","tag-rebuild","tag-rpm","tag-ubuntu","tag-yum"],"_links":{"self":[{"href":"https:\/\/rephlex.de\/blog\/wp-json\/wp\/v2\/posts\/3597","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rephlex.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rephlex.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rephlex.de\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/rephlex.de\/blog\/wp-json\/wp\/v2\/comments?post=3597"}],"version-history":[{"count":1,"href":"https:\/\/rephlex.de\/blog\/wp-json\/wp\/v2\/posts\/3597\/revisions"}],"predecessor-version":[{"id":3598,"href":"https:\/\/rephlex.de\/blog\/wp-json\/wp\/v2\/posts\/3597\/revisions\/3598"}],"wp:attachment":[{"href":"https:\/\/rephlex.de\/blog\/wp-json\/wp\/v2\/media?parent=3597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rephlex.de\/blog\/wp-json\/wp\/v2\/categories?post=3597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rephlex.de\/blog\/wp-json\/wp\/v2\/tags?post=3597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}