2014-04-04 02:50:49 +04: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 23:07:52 +04: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-04 02:50:49 +04:00
|
|
|
|
|
|
|
# Addtionally support virtfs from QEMU
|
2014-06-17 23:07:52 +04:00
|
|
|
SUBSYSTEM=="virtio", DRIVER=="9pnet_virtio", ATTR{mount_tag}=="config-2", TAG+="systemd", ENV{SYSTEMD_WANTS}+="media-configvirtfs.mount"
|
2014-04-04 02:50:49 +04:00
|
|
|
|
|
|
|
LABEL="coreos_configdrive_end"
|