public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Canek Peláez Valdés" <caneko@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Apologize to everyone for my nonprofessional
Date: Sat, 15 Oct 2011 03:10:37 -0700	[thread overview]
Message-ID: <CADPrc825Voqq=bcS_RUiK-X4K=R0H-pxmJd78PfqyU83RvUmQw@mail.gmail.com> (raw)
In-Reply-To: <20111015105310.694b2e2c@digimed.co.uk>

On Sat, Oct 15, 2011 at 2:53 AM, Neil Bothwick <neil@digimed.co.uk> wrote:
> On Sat, 15 Oct 2011 00:34:10 -0700, Canek Peláez Valdés wrote:
>
>> /var != /var/run
>> /var != /var/lock
>>
>> /var/run is going in /run, but /var/run (by definition) only contains
>> things like PID files and runtime sockets. In the same vein, /var/lock
>> also is going into /run/lock. I have acknowledged this from the very
>> beginning, and I have been pointing out that implying that because
>> those two (really small and bounded) directories of /var are going
>> into /run and /run/lock,
>
> Putting the contents of /var/run and /var/lock on the root filesystem
> makes sense.
>
>> Nobody has even proposed that /var should go into the same partition
>> as /. *Nobody*, and the simplest proof of that is that nobody has
>> produced a single proof to the contrary. Not a single email, blog
>> post, or wiki entry from any system developer even mentions the
>> possibility of requiring /var to be in the same partition as /.
>
> The stated reason for requiring /usr on / is that udev can run
> *arbitrary* scripts and commands. If they are arbitrary, they could
> require access to anywhere, including /var or /home. That's the problem
> with this approach. Instead of saying "it can run stuff from anywhere, so
> anywhere must be mounted before udev is run" the fact that it is trying
> to run these arbitrary commands before filesystems are mounted should be
> addressed.

With an initramfs you can have everything mounted by udev execution
time. But forget about that.

It's arbitrary (basically) on executables and libraries. If an script
needs something more (from /var, lets say), then the rule should be
written in such a way that it can be called after that directory is
mounted. If you try to put the same restriction with *executables*
(not data, like in the ALSA case), then you need to start moving every
executable to /, because that's the only way to guarantee that it
would be available aearly on boot time (if you don't use an initramfs
and have /usr separated).

That sucks. /bin and /lib were the original hack, for this very
reason: some executables were needed early at boot time, and they put
them there so they were available. The initramfs solves this problem;
at some point, /bin /lib and /sbin will no longer be necessary.

So yeah, the udev rules can execute arbitrary code, but the should not
run stupid code. There is a difference.

>> Whoever says that /var will be required to be on the same partition as
>> / is either wildly speculating, or spreading FUD.
>
> It's not wild speculation, it is logical extrapolation of the current
> approach.

You don't have enough data to extrapolate.

>> It basically removes the need for a "pesky init* thingy", although for
>> the life of me I cannot understand why someone will not see the
>> technical advantages of actually using an initramfs.
>
> We understand its advantages in some circumstances, but  I cannot
> understand why someone will not see the technical disadvantages of
> actually using an initramfs.

Care to explain?

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



  reply	other threads:[~2011-10-15 10:12 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-14 15:43 [gentoo-user] Apologize to everyone for my nonprofessional Lavender
2011-10-14 15:52 ` Michael Mol
2011-10-14 16:15   ` Dale
2011-10-14 21:41     ` Neil Bothwick
2011-10-14 22:47       ` Dale
2011-10-15  5:10         ` Pandu Poluan
2011-10-15  6:56           ` Dale
2011-10-15  7:09             ` Pandu Poluan
2011-10-15  7:34             ` Canek Peláez Valdés
2011-10-15  7:50               ` Canek Peláez Valdés
2011-10-15  8:35                 ` Michael Schreckenbauer
2011-10-15  8:42                   ` Canek Peláez Valdés
2011-10-15  8:53                     ` Michael Schreckenbauer
2011-10-15  9:11                       ` Canek Peláez Valdés
2011-10-15  9:31                         ` Michael Schreckenbauer
2011-10-15  9:47                           ` Canek Peláez Valdés
2011-10-15 10:05                             ` Michael Schreckenbauer
2011-10-15 10:34                               ` Canek Peláez Valdés
2011-10-15 10:45                                 ` Michael Schreckenbauer
2011-10-15 11:04                                   ` Canek Peláez Valdés
2011-10-15 19:23                                     ` Michael Schreckenbauer
2011-10-15 10:49                                 ` Canek Peláez Valdés
2011-10-15 18:57                                 ` Joost Roeleveld
2011-10-15 23:25                     ` Mike Edenfield
2011-10-15  8:37               ` Dale
2011-10-15  9:02                 ` Canek Peláez Valdés
2011-10-15  9:15                   ` Michael Schreckenbauer
2011-10-15  9:21                     ` Canek Peláez Valdés
2011-10-15  9:32                       ` Michael Schreckenbauer
2011-10-15  9:49                         ` Canek Peláez Valdés
2011-10-15  9:37                       ` Dale
2011-10-15  9:54                         ` Canek Peláez Valdés
2011-10-15 17:23                           ` Dale
2011-10-15 14:23                   ` pk
2011-10-15 16:46                     ` Claudio Roberto França Pereira
2011-10-15 19:20                       ` Michael Schreckenbauer
2011-10-15 21:15                       ` Neil Bothwick
2011-10-15  9:53               ` Neil Bothwick
2011-10-15 10:10                 ` Canek Peláez Valdés [this message]
2011-10-15 11:31                   ` Neil Bothwick
2011-10-15 12:19                     ` Jonas de Buhr
2011-10-15 13:44               ` Alan McKinnon
2011-10-15 13:48               ` Alan McKinnon
2011-10-15 18:43               ` Joost Roeleveld
  -- strict thread matches above, loose matches on Subject: below --
2011-10-14 16:05 [gentoo-user] 回复: " Lavender
2011-10-17 12:45 ` du yang

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='CADPrc825Voqq=bcS_RUiK-X4K=R0H-pxmJd78PfqyU83RvUmQw@mail.gmail.com' \
    --to=caneko@gmail.com \
    --cc=gentoo-user@lists.gentoo.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