Skip to content

Instantly share code, notes, and snippets.

@donnydavis
Created August 29, 2019 17:21
Show Gist options
  • Save donnydavis/4bcc5c3e2054b3c8d379ef2ff2c233f3 to your computer and use it in GitHub Desktop.
Save donnydavis/4bcc5c3e2054b3c8d379ef2ff2c233f3 to your computer and use it in GitHub Desktop.
KERNEL!="sr[0-9]", GOTO="no_config_drive_end"
# Import FS info
IMPORT{program}="/sbin/blkid -o udev -p %N"
# Get a label if present, otherwise specify one
ENV{ID_FS_LABEL}!="", ENV{fs_name}="%E{ID_FS_LABEL}"
# Global mount options
# Filesystem-specific mount options
ACTION=="add", ENV{fs_name}=="config-2|CONFIG-2", ENV{ID_FS_TYPE}=="iso9660|udf|vfat", RUN+="/usr/bin/ucd --user-data-once"
# Exit
LABEL="no_config_drive_end"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment