[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#19491: /etc/mtab give wrong entries for early-mounted items.
From: |
Ludovic Courtès |
Subject: |
bug#19491: /etc/mtab give wrong entries for early-mounted items. |
Date: |
Sun, 04 Jan 2015 17:04:58 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
宋文武 <address@hidden> skribis:
> Ludovic Courtès <address@hidden> writes:
>
>> 宋文武 <address@hidden> 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’.