From: gobo72 Date: Fri, 4 Mar 2011 23:28:04 +0000 (+0000) Subject: Enlevé entrées cdrom et DVD dans fstab si la variable CDROM n'est pas initialisée X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=5850e27b7e9777b0dc4853a2b8af4d3e7c73849e;p=hvlinux.git Enlevé entrées cdrom et DVD dans fstab si la variable CDROM n'est pas initialisée --- diff --git a/stage1/create-config-files b/stage1/create-config-files index 2c782fa..108504f 100755 --- a/stage1/create-config-files +++ b/stage1/create-config-files @@ -19,9 +19,14 @@ if [ -n "${SWAP_PARTITION}" ]; then fi echo "${LFS_PARTITION} / reiserfs defaults,noatime 0 0" >> ${LFS}/etc/fstab -cat >> ${LFS}/etc/fstab << "EOF" +if [ -n "${CDROM}" ]; then + cat >> ${LFS}/etc/fstab << "EOF" /dev/cdrom /media/cdrom auto ro,noauto,users 0 0 /dev/dvd /media/dvd auto ro,noauto,users 0 0 +EOF +fi + +cat >> ${LFS}/etc/fstab << "EOF" proc /proc proc defaults 0 0 sysfs /sys sysfs defaults 0 0 devpts /dev/pts devpts gid=4,mode=620 0 0