:: Re: [DNG] Premounting a partition o…
Pàgina inicial
Delete this message
Reply to this message
Autor: Ralph Ronnquist
Data:  
A: dng
Assumptes nous: [DNG] custom initramfs, was: Re: Premounting a partition other than /usr
Assumpte: Re: [DNG] Premounting a partition other than /usr
On Sat, Sep 21, 2024 at 11:37:03AM -0400, Hendrik Boom wrote:
> 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?


Yes, it survives upgrades. Added scripts in /etc/intiramfs-tools added
scripting should stay through initramfs-tools upgrade; though edits to
/usr/share/initramfs-tools files probably will get erased (but one
wouldn't do that anyhow:)

Ralph.

>
> -- 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.
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng