Last active
June 5, 2017 01:15
-
-
Save sigma/0c2127576407a635fcca to your computer and use it in GitHub Desktop.
#coreos ovfenv files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Automatically trigger ovfenv mounting. | |
ACTION!="add|change", GOTO="coreos_ovfenv_end" | |
# A normal config drive. Block device formatted with iso9660 or fat | |
SUBSYSTEM=="block", ENV{ID_FS_TYPE}=="iso9660|vfat", ENV{ID_FS_LABEL}=="OVF ENV", TAG+="systemd", ENV{SYSTEMD_WANTS}+="media-ovfenv.mount" | |
LABEL="coreos_ovfenv_end" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
core@localhost ~ $ sudo blkid /dev/sr0 | |
/dev/sr0: UUID="2015-02-11-12-20-19-00" LABEL="OVF ENV" TYPE="iso9660" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Wants=user-config-ovfenv.service | |
Before=user-config-ovfenv.service | |
# Only mount ovfenv drive block devices automatically in virtual machines | |
ConditionVirtualization=|vm | |
[Mount] | |
What=LABEL="OVF ENV" | |
Where=/media/ovfenv | |
Options=ro |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment