diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-05-29 16:12:40 +0200 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-07-15 16:29:08 +0200 |
commit | 5f81d06e8b879e1778649405b314d60234934dfc (patch) | |
tree | 94a207718e239cde141b31c311fcceee625ca608 /install/memdisk | |
parent | c4fcc20e9446ed0715681c0d664feb7cb3af2bbb (diff) | |
download | mkinitcpio-5f81d06e8b879e1778649405b314d60234934dfc.tar.gz mkinitcpio-5f81d06e8b879e1778649405b314d60234934dfc.tar.xz |
initalize buildroot later, and out outside of hooks
mkinitcpio needs to be able to more tightly control the layout of the
image. By moving this outside the control of the base hook, it's more
reasonable to believe that a drop-in replacement for the base hook could
be written, as it now only contains the utilities required for the /init
that it provides.
Being that initialize_buildroot is outside of a hook, we can make "raw"
calls to coreutils that create the directories and symlinks, saving some
overhead and forking.
This also symlinks /usr/local/{lib,bin} into the common /usr/lib and
/usr/bin, respectively, so that there's always a way to override libs
and bins, and they're automatically pulled into our strict early init
path of /usr/bin.
Finally, we lump all this generally a little "later" in the early setup.
This addresses an unseen "bug" wherein an extra temp directory that
never gets used is created when leveraging a preset.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'install/memdisk')
0 files changed, 0 insertions, 0 deletions