From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4F3221396D9 for ; Tue, 14 Nov 2017 21:43:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 69901E0E85; Tue, 14 Nov 2017 21:43:33 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3854BE0E85 for ; Tue, 14 Nov 2017 21:43:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AB57E33BF51 for ; Tue, 14 Nov 2017 21:43:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 19D8F99E6 for ; Tue, 14 Nov 2017 21:43:30 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1510695663.318e87348168e37d78f433d3ff06288ad8ccf15c.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: conf.d/, init.d/, / X-VCS-Repository: proj/openrc X-VCS-Files: NEWS.md conf.d/mtab init.d/mtab.in X-VCS-Directories: init.d/ conf.d/ / X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 318e87348168e37d78f433d3ff06288ad8ccf15c X-VCS-Branch: master Date: Tue, 14 Nov 2017 21:43:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 91519341-e6c6-4c72-9663-2912b550dfd3 X-Archives-Hash: c3e34a368ebbc8f3c88abb6030d8a73d commit: 318e87348168e37d78f433d3ff06288ad8ccf15c Author: William Hubbs gmail com> AuthorDate: Tue Nov 14 20:11:57 2017 +0000 Commit: William Hubbs gentoo org> CommitDate: Tue Nov 14 21:41:03 2017 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=318e8734 strongly encourage Linux users to not make /etc/mtab a flat file The OpenRC team does not currently know of any modern linux tools that require /etc/mtab to be a flat file, so this puts users on notice that the mtab service will be removed in the future. NEWS.md | 15 +++++++++++++++ conf.d/mtab | 14 +++++++++++--- init.d/mtab.in | 4 ++++ 3 files changed, 30 insertions(+), 3 deletions(-) diff --git a/NEWS.md b/NEWS.md index 1a98da2a..9982e9bd 100644 --- a/NEWS.md +++ b/NEWS.md @@ -3,6 +3,21 @@ This file will contain a list of notable changes for each release. Note the information in this file is in reverse order. +## OpenRC 0.35 + +Consider this your second notification with regard to /etc/mtab being a +file instead of a symbolic link. + +In this version, the mtab service will complain loudly if you have +mtab_is_file set to yes and recommend that you change this to no and +restart the mtab service to migrate /etc/mtab to a symbolic link. + +If there is a valid technical reason to keep /etc/mtab as a flat file +instead of a symbolic link to /proc/self/mounts, we are interested and +we will keep the support in that case. Please open an issue and let us +know however. Otherwise, consider this your final notice that the mtab +service will be removed in the future. + ## OpenRC 0.33 This version removes the "service" binary which was just a copy of diff --git a/conf.d/mtab b/conf.d/mtab index 9e16d9b3..f58fad6c 100644 --- a/conf.d/mtab +++ b/conf.d/mtab @@ -1,5 +1,13 @@ +# As far as we are aware, there are no modern linux tools or use cases +# which require /etc/mtab to be a separate file from /proc/self/mounts, +# so this setting should be commented out. +# If it is set to yes, please comment it out and run this command: +# # rc-service mtab restart +# In the future, the mtab service will be removed since we are not aware +# of any need to manipulate /etc/mtab as a separate file from +# /proc/self/mounts. +# If you have a technical reason we should keep this support, please +# open an issue at https://github.com/openrc/openrc/issues and let us +# know about your situation. # This setting controls whether /etc/mtab is a file or symbolic link. -# Most of the time, you shouldn't touch this. However, if the default -# breaks your system in some way, please see the NEWS.md file that comes -# with OpenRC for the actions to take. # mtab_is_file=no diff --git a/init.d/mtab.in b/init.d/mtab.in index 9e0c1a6e..bac8230f 100644 --- a/init.d/mtab.in +++ b/init.d/mtab.in @@ -31,6 +31,10 @@ start() einfo "Creating mtab symbolic link" ln -snf /proc/self/mounts /etc/mtab else + ewarn "The ${RC_SVCNAME} service will be removed in the future." + ewarn "Please change the mtab_is_file setting to no and run" + ewarn "# rc-service mtab restart" + ewarn "to create the mtab symbolic link." [ -L /etc/mtab ] && ewarn "Removing /etc/mtab symbolic link" rm -f /etc/mtab einfo "Creating mtab file"