diff options
author | Fernando Reyes (likewhoa) <design@missionaccomplish.com> | 2014-05-30 04:57:13 +0200 |
---|---|---|
committer | Rick Farina (Zero_Chaos) <zerochaos@gentoo.org> | 2015-08-11 14:21:15 -0400 |
commit | 75c9e46754eced6074d864f0bcfe133d7b21f19f (patch) | |
tree | e99d4f1b293d57978acd1d109de8ca21da9e7f3b | |
parent | Better handle on if aufs.modules kernel parameter is used (diff) | |
download | genkernel-75c9e46754eced6074d864f0bcfe133d7b21f19f.tar.gz genkernel-75c9e46754eced6074d864f0bcfe133d7b21f19f.tar.bz2 genkernel-75c9e46754eced6074d864f0bcfe133d7b21f19f.zip |
coding style changes
-rw-r--r-- | defaults/linuxrc | 30 |
1 files 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 |