[systemd-devel] Hard-coded /bin/mount in systemd

Lennart Poettering lennart at poettering.net
Wed Nov 27 11:46:44 PST 2013


On Wed, 27.11.13 15:12, Hannes Reinecke (hare at suse.de) wrote:

> On 11/27/2013 02:58 PM, Mantas Mikulėnas wrote:
> > On Wed, Nov 27, 2013 at 3:31 PM, Hannes Reinecke <hare at suse.de> wrote:
> >>
> >> Hi all,
> >>
> >> for some reason systemd has /bin/mount hardcoded in
> >> src/core/mount.c:mount_enter_mounting()
> >>
> >> Which is a bit odd, seeing that everyting moved to /usr/bin.
> >> So we always have to do a symlink here, which really is a bit annoying.
> >>
> >> Is this by design or a simple left-over?
> > 
> > If *everything* moved to /usr/bin, then /bin itself has to be a
> > symlink anyway (as many tools expect and some standards require
> > specific commands to be in /bin).
> > 
> Ah. IIRC it was _systemd_ which initiated the move to /usr, so I
> found it slightly odd to rely on a location which it has just
> obsoleted ...
> Or, rather, to have a hard-coded location to start with.

systemd supports split /usr just fine really.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list