summaryrefslogtreecommitdiff
path: root/scripts/live-bottom/41apt_cdrom
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/live-bottom/41apt_cdrom')
-rwxr-xr-xscripts/live-bottom/41apt_cdrom5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/live-bottom/41apt_cdrom b/scripts/live-bottom/41apt_cdrom
index 9998e97..00606d5 100755
--- a/scripts/live-bottom/41apt_cdrom
+++ b/scripts/live-bottom/41apt_cdrom
@@ -31,6 +31,9 @@ log_begin_msg "Adding APT-CDROM source"
# live-initramfs script
-chroot /root apt-cdrom -m add
+if [ -d /root/cdrom ]
+then
+ chroot /root apt-cdrom -m add
+fi
log_end_msg