:: Re: [DNG] upcoming usr merge requir…
Página Principal
Delete this message
Reply to this message
Autor: Didier Kryn
Data:  
Para: dng
Assunto: Re: [DNG] upcoming usr merge requirements
Le 28/11/2023 à 03:43, Steve Litt a écrit :
> I'm speaking for Linux, not for the Debian or Devuan packaging...
>
> If you choose to have your /usr on a separate partition mounting on
> mountpoint /usr, it should be no problem at all because your initramfs
> will boot off its own OS, and then mount /dev/sda5 /usr, and then
> pivotroot back to the hard disk, which now has /usr mounted in the
> correct place. No big deal: It's been done for years: Long before
> usrmerge.
>
> Now of course if a specific distro's packaging system and installer has
> a problem with such a setup, you'll need to do some DIY on that distro.
> But I doubt even Debian is stupid enough to seriously bork this
> customary technique.


    It's exactly that.

    My own comment is: it is only if you decide to tweak the boot
sequence that you need to take care.

    The boot sequence is nowadays done in two steps:

    1) boot into a first partition which, for distros, is always an
initramfs; perform some mounts and maybe other things;

    2) pivot-root to the final partition and continue the init sequence
there.

    Note that, if you decide to craft your own first step, the initial
partition is not necessarily an initramfs, provided your kernel is able
to mount it, i.e. it has the drivers built-in, which implies you must
build it from source.

--     Didier