GNU bug report logs - #19491
/etc/mtab give wrong entries for early-mounted items.

Previous Next

Package: guix;

Reported by: 宋文武 <iyzsong <at> gmail.com>

Date: Fri, 2 Jan 2015 12:14:02 UTC

Severity: normal

Done: 宋文武 <iyzsong <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 19491 in the body.
You can then email your comments to 19491 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#19491; Package guix. (Fri, 02 Jan 2015 12:14:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to 宋文武 <iyzsong <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Fri, 02 Jan 2015 12:14:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: 宋文武 <iyzsong <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: /etc/mtab give wrong entries for early-mounted items.
Date: Fri, 02 Jan 2015 20:13:48 +0800
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?




Information forwarded to bug-guix <at> gnu.org:
bug#19491; Package guix. (Sat, 03 Jan 2015 18:58:02 GMT) Full text and rfc822 format available.

Message #8 received at 19491 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: 宋文武 <iyzsong <at> gmail.com>
Cc: 19491 <at> debbugs.gnu.org
Subject: Re: bug#19491: /etc/mtab give wrong entries for early-mounted items.
Date: Sat, 03 Jan 2015 19:57:40 +0100
宋文武 <iyzsong <at> 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?

Thanks,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#19491; Package guix. (Sun, 04 Jan 2015 12:51:02 GMT) Full text and rfc822 format available.

Message #11 received at 19491 <at> debbugs.gnu.org (full text, mbox):

From: 宋文武 <iyzsong <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 19491 <at> debbugs.gnu.org
Subject: Re: bug#19491: /etc/mtab give wrong entries for early-mounted items.
Date: Sun, 04 Jan 2015 20:50:07 +0800
Ludovic Courtès <ludo <at> gnu.org> writes:

> 宋文武 <iyzsong <at> 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
>
> Thanks,
> Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#19491; Package guix. (Sun, 04 Jan 2015 16:05:01 GMT) Full text and rfc822 format available.

Message #14 received at 19491 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: 宋文武 <iyzsong <at> gmail.com>
Cc: 19491 <at> debbugs.gnu.org
Subject: Re: bug#19491: /etc/mtab give wrong entries for early-mounted items.
Date: Sun, 04 Jan 2015 17:04:58 +0100
宋文武 <iyzsong <at> gmail.com> skribis:

> Ludovic Courtès <ludo <at> gnu.org> writes:
>
>> 宋文武 <iyzsong <at> 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 sent to 宋文武 <iyzsong <at> gmail.com>:
You have taken responsibility. (Thu, 08 Jan 2015 13:11:02 GMT) Full text and rfc822 format available.

Notification sent to 宋文武 <iyzsong <at> gmail.com>:
bug acknowledged by developer. (Thu, 08 Jan 2015 13:11:02 GMT) Full text and rfc822 format available.

Message #19 received at 19491-done <at> debbugs.gnu.org (full text, mbox):

From: 宋文武 <iyzsong <at> gmail.com>
To: 19491-done <at> debbugs.gnu.org
Subject: bug#19491: Fixed
Date: Thu, 08 Jan 2015 21:11:02 +0800
Fixed in commit 9331ba5d
by make /etc/mtab a symlink to /proc/self/mounts.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 06 Feb 2015 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 95 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.