diff -Nurp genkernel-3.4.8.orig/generic/linuxrc genkernel-3.4.8/generic/linuxrc --- genkernel-3.4.8.orig/generic/linuxrc 2007-06-16 03:31:37.000000000 +0200 +++ genkernel-3.4.8/generic/linuxrc 2007-06-16 03:32:20.000000000 +0200 @@ -563,7 +563,11 @@ then union_insert_dir ${UNION} ${NEW_ROOT}/${FS_LOCATION} mkdir ${UNION}/mnt/livecd + if [ ! -e "${UNION}/mnt/cdrom" ]; then + mkdir ${UNION}/mnt/cdrom -p + fi mount --bind ${NEW_ROOT}/${FS_LOCATION} ${UNION}/mnt/livecd + mount --bind ${NEW_ROOT}/mnt/cdrom ${UNION}/mnt/cdrom # Make sure fstab notes livecd is mounted ro. Makes system skip remount which fails on unionfs dirs. sed -e 's|\(.*\s/\s*tmpfs\s*\)defaults\(.*\)|\1defaults,ro\2|' /${UNION}/etc/fstab > /${UNION}/etc/fstab.new