From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 6B20C138A1C for ; Thu, 20 Nov 2014 17:02:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C136FE08F5; Thu, 20 Nov 2014 17:02:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 710C3E08F5 for ; Thu, 20 Nov 2014 17:02:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 905F43402B7 for ; Thu, 20 Nov 2014 17:02:11 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2368BA8AE for ; Thu, 20 Nov 2014 17:02:10 +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: <1416502553.8d0ca13fbd38e782bae655eca6646dabc8d63899.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: init.d/ X-VCS-Repository: proj/openrc X-VCS-Files: init.d/devfs.in X-VCS-Directories: init.d/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 8d0ca13fbd38e782bae655eca6646dabc8d63899 X-VCS-Branch: master Date: Thu, 20 Nov 2014 17:02:10 +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: 3798e33b-8045-4a79-889f-4caf875c66be X-Archives-Hash: 3930cd9583d0d21d709c002aab631584 commit: 8d0ca13fbd38e782bae655eca6646dabc8d63899 Author: William Hubbs gmail com> AuthorDate: Thu Nov 20 16:55:53 2014 +0000 Commit: William Hubbs gentoo org> CommitDate: Thu Nov 20 16:55:53 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=8d0ca13f devfs: optionally add missing symbolic links If symbolic links for /dev/{fd,stdin,stdout,stderr,core} do not exist once /dev is mounted, we should create them. --- init.d/devfs.in | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/init.d/devfs.in b/init.d/devfs.in index bcdbdcd..5af68f9 100644 --- a/init.d/devfs.in +++ b/init.d/devfs.in @@ -69,7 +69,14 @@ seed_dev() # so udev can add its start-message to dmesg [ -c /dev/kmsg ] || mknod -m 660 /dev/kmsg c 1 11 - # Mount required stuff as user may not have then in /etc/fstab + # extra symbolic links not provided by default + [ -e /dev/fd ] || ln -snf /proc/self/fd /dev/fd + [ -e /dev/stdin ] || ln -snf /proc/self/fd/0 /dev/stdin + [ -e /dev/stdout ] || ln -snf /proc/self/fd/1 /dev/stdout + [ -e /dev/stderr ] || ln -snf /proc/self/fd/2 /dev/stderr + [ -e /proc/kcore ] && ln -snf /proc/kcore /dev/core + + # Mount required directories as user may not have them in /etc/fstab for x in \ "mqueue /dev/mqueue 1777 ,nodev mqueue" \ "devpts /dev/pts 0755 ,gid=5,mode=0620 devpts" \