# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2.
-# Latest change: Sat Feb 23 23:43:52 CET 2008 [mika]
+# Latest change: Sun May 25 01:29:21 CEST 2008 [mika]
################################################################################
# colors {{{
vfat_warning(){
DEV=$(echo ${DEVICE%/})
- TMPDEV=$(grep ${DEV} /etc/fstab | awk '{print $1}')
+ TMPDEV=$(grep "[[:space:]]${DEV}[[:space:]]" /etc/fstab | grep -vh '^[[:space:]]*#' | awk '{print $1}')
SYSDEV=$(echo ${TMPDEV%/})
if [ -x /lib/udev/vol_id ] ; then
/lib/udev/vol_id $SYSDEV | grep -q 'FS_TYPE=vfat' || VFAT=1
fi
echo boot >> $DEVICE/grml2usb.filelist
+ # syslinux creates a file named ldlinux.sys:
+ echo "ldlinux.sys" >> ${DEVICE}/grml2usb.filelist
+
if ! [ -r ${DEVICE}/live/filesystem.module ] ; then
GRML_NAME=grml
else
run_syslinux(){
DEV=$(echo ${DEVICE%/})
- TMPDEV=$(grep ${DEV} /etc/fstab | awk '{print $1}')
+ TMPDEV=$(grep "[[:space:]]${DEV}[[:space:]]" /etc/fstab | grep -vh '^[[:space:]]*#' | awk '{print $1}')
SYSDEV=$(echo ${TMPDEV%/})
echo -n "Running syslinux on ${SYSDEV}: "
debugit "debug: syslinux ${SYSDEV}"