-
Notifications
You must be signed in to change notification settings - Fork 650
use configdrive #2932
Description
RancherOS Version:
1.5.4
Where are you running RancherOS?
baremetal
I have 2 usb sticks.
The first with the rancher os iso
and another with the cloud config file system that looks like this:
openstack/latest/user_data
https://coreos.com/os/docs/latest/cloud-config-locations.html
with the content:
#cloud-config
rancher:
write_files:
- path: /etc/rc.local
permissions: "0755"
owner: root
content: |
#!/bin/bash
wait-for-docker
if ! blkid | grep -q "RANCHER_STATE"; then
echo "I am working!"
fi
The config drive stick is formatet with: mkfs.vfat -n config-2 -I /dev/sdc
Edit: I got this line in my boot log: https://github.com/rancher/os/blob/master/pkg/init/cloudinit/cloudinit.go#L49 and blkid does not show my usb drive.
Am I right that rancher os should automatically mount the config-2 drive because of this https://github.com/rancher/os/blob/master/os-config.tpl.yml#L86 ?
My target is to setup a baremetal machine without any display or keyboard just with 2 usb sticks one iso and the second the config.
Edit2:
when I use blkid i just see the local disk where i already installed rancheros with the label "RANCHER_STATE" but I am not using that one, I booted from sdc label"RancherOS" what only will show after I did sudo blkid then I see all of them and on my configdrive the sdb the label is not present.
After I did once sudo blkid it works also without sudo!
The output is like this:
/dev/sdb1: UUID="2019-08-22-07-33-27-00" LABEL="RancherOS" TYPE="osp9660" PTUUID="2f6cb907" PTTYPE="dos" PARTUUID="2f6cb907-01"
/dev/sdc: LABEL="config-2" UUID="A458-9D90" TYPE="vfat"