Evan, your partman patch seems wrong to me. The "cut" part leaves only the device name through, so it's too late to grep for fs type afterwards. You might want to do something like this (not tested):
CDDEV=$(grep " /cdrom \(iso9660\|udf\) " /proc/mounts | cut -d ' ' -f 1 | grep -v "^/dev/loop")
Evan, your partman patch seems wrong to me. The "cut" part leaves only the device name through, so it's too late to grep for fs type afterwards. You might want to do something like this (not tested):
CDDEV=$(grep " /cdrom \(iso9660\|udf\) " /proc/mounts | cut -d ' ' -f 1 | grep -v "^/dev/loop")