X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F41apt_cdrom;h=eb7fbd88bf01b8114628fb479754355cb8ee855b;hb=29c5edc37612c351083a5a2fbe034dbeb31dfb55;hp=9998e97934568b7b43b80f186748d75299f45a08;hpb=5f0f3b0c36d433a462176f970d371c77c3020749;p=live-boot-grml.git diff --git a/scripts/live-bottom/41apt_cdrom b/scripts/live-bottom/41apt_cdrom index 9998e97..eb7fbd8 100755 --- a/scripts/live-bottom/41apt_cdrom +++ b/scripts/live-bottom/41apt_cdrom @@ -31,6 +31,17 @@ log_begin_msg "Adding APT-CDROM source" # live-initramfs script -chroot /root apt-cdrom -m add +if [ -d /root/cdrom ] +then + 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