X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F41apt_cdrom;h=1a36e7fb96ce4f6fa92aed3f45c5b779bf8db39f;hb=e66f79476042794195978ee641aa7ea0d9ca6e0a;hp=fdde34d325ee1907854823995b65279c093872fa;hpb=fdd8036ba32ad88e83a61191cc4597ae060355d2;p=live-boot-grml.git diff --git a/scripts/live-bottom/41apt_cdrom b/scripts/live-bottom/41apt_cdrom index fdde34d..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 @@ -27,13 +27,21 @@ fi . /scripts/live-functions -log_begin_msg "Adding APT-CDROM source..." +log_begin_msg "Adding APT-CDROM source" -# live-initramfs script +# live-boot script -mkdir -p /root/cdrom -mount -n -o bind /cdrom /root/cdrom -chroot /root apt-cdrom -m add -umount /root/cdrom +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