Adding debian version 2.0~a1-1.
[debian-live-boot/hramrach.git] / scripts / live-bottom / 41apt_cdrom
blob1a36e7fb96ce4f6fa92aed3f45c5b779bf8db39f
1 #!/bin/sh
3 #set -e
5 # initramfs-tools header
7 PREREQ=""
9 prereqs()
11 echo "${PREREQ}"
14 case "${1}" in
15 prereqs)
16 prereqs
17 exit 0
19 esac
21 # live-boot header
23 if [ -n "${NOAPTCDROM}" ]
24 then
25 exit 0
28 . /scripts/live-functions
30 log_begin_msg "Adding APT-CDROM source"
32 # live-boot script
34 if [ -d /root/cdrom ]
35 then
36 mount -n -o bind /sys /root/sys
37 mount -n -o bind /proc /root/proc
38 mount -n -o bind /dev /root/dev
40 chroot /root apt-cdrom -o Acquire::cdrom::AutoDetect=false -m add
42 umount /root/dev
43 umount /root/proc
44 umount /root/sys
47 log_end_msg