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 7ED0A138010 for ; Sat, 8 Sep 2012 00:29:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3A6BFE06AF; Sat, 8 Sep 2012 00:28:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 0CBA4E06AF for ; Sat, 8 Sep 2012 00:28:51 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 713FF33C9EB for ; Sat, 8 Sep 2012 00:28:51 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 3074AE543D for ; Sat, 8 Sep 2012 00:28:50 +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: <1347063531.a0877449f3b6193fda1b1d2d6f5fdf34f4096c9d.WilliamH@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: init.d/ X-VCS-Repository: proj/openrc X-VCS-Files: init.d/savecache.in X-VCS-Directories: init.d/ X-VCS-Committer: WilliamH X-VCS-Committer-Name: William Hubbs X-VCS-Revision: a0877449f3b6193fda1b1d2d6f5fdf34f4096c9d X-VCS-Branch: master Date: Sat, 8 Sep 2012 00:28:50 +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: 69c6c407-0e83-45b7-b1e2-1fbd64a72ed2 X-Archives-Hash: 65708984368db76fb2254dcd7361fb67 commit: a0877449f3b6193fda1b1d2d6f5fdf34f4096c9d Author: William Hubbs gmail com> AuthorDate: Sat Sep 8 00:18:51 2012 +0000 Commit: William Hubbs gentoo org> CommitDate: Sat Sep 8 00:18:51 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=a0877449 savecache: make sure $RC_LIBEXECDIR is writable This is needed in case of a read-only root filesystem such as a diskless client. Reported-by: pratyeka.org> X-Gentoo-Bug: 430382 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=430382 --- init.d/savecache.in | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/init.d/savecache.in b/init.d/savecache.in index 373da1f..581be59 100644 --- a/init.d/savecache.in +++ b/init.d/savecache.in @@ -13,6 +13,14 @@ start() return 1 fi fi + if ! checkpath -W "$RC_LIBEXECDIR"; then + ewarn "WARNING: ${RC_LIBEXECDIR} is not writable!" + if ! yesno "${RC_GOINGDOWN}"; then + ewarn "Unable to save deptree cache" + return 1 + fi + return 0 + fi ebegin "Saving dependency cache" local rc= if [ ! -d "$RC_LIBEXECDIR"/cache ]; then