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 6176A138247 for ; Thu, 9 Oct 2014 20:38:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6F5FAE08F0; Thu, 9 Oct 2014 20:38:40 +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 F242EE08F0 for ; Thu, 9 Oct 2014 20:38:39 +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 E716D340432 for ; Thu, 9 Oct 2014 20:38:37 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9890976D2 for ; Thu, 9 Oct 2014 20:38:36 +0000 (UTC) From: "Devan Franchini" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Devan Franchini" Message-ID: <1412886917.ecc729aa55e0e4424daa20d6471b8cbcf305c99a.twitch153@gentoo> Subject: [gentoo-commits] proj/releng:master commit in: tools-hardened/desktop/ X-VCS-Repository: proj/releng X-VCS-Files: tools-hardened/desktop/run-base.sh X-VCS-Directories: tools-hardened/desktop/ X-VCS-Committer: twitch153 X-VCS-Committer-Name: Devan Franchini X-VCS-Revision: ecc729aa55e0e4424daa20d6471b8cbcf305c99a X-VCS-Branch: master Date: Thu, 9 Oct 2014 20:38:36 +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: 353e2f6c-a1c7-40d2-97d3-bfb9e30af8d3 X-Archives-Hash: 497df78565a0550767fbee0332508c46 commit: ecc729aa55e0e4424daa20d6471b8cbcf305c99a Author: Devan Franchini gentoo org> AuthorDate: Thu Oct 9 20:35:17 2014 +0000 Commit: Devan Franchini gentoo org> CommitDate: Thu Oct 9 20:35:17 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/releng.git;a=commit;h=ecc729aa tools-hardened/desktop: Modifies un/mounting for run-base.sh --- tools-hardened/desktop/run-base.sh | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/tools-hardened/desktop/run-base.sh b/tools-hardened/desktop/run-base.sh index 24326b3..89e9618 100755 --- a/tools-hardened/desktop/run-base.sh +++ b/tools-hardened/desktop/run-base.sh @@ -7,12 +7,10 @@ unpack_stage3() { mount_dirs() { mkdir "${ROOTFS}"/usr/portage/ - mount --bind /usr/portage/ "${ROOTFS}"/usr/portage/ - mount --bind /proc/ "${ROOTFS}"/proc/ - mount --bind /dev/ "${ROOTFS}"/dev/ - mount --bind /dev/pts "${ROOTFS}"/dev/pts/ - mount -t tmpfs shm "${ROOTFS}"/dev/shm - mount --bind /sys/ "${ROOTFS}"/sys/ + mount --rbind /usr/portage/ "${ROOTFS}"/usr/portage/ + mount --rbind /proc/ "${ROOTFS}"/proc/ + mount --rbind /dev/ "${ROOTFS}"/dev/ + mount --rbind /sys/ "${ROOTFS}"/sys/ } populate_kernel_src() @@ -135,12 +133,10 @@ cleanup_dirs() { } unmount_dirs() { - umount "${ROOTFS}"/sys/ - umount "${ROOTFS}"/dev/shm - umount "${ROOTFS}"/dev/pts/ - umount "${ROOTFS}"/dev/ - umount "${ROOTFS}"/proc/ - umount "${ROOTFS}"/usr/portage/ + umount -l "${ROOTFS}"/sys/ + umount -l "${ROOTFS}"/dev/ + umount -l "${ROOTFS}"/proc/ + umount -l "${ROOTFS}"/usr/portage/ mkdir "${ROOTFS}"/usr/portage/profiles/ echo "gentoo" >> "${ROOTFS}"/usr/portage/profiles/repo_name