Debian-installer creates in /etc/fstab lines like: /dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0 /dev/sdb1 /media/usb0 auto rw,user,noauto 0 0
depending on the used method (cd-rom or usb-stick). Those files are superfluous. The following postinstallation script removes them:
ARCHIVO=/etc/fstab if grep "^/dev/sd" ${ARCHIVO} | grep "/media/" | grep "auto" then LINEA1=`grep "^/dev/sd" ${ARCHIVO} | grep "/media/" | grep "auto"` LINEA2="## ${LINEA1}" rpl -q "${LINEA1}" "${LINEA2}" ${ARCHIVO} fi if grep "^/dev/sr" ${ARCHIVO} | grep "/media/cdrom" then LINEA3=`grep "^/dev/" ${ARCHIVO} | grep "/media/cdrom"` LINEA4="## ${LINEA3}" rpl -q "${LINEA3}" "${LINEA4}" ${ARCHIVO} fi Aitor.
_______________________________________________ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng