mount /mnt/cdrom inside target chroot even when aufs/unionfs is disabled
authorFabio Erculiani <lxnay@sabayon.org>
Thu, 30 Aug 2012 16:20:44 +0000 (18:20 +0200)
committerFabio Erculiani <lxnay@sabayon.org>
Thu, 30 Aug 2012 16:20:44 +0000 (18:20 +0200)
ChangeLog
defaults/linuxrc

index dde71f69d6c4949720d8c76a4cf152a7a0ca2288..a02ce7688709537d729c563fd061d1827982f339 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
 
index f434339d128d00f5826f20ec19d2504e79777dcd..4a12c21cddd682cf6b19dddc72f0623c705d17c7 100755 (executable)
@@ -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.*: ||')