12345678910111213141516 |
- #!/bin/bash
- set -x -e
- MOUNT_POINT=/media/config-2
- CONFIG_DEV=$(ros dev "LABEL=config-2")
- mkdir -p ${MOUNT_POINT}
- if [ -e "${CONFIG_DEV}" ]; then
- mount -t iso9660,vfat ${CONFIG_DEV} ${MOUNT_POINT}
- else
- mount -t 9p -o trans=virtio,version=9p2000.L config-2 ${MOUNT_POINT} 2>/dev/null || true
- fi
- cloud-init-save -network=${CLOUD_INIT_NETWORK:-true}
|