From f15425841e586177b6f8ced6c91416a32cdf43a7 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Thu, 30 Aug 2012 18:20:44 +0200 Subject: [PATCH] mount /mnt/cdrom inside target chroot even when aufs/unionfs is disabled --- ChangeLog | 3 +++ defaults/linuxrc | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index dde71f6..a02ce76 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ # Distributed under the GPL v2 # $Id$ + 30 Aug 2012; Fabio Erculiani defaults/linuxrc: + mount /mnt/cdrom inside target chroot even when aufs/unionfs is disabled + 14 Aug 2012; Richard Yao genkernel: Bump version to 3.4.41 diff --git a/defaults/linuxrc b/defaults/linuxrc index f434339..4a12c21 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.*: ||') -- 2.26.2