2014-04-03 15:50:49 -07:00
|
|
|
# Automatically trigger configdrive mounting.
|
|
|
|
|
|
|
|
ACTION!="add|change", GOTO="coreos_configdrive_end"
|
|
|
|
|
|
|
|
# A normal config drive. Block device formatted with iso9660 or fat
|
2014-06-17 12:07:52 -07:00
|
|
|
SUBSYSTEM=="block", ENV{ID_FS_TYPE}=="iso9660|vfat", ENV{ID_FS_LABEL}=="config-2", TAG+="systemd", ENV{SYSTEMD_WANTS}+="media-configdrive.mount"
|
2014-04-03 15:50:49 -07:00
|
|
|
|
|
|
|
# Addtionally support virtfs from QEMU
|
2014-06-17 12:07:52 -07:00
|
|
|
SUBSYSTEM=="virtio", DRIVER=="9pnet_virtio", ATTR{mount_tag}=="config-2", TAG+="systemd", ENV{SYSTEMD_WANTS}+="media-configvirtfs.mount"
|
2014-04-03 15:50:49 -07:00
|
|
|
|
|
|
|
LABEL="coreos_configdrive_end"
|