X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F41apt_cdrom;h=1a36e7fb96ce4f6fa92aed3f45c5b779bf8db39f;hb=a47e683b094c749bb6c62e582ba15f26c5d21c00;hp=00606d5006f55ec02c8316db0ba75046c6c8a6ce;hpb=11f6195097148e7b5738ffe29dc16061b2cfd770;p=live-boot-grml.git diff --git a/scripts/live-bottom/41apt_cdrom b/scripts/live-bottom/41apt_cdrom index 00606d5..1a36e7f 100755 --- a/scripts/live-bottom/41apt_cdrom +++ b/scripts/live-bottom/41apt_cdrom @@ -18,7 +18,7 @@ case "${1}" in ;; esac -# live-initramfs header +# live-boot header if [ -n "${NOAPTCDROM}" ] then @@ -29,11 +29,19 @@ fi 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