From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#19491: /etc/mtab give wrong entries for early-mounted items. Date: Sun, 04 Jan 2015 17:04:58 +0100 Message-ID: <87387q5y6t.fsf@gnu.org> References: <877fx5crcz.fsf@gmail.com> <87egrbbskb.fsf@gnu.org> <87k312oglc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7nft-0003mu-Pt for bug-guix@gnu.org; Sun, 04 Jan 2015 11:05:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y7nfq-0008CZ-LS for bug-guix@gnu.org; Sun, 04 Jan 2015 11:05:05 -0500 Received: from debbugs.gnu.org ([140.186.70.43]:55388) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7nfq-0008CC-Iv for bug-guix@gnu.org; Sun, 04 Jan 2015 11:05:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y7nfp-0000y5-Sd for bug-guix@gnu.org; Sun, 04 Jan 2015 11:05:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87k312oglc.fsf@gmail.com> ("=?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?="'s message of "Sun, 04 Jan 2015 20:50:07 +0800") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Cc: 19491@debbugs.gnu.org =E5=AE=8B=E6=96=87=E6=AD=A6 skribis: > Ludovic Court=C3=A8s writes: > >> =E5=AE=8B=E6=96=87=E6=AD=A6 skribis: >> >>> Notably, I have: >>> /dev/sda1 /root ext4 rw,relatime,data=3Dordered 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-ReleaseNo= tes > > Debian make this default at 2011: > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D494001 OK, it sounds like it=E2=80=99s 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=E2=80=99.