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

Hannes Reinecke hare at suse.de
Wed Nov 27 06:12:02 PST 2013


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.

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare at suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)


More information about the systemd-devel mailing list