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 D74C4138C9D for ; Wed, 29 Apr 2015 19:04:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 868FDE08C1; Wed, 29 Apr 2015 19:04:20 +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 ECE78E08C2 for ; Wed, 29 Apr 2015 19:04:14 +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 1C4B5340BFA for ; Wed, 29 Apr 2015 19:04:14 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0B22E9B0 for ; Wed, 29 Apr 2015 19:04:08 +0000 (UTC) From: "Richard Farina" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Richard Farina" Message-ID: <1430328705.064e285bbe80b527b6a53256382fd40beea0de5b.zerochaos@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: zerochaos X-VCS-Committer-Name: Richard Farina X-VCS-Revision: 064e285bbe80b527b6a53256382fd40beea0de5b X-VCS-Branch: aufs Date: Wed, 29 Apr 2015 19:04:08 +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: 7cbb7421-36a6-444f-a107-f82e0e0e0997 X-Archives-Hash: 660c8721d2f8f15aa4ce7becf0301ec2 commit: 064e285bbe80b527b6a53256382fd40beea0de5b Author: Fernando Reyes (likewhoa) missionaccomplish com> AuthorDate: Fri May 30 02:57:13 2014 +0000 Commit: Richard Farina gentoo org> CommitDate: Wed Apr 29 17:31:45 2015 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=064e285b coding style changes defaults/linuxrc | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/defaults/linuxrc b/defaults/linuxrc index 281de8e..42749d6 100644 --- a/defaults/linuxrc +++ b/defaults/linuxrc @@ -1014,26 +1014,34 @@ verbose_kmsg if [ "${USE_AUFS_NORMAL}" -eq '1' ] then - mkdir -p /${CHROOT}/.unions/memory - mount -o move /memory /${CHROOT}/.unions/memory + UNION_MEMORY=${CHROOT}/.unions/memory + + mkdir -p "${UNION_MEMORY}" + mount --move "${MEMORY}" "${UNION_MEMORY}" test_success "Failed to move aufs /memory into the system root" - for i in mnt/gentoo mnt/livecd /mnt/overlay ${CDROOT_PATH} + + for i in /mnt/gentoo /mnt/livecd /mnt/overlay ${CDROOT_PATH} do - mkdir -p ${CHROOT}/$i - chmod 755 ${CHROOT}/$i + mkdir -p "${CHROOT}${i}" + chmod 755 "${CHROOT}${i}" done + # This will prevent from putting junk on the CHANGESDEV str="" - for i in tmp var/tmp usr/portage/distfiles + 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}" + mkdir -p "${CHROOT}${i}" + chmod 755 "${CHROOT}${i}" + + mount -t tmpfs tmpfs "${CHROOT}${i}" + str="${i} ${str}" done + warn_msg "${str}are mounted in ram" warn_msg "consider saving important files elsewhere" - read -t 3 UNUSEDVAL + + sleep 2 + for i in ${CDROOT_PATH} ${overlay} ${static}; do mount --move ${NEW_ROOT}${i} ${CHROOT}${i} done