On Sun, 5 Jul 2026 08:31:43 +0200
Lorenz via Dng <dng@???> wrote:
> On Sat, Jul 4, 2026 at 7:27 PM Svante Signell via Dng
> <dng@???> wrote:
>
> > >
> > What does your script really do? A wish would be a script logging the
> > number of soft links and files referring to /bin, /sbin etc. Then we
> > could determine how many soft links are really needed for Devuan
> > without usrmerge. And those already implemented by me for GNU/Hurd sid.
> >
> > Thanks!
>
> I'm not sure what layout you have in mind for your unmerged system:
> in any case I guess /bin /lib /sbin will be real directories, but
> 1) populate /bin /lib /sbin and so with symlinks to their /usr counterpart
> for a list of binaries (for example from coreutils and util-linux)
Hi,
1) make a tool that traces what binaries and their deps (libs, interpreters, linker, modules)
are needed to boot that particular system until e.g. /usr is mounted (or any other target you need)
and make a list of that files e.g UNMERGEDFILES.TXT and add for each file the target dir
in a way it could be easily parsed (or if you know by experience you no tool at all)
2) detect to which deb packages the files belong and make a list PACKAGELIST.TXT
or add that info to the UNMERGEDFILES.TXT to keep it simple
3) make /bin /sbin /lib directories (any other I forget?)
4) copy the binaries, libs, shells, and interpreters to the
created target directories by a script that parses
UNMERGEDFILES.TXT
5) add a hook to apt so that if any package in PACKAGELIST.TXT (or UNMERGEDFILES.TXT)
is updated the relevant files are copied to the target directories
6) (if possible) add a hook that at every package install checks if
any new dependencies are added to the boot process
( i think this will be slow, to slow)
Advantages: no need to mess with deb packages, from the package manager
point of view the system is still usrmerged.
Contra: is it possible to trace all the files needed? I have no idea how to achieve this....yet
can this survive updates and upgrades: is to be demonstrated.
Just my 2 cents,
Ciao,
Tito
> 2) rebuild few essential packages (again coreutils, util linux and so)
> to revert the move to /usr and ship in /bin /sbin, then populate
> /usr/bin and /usr/sbin with symlinks
> 3) some other way I didn't think about
>
> Could you clarify?
> _______________________________________________
> Dng mailing list
> Dng@???
> Manage your subscription: https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
> Archive: https://lists.dyne.org/lurker/list/dng.en.html