diff options
author | 2012-08-30 18:20:44 +0200 | |
---|---|---|
committer | 2012-08-30 18:20:44 +0200 | |
commit | f15425841e586177b6f8ced6c91416a32cdf43a7 (patch) | |
tree | 611ad9a65d7b48c6e0640370e7ac17ffad3faab4 | |
parent | Make root_trim work with crypt_root_key (diff) | |
download | genkernel-f15425841e586177b6f8ced6c91416a32cdf43a7.tar.gz genkernel-f15425841e586177b6f8ced6c91416a32cdf43a7.tar.bz2 genkernel-f15425841e586177b6f8ced6c91416a32cdf43a7.zip |
mount /mnt/cdrom inside target chroot even when aufs/unionfs is disabled
-rw-r--r-- | ChangeLog | 3 | ||||
-rwxr-xr-x | defaults/linuxrc | 5 |
2 files changed, 8 insertions, 0 deletions
@@ -5,6 +5,9 @@ # Distributed under the GPL v2 # $Id$ + 30 Aug 2012; Fabio Erculiani <lxnay@gentoo.org> defaults/linuxrc: + mount /mnt/cdrom inside target chroot even when aufs/unionfs is disabled + 14 Aug 2012; Richard Yao <ryao@gentoo.org> genkernel: Bump version to 3.4.41 diff --git a/defaults/linuxrc b/defaults/linuxrc index f434339d..4a12c21c 100755 --- a/defaults/linuxrc +++ b/defaults/linuxrc @@ -822,6 +822,11 @@ then mkdir initramfs proc tmp sys run 2>/dev/null chmod 1777 tmp + # have handy /mnt/cdrom (CDROOT_PATH) as well + _new_cdroot="${NEW_ROOT}${CDROOT_PATH}" + [ ! -d "${_new_cdroot}" ] && mkdir -p "${_new_cdroot}" + mount --bind "${CDROOT_PATH}" "${_new_cdroot}" + fi #UML=$(cat /proc/cpuinfo|grep UML|sed -e 's|model name.*: ||') |