tools-hardened/desktop: Modifies un/mounting for run-base.sh

This commit is contained in:
Devan Franchini 2014-10-09 16:35:17 -04:00
parent 301b3bcf25
commit ecc729aa55

View file

@ -7,12 +7,10 @@ unpack_stage3() {
mount_dirs() { mount_dirs() {
mkdir "${ROOTFS}"/usr/portage/ mkdir "${ROOTFS}"/usr/portage/
mount --bind /usr/portage/ "${ROOTFS}"/usr/portage/ mount --rbind /usr/portage/ "${ROOTFS}"/usr/portage/
mount --bind /proc/ "${ROOTFS}"/proc/ mount --rbind /proc/ "${ROOTFS}"/proc/
mount --bind /dev/ "${ROOTFS}"/dev/ mount --rbind /dev/ "${ROOTFS}"/dev/
mount --bind /dev/pts "${ROOTFS}"/dev/pts/ mount --rbind /sys/ "${ROOTFS}"/sys/
mount -t tmpfs shm "${ROOTFS}"/dev/shm
mount --bind /sys/ "${ROOTFS}"/sys/
} }
populate_kernel_src() populate_kernel_src()
@ -135,12 +133,10 @@ cleanup_dirs() {
} }
unmount_dirs() { unmount_dirs() {
umount "${ROOTFS}"/sys/ umount -l "${ROOTFS}"/sys/
umount "${ROOTFS}"/dev/shm umount -l "${ROOTFS}"/dev/
umount "${ROOTFS}"/dev/pts/ umount -l "${ROOTFS}"/proc/
umount "${ROOTFS}"/dev/ umount -l "${ROOTFS}"/usr/portage/
umount "${ROOTFS}"/proc/
umount "${ROOTFS}"/usr/portage/
mkdir "${ROOTFS}"/usr/portage/profiles/ mkdir "${ROOTFS}"/usr/portage/profiles/
echo "gentoo" >> "${ROOTFS}"/usr/portage/profiles/repo_name echo "gentoo" >> "${ROOTFS}"/usr/portage/profiles/repo_name