{"id":85,"date":"2013-03-30T13:56:09","date_gmt":"2013-03-30T13:56:09","guid":{"rendered":"http:\/\/thomas.goirand.fr\/blog\/?p=85"},"modified":"2013-03-30T13:56:36","modified_gmt":"2013-03-30T13:56:36","slug":"an-afternoon-of-fun-hacking-the-boot-of-debian","status":"publish","type":"post","link":"http:\/\/thomas.goirand.fr\/blog\/?p=85","title":{"rendered":"An afternoon of fun hacks, booting Debian"},"content":{"rendered":"<p>Step one: building OpenRC, and force it with a big hammer to replace sysv-rc.<\/p>\n<p><a href=\"http:\/\/thomas.goirand.fr\/blog\/wp-content\/uploads\/2013\/03\/openrc.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-86\" alt=\"openrc\" src=\"http:\/\/thomas.goirand.fr\/blog\/wp-content\/uploads\/2013\/03\/openrc.png\" width=\"724\" height=\"480\" srcset=\"http:\/\/thomas.goirand.fr\/blog\/wp-content\/uploads\/2013\/03\/openrc.png 724w, http:\/\/thomas.goirand.fr\/blog\/wp-content\/uploads\/2013\/03\/openrc-300x198.png 300w\" sizes=\"(max-width: 724px) 100vw, 724px\" \/><\/a><\/p>\n<p>A few minutes later, with even more hacks, we have a more decent boot process which uses Gentoo boot scripts (amazingly, most of them do work out of the box!):<\/p>\n<p><a href=\"http:\/\/thomas.goirand.fr\/blog\/wp-content\/uploads\/2013\/03\/openrc_take2.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-87\" alt=\"openrc_take2\" src=\"http:\/\/thomas.goirand.fr\/blog\/wp-content\/uploads\/2013\/03\/openrc_take2.png\" width=\"725\" height=\"480\" srcset=\"http:\/\/thomas.goirand.fr\/blog\/wp-content\/uploads\/2013\/03\/openrc_take2.png 725w, http:\/\/thomas.goirand.fr\/blog\/wp-content\/uploads\/2013\/03\/openrc_take2-300x198.png 300w\" sizes=\"(max-width: 725px) 100vw, 725px\" \/><\/a><\/p>\n<p>Notice the udev script, which is hacked from the Debian sysv-rc, still has the color scheme of Debian, while the other scripts are just drop-ins from Gentoo.<\/p>\n<p>Of course, this is only a big hack to have the above. There is only so much you can do in a 4 hours hacking session. It will need more serious work to make it a viable solution (like finding a way to upgrade smoothly and allow the first reboot to shutdown processes which aren&#8217;t running using cgroup, converting existing init scripts automatically, hooking into update-rc.d, etc.). Though the proof of concept is there: the &#8220;rc-status&#8221; command works, we have cgroups working, and so on.<\/p>\n<p>Thanks to Patrick Lauer for spending with me this fun afternoon, hacking OpenRC in SID.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Step one: building OpenRC, and force it with a big hammer to replace sysv-rc. A few minutes later, with even more hacks, we have a more decent boot process which uses Gentoo boot scripts (amazingly, most of them do work out of the box!): Notice the udev script, which is hacked from the Debian sysv-rc, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/thomas.goirand.fr\/blog\/index.php?rest_route=\/wp\/v2\/posts\/85"}],"collection":[{"href":"http:\/\/thomas.goirand.fr\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/thomas.goirand.fr\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/thomas.goirand.fr\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/thomas.goirand.fr\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=85"}],"version-history":[{"count":6,"href":"http:\/\/thomas.goirand.fr\/blog\/index.php?rest_route=\/wp\/v2\/posts\/85\/revisions"}],"predecessor-version":[{"id":93,"href":"http:\/\/thomas.goirand.fr\/blog\/index.php?rest_route=\/wp\/v2\/posts\/85\/revisions\/93"}],"wp:attachment":[{"href":"http:\/\/thomas.goirand.fr\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=85"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/thomas.goirand.fr\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=85"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/thomas.goirand.fr\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=85"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}