diff options
author | Fernando Reyes (likewhoa) <design@missionaccomplish.com> | 2014-05-29 10:15:13 +0200 |
---|---|---|
committer | Rick Farina (Zero_Chaos) <zerochaos@gentoo.org> | 2015-08-11 14:21:15 -0400 |
commit | 5f8969492c9aafd161a5d146ea7fb87e9d2d4850 (patch) | |
tree | f1e68b7b2b9362a568d743667c674ec88a1c589f /defaults/linuxrc | |
parent | This fixes /etc/fstab from not working while in setup_aufs function and instead (diff) | |
download | genkernel-5f8969492c9aafd161a5d146ea7fb87e9d2d4850.tar.gz genkernel-5f8969492c9aafd161a5d146ea7fb87e9d2d4850.tar.bz2 genkernel-5f8969492c9aafd161a5d146ea7fb87e9d2d4850.zip |
Removing --bind on some directories to prevent ${NEW_ROOT} path
from existing in favor of --move.
Got rid of the no longer required subshell call for aufs ${NEW_ROOT}
overlay.
Diffstat (limited to 'defaults/linuxrc')
-rw-r--r-- | defaults/linuxrc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/defaults/linuxrc b/defaults/linuxrc index d5b424c3..0a91c58d 100644 --- a/defaults/linuxrc +++ b/defaults/linuxrc @@ -995,7 +995,7 @@ then mkdir -p /${CHROOT}/.unions/memory mount -o move /memory /${CHROOT}/.unions/memory test_success "Failed to move aufs /memory into the system root" - for i in mnt/gentoo mnt/livecd ${CDROOT_PATH} + for i in mnt/gentoo mnt/livecd /mnt/overlay ${CDROOT_PATH} do mkdir -p ${CHROOT}/$i chmod 755 ${CHROOT}/$i @@ -1012,8 +1012,9 @@ then 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} - mount --bind ${NEW_ROOT}/mnt/livecd ${CHROOT}/mnt/livecd + for i in ${CDROOT_PATH} ${overlay} ${static}; do + mount --move ${NEW_ROOT}${i} ${CHROOT}${i} + done fi good_msg "Booting (initramfs)" |