Code review comment for lp:~sylvain-pineau/checkbox/add_removable_attribute_to_udev_resource

Revision history for this message
Daniel Manrique (roadmr) wrote :

Just a comment, we already have a optical_drive resource that tells if the CD and/or DVD readers are "writable" or "readonly". Job definition is as follows:

name: optical_drive
plugin: resource
command: for media in CD DVD; do wodim -prcap 2>/dev/null | grep -q -i "Does write $media" && echo "$media: writable" || echo "$media: readonly"; done
description: Create resource info for supported optical actions

« Back to merge proposal