:: Re: [DNG] Premounting a partition o…
Página Inicial
Delete this message
Reply to this message
Autor: Hendrik Boom
Data:  
Para: dng
Assunto: Re: [DNG] Premounting a partition other than /usr
On Sat, Sep 21, 2024 at 09:06:27PM +1000, Ralph Ronnquist via Dng wrote:

>
> Well, the "normal" initramfs-tools picks up custom scripting from
> /etc/initramfs-tools/scripts so you can easily inject something there.
> For example, an init-bottom/ script, which is invoked after that the
> to-be root filesystem $[rootmnt} is mounted but before switch_root,
> can add mounts below that (and it may even read the
> ${rootmnt}/etc/fstab as a guide, if it needs to be somewhat generic).


How well would modifications to these files survive system upgrades?

-- hendrik

> If that mounting needs modules then those would best be in the
> initramfs /lib/modules tree.



>
> It's all sh scripting; very open and transparent. The actual /init is
> found as /usr/share/initramfs-tools/init.
>
> Ralph.