All of lore.kernel.org
 help / color / mirror / Atom feed
From: L A Walsh <lkml@tlinx.org>
To: Karel Zak <kzak@redhat.com>
Cc: util-linux@vger.kernel.org
Subject: Re: RFD: --enable-bindir-path ?
Date: Fri, 31 Aug 2018 15:55:09 -0700	[thread overview]
Message-ID: <5B89C74D.8030701@tlinx.org> (raw)
In-Reply-To: <20180830084556.ubvu5e5qhzih5fng@ws.net.home>

Karel Zak wrote:
> On Sun, Aug 26, 2018 at 10:54:49AM -0700, L A Walsh wrote:
>   
>> Was wondering about the addition of an "enable-bindir-path" which would only
>> use
>> paths with /bin instead of /usr/bin for setups where /usr/bin -> /bin (like
>> cygwin who mounts /bin and /lib on /usr/bin and /usr/lib -- using mounts
>> instead of symlinks).  The've had that since the beginning with nothing
>> being
>> installed in /usr/bin or /usr/lib.
>>     
>
> So for this use-case /usr should be ignored at all, right? What about PATH
> setting? Is it also without /usr? What about man pages, docs?
>   
----
    The use case for enable-usrdir-path is for cases where /bin->/usr/bin
/lib->/usr/lib, /lib64->/usr/lib, sbin->/usr/sbin,

conversely, the opposite would be where bin are in /bin and /usr/bin is
a symlink to /bin, and same for the libdirs and sbin.

    There is nothing in switch description about /doc, or /man being mounted
on /usr/<equiv>, so why would one move those around? 
> I have nothing against this feature, but question is if it's important
> enough to implement and support it ;-)
>   
---
    Well the sbin dirs are separate in cygwin, but /usr/bin is copy /bin
same for the lib dir.  It's really not that much to implement.  Only thing
it means is that if /usr is a separate partition, then during boot,
all your files in /bin, lib, lib64/ sbin...will be on the root, while and
boot can continue.  While if all the libs+binaries are /usr, it's hard to
mount.  So the use case is ensuring the system will boot?
>   
>> Was also wondering why that wasn't chosen as a default for merging, since
>> /bin and /lib are almost always on the root file system so they are always
>> there, versus /usr/{bin,lib{,64}} which may need to be mounted before it can
>> be used...if it can't be mounted, having things in /bin & /lib pointed
>> to /usr won't work so well.
>>     
>
> I think originally /usr was also on the same FS as /{bin,lib,...}.
>   
----
    Depends on what you mean by "originally", but back before linux,
originally there was no /usr, it came later for /usr files and home
dirs.  On it were application binaries for users, but binaries that were
not required for boot.


> Anyway, now this no issue as we use initram images where is all
> stuff that is necessary to assemble usable hierarchy of filesystems
> (including RAIDs, NFS moutpoints, etc.)
>
>     Karel
>   
----
    Who is this 'we' kimosami? ;^)

    Not me, nor anyone following the systemd recommendations for boot
speed.  My kernel is on a disk partition named 'boot' and it transfers
control to the 'root' partition that brings up HW, disks and network.
After that the rest of the system is brought up.

    Everything worked well until libs needed for 'mount' started appearing
on /usr.  If you had everything on a ram disk that was needed for boot,
but then the libs for some of the programs were out on the hard disk,
the ram disk would have a hard time proceeding as well. 

I don't have a different or separate /usr/{{s,}bin,lib{,64}} on a ram 
disk as
exists on my my hard disk, and /usr is usually too large for a
ram disk image.  So now how would one know when another part
of some boot program had been split off and put out on the disk /usr/lib?
Hopefully not by waiting until  it fails because at that point
it's a bit too late.

Does that answer your questions?

Cheers!
-Linda

  reply	other threads:[~2018-08-31 22:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-26 17:54 RFD: --enable-bindir-path ? L A Walsh
2018-08-30  8:45 ` Karel Zak
2018-08-31 22:55   ` L A Walsh [this message]
2018-09-03 10:17     ` Karel Zak
2018-09-04  9:41       ` Karel Zak
2018-09-07  2:52         ` L A Walsh

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=5B89C74D.8030701@tlinx.org \
    --to=lkml@tlinx.org \
    --cc=kzak@redhat.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.