all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: 宋文武 <iyzsong@gmail.com>
Cc: 19491@debbugs.gnu.org
Subject: bug#19491: /etc/mtab give wrong entries for early-mounted items.
Date: Sun, 04 Jan 2015 17:04:58 +0100	[thread overview]
Message-ID: <87387q5y6t.fsf@gnu.org> (raw)
In-Reply-To: <87k312oglc.fsf@gmail.com> ("宋文武"'s message of "Sun, 04 Jan 2015 20:50:07 +0800")

宋文武 <iyzsong@gmail.com> skribis:

> Ludovic Courtès <ludo@gnu.org> writes:
>
>> 宋文武 <iyzsong@gmail.com> skribis:
>>
>>> Notably, I have:
>>>   /dev/sda1 /root ext4 rw,relatime,data=ordered 0 0
>>>   none /root//dev devtmpfs rw 0 0
>>>
>>> Which should be:
>>>   /dev/sda1 / ...
>>>   none /dev ...
>>>
>>> Why not make /etc/mtab a symlink to /proc/self/mounts?
>>
>> This sounds appealing, but it seems that libmount in util-linux will
>> insist to update /etc/mtab.
>>
>> Do you have evidence that it could cope with it?
> Not sure, but I think libmount should just work fine.
>
> util-linux support this since 2.19:
>   https://www.kernel.org/pub/linux/utils/util-linux/v2.19/v2.19-ReleaseNotes
>
> Debian make this default at 2011:
>   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=494001

OK, it sounds like it’s safe, then.  :-)

Would you like to propose a patch?  There are changes to make around
linux-boot.scm, and also in (guix build syscalls) the #:update-mtab?
argument should default to #f.

Thanks,
Ludo’.

  reply	other threads:[~2015-01-04 16:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-02 12:13 bug#19491: /etc/mtab give wrong entries for early-mounted items 宋文武
2015-01-03 18:57 ` Ludovic Courtès
2015-01-04 12:50   ` 宋文武
2015-01-04 16:04     ` Ludovic Courtès [this message]
2015-01-08 13:11 ` bug#19491: Fixed 宋文武

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=87387q5y6t.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=19491@debbugs.gnu.org \
    --cc=iyzsong@gmail.com \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

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.