Files
sablink-distro/sys-kernel/genkernel/files/genkernel-3.4.8-bind-cdrom-inside-chroot.patch
T
lxnay 01dbe44612 fine tune cdrom binding patch
git-svn-id: http://svn.sabayonlinux.org/overlay@1363 d7aec97c-591d-0410-af39-a8856400b30a
2007-06-16 01:35:12 +00:00

16 lines
763 B
Diff

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