From: Fabio Erculiani Date: Thu, 30 Aug 2012 16:20:44 +0000 (+0200) Subject: mount /mnt/cdrom inside target chroot even when aufs/unionfs is disabled X-Git-Tag: v3.4.42~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f15425841e586177b6f8ced6c91416a32cdf43a7;p=genkernel.git mount /mnt/cdrom inside target chroot even when aufs/unionfs is disabled --- 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.*: ||')