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 5AF771391DB for ; Mon, 17 Mar 2014 19:32:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E286AE0A64; Mon, 17 Mar 2014 19:32:13 +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 79CB3E0A64 for ; Mon, 17 Mar 2014 19:32:13 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9461D33EECB for ; Mon, 17 Mar 2014 19:32:12 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 1E5C518875 for ; Mon, 17 Mar 2014 19:32:11 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1395084724.d0f0ed18531a40132a30a801b98a49ba0ee56335.robbat2@gentoo> Subject: [gentoo-commits] proj/genkernel:aufs commit in: defaults/ X-VCS-Repository: proj/genkernel X-VCS-Files: defaults/linuxrc X-VCS-Directories: defaults/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: d0f0ed18531a40132a30a801b98a49ba0ee56335 X-VCS-Branch: aufs Date: Mon, 17 Mar 2014 19:32:11 +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: d315e6e9-6381-4f87-9233-323acb9bce08 X-Archives-Hash: e9575d274d82411479564ad3fbbdd964 commit: d0f0ed18531a40132a30a801b98a49ba0ee56335 Author: Robin H. Johnson gentoo org> AuthorDate: Mon Mar 17 19:32:04 2014 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Mon Mar 17 19:32:04 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commit;h=d0f0ed18 Refactor tmpfs creation to aufs env. Signed-off-by: Robin H. Johnson gentoo.org> --- defaults/linuxrc | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/defaults/linuxrc b/defaults/linuxrc index 7758389..71a81dc 100644 --- a/defaults/linuxrc +++ b/defaults/linuxrc @@ -975,17 +975,21 @@ if [ "${USE_AUFS_NORMAL}" -eq '1' ] then mkdir -p /${CHROOT}/.unions/memory 2>/dev/null mount -o move /memory /${CHROOT}/.unions/memory || echo '*: Failed to move aufs /memory into the system root!' - for i in tmp var/tmp mnt/gentoo mnt/livecd + for i in mnt/gentoo mnt/livecd do mkdir -p ${CHROOT}/$i chmod 755 ${CHROOT}/$i done # This will prevent from putting junk on the CHANGESDEV - mkdir -p ${CHROOT}/usr/portage/distfiles - mount -t tmpfs tmpfs ${CHROOT}/var/tmp - mount -t tmpfs tmpfs ${CHROOT}/tmp - mount -t tmpfs tmpfs ${CHROOT}/usr/portage/distfiles - warn_msg "/tmp /var/tmp /usr/portage/distfiles are mounted in ram" + str="" + for i in tmp var/tmp usr/portage/distfiles + do + mkdir -p ${CHROOT}/$i + chmod 755 ${CHROOT}/$i + mount -t tmpfs tmpfs ${CHROOT}/$i + str="${str} ${i}" + done + warn_msg "${str}are mounted in ram" warn_msg "consider saving important files elsewhere..." read -t 3 UNUSEDVAL mount --bind ${NEW_ROOT}${CDROOT_PATH} ${CHROOT}${CDROOT_PATH}