mirror of
https://github.com/rancher/os.git
synced 2025-06-27 07:16:48 +00:00
16 lines
358 B
Bash
Executable File
16 lines
358 B
Bash
Executable File
#!/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}
|