From: Isaac Dunham <ibid.ag@gmail.com>
To: Karel Zak <kzak@redhat.com>
Cc: Ruediger Meier <sweet_f_a@gmx.de>, util-linux@vger.kernel.org
Subject: Re: question about hardcoded binary paths (swapon / mkswap)
Date: Thu, 2 Apr 2015 10:28:01 -0700 [thread overview]
Message-ID: <20150402172800.GA1798@newbook> (raw)
In-Reply-To: <20150402082000.GC2097@ws.net.home>
On Thu, Apr 02, 2015 at 10:20:00AM +0200, Karel Zak wrote:
> On Wed, Apr 01, 2015 at 09:12:30PM -0400, Mike Frysinger wrote:
> > neither tool is set*id,
> > and mkfs/fsck generally live in /sbin. i guess if you're non-root and have
> > /sbin/mkfs hardcoded in a script, then dropping FS_SEARCH_PATH might break
> > existing code.
>
> for systemd based distors the path should be also modified, we have
> all in /usr and /sbin and /bin are symlinks only.
(1) mkfs/fsck can be used on files that can be loopback mounted; I've
used mkfs.*fs directly, but it may be desireable to support using
mkfs -t as a user for creating filesystems on regular files.
(2) the /usr merge may be prevalent on RPM-based distros, but Debian does
not use it; I would assume that if they decided to support it, there would
be 2 releases before you could require it.
Additionally, the /sbin and /bin symlinks are there precisely because the
LSB requires certain commands to be in /bin and /sbin so that binaries
and scripts can rely on the paths. Ignoring this will cause needless
incompatability.
Thanks,
Isaac Dunham
next prev parent reply other threads:[~2015-04-02 17:28 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-01 11:42 question about hardcoded binary paths (swapon / mkswap) Ruediger Meier
2015-04-01 13:38 ` Isaac Dunham
2015-04-01 16:17 ` Ruediger Meier
2015-04-01 20:10 ` Mike Frysinger
2015-04-01 21:06 ` Ruediger Meier
2015-04-01 21:38 ` Karel Zak
2015-04-02 1:12 ` Mike Frysinger
2015-04-02 8:20 ` Karel Zak
2015-04-02 16:19 ` Mike Frysinger
2015-04-02 19:15 ` Karel Zak
2015-04-02 22:50 ` Ruediger Meier
2015-04-03 1:15 ` Mike Frysinger
2015-04-03 8:52 ` Karel Zak
2015-04-03 23:16 ` Mike Frysinger
2015-04-02 17:28 ` Isaac Dunham [this message]
2015-04-01 22:23 ` Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150402172800.GA1798@newbook \
--to=ibid.ag@gmail.com \
--cc=kzak@redhat.com \
--cc=sweet_f_a@gmx.de \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox