projects
/
live-boot-grml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adding upstream version 2.0~a1.
[live-boot-grml.git]
/
scripts
/
live-bottom
/
41apt_cdrom
diff --git
a/scripts/live-bottom/41apt_cdrom
b/scripts/live-bottom/41apt_cdrom
index
00606d5
..
1a36e7f
100755
(executable)
--- a/
scripts/live-bottom/41apt_cdrom
+++ b/
scripts/live-bottom/41apt_cdrom
@@
-18,7
+18,7
@@
case "${1}" in
;;
esac
;;
esac
-# live-
initramfs
header
+# live-
boot
header
if [ -n "${NOAPTCDROM}" ]
then
if [ -n "${NOAPTCDROM}" ]
then
@@
-29,11
+29,19
@@
fi
log_begin_msg "Adding APT-CDROM source"
log_begin_msg "Adding APT-CDROM source"
-# live-
initramfs
script
+# live-
boot
script
if [ -d /root/cdrom ]
then
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
fi
log_end_msg