;;
esac
-# live-initramfs header
+# live-boot header
if [ -n "${NOAPTCDROM}" ]
then
log_begin_msg "Adding APT-CDROM source"
-# live-initramfs script
+# live-boot script
if [ -d /root/cdrom ]
then
- chroot /root apt-cdrom -m add
+ mount -n -o bind /sys /root/sys
+ mount -n -o bind /proc /root/proc
+ mount -n -o bind /dev /root/dev
+
+ chroot /root apt-cdrom -o Acquire::cdrom::AutoDetect=false -m add
+
+ umount /root/dev
+ umount /root/proc
+ umount /root/sys
fi
log_end_msg