Closed danielbodart closed 6 months ago
So I managed to find a work around with cloud-init
write_files:
- container: network
path: /etc/dhcpcd.conf
content: |
hostname
append: true
- container: network
path: /etc/hostname
content: |
some-name
hostname: some-name
I think that generating dhcpd.conf config always, not only in Wi-Fi use like proposed in https://github.com/burmilla/os/issues/158#issuecomment-1692841749 probably is simplest solution and that most likely will solve old issue #52 too.
BurmillaOS Version: (ros os version) v2.0.0-rc2
Where are you running BurmillaOS? (docker-machine, AWS, GCE, baremetal, etc.) baremetal
Which processor architecture you are using? amd64
Do you use some extra hardware? (GPU, etc)? External USB hard drive (/dev/sda)
Which console you use (default, ubuntu, centos, etc..) default
Do you use some service(s) which are not enabled by default? No
Have you installed some extra tools to console? No
Do you use some other customizations? No
Please share copy of your cloud-init (remember remove all sensitive data first)
So I can see maybe 2 issues with the system docker container image:
/etc/dhcpcd.conf
file inside the network container,hostname
is commented out:So my first question is, what is the recommended way of changing a file like that? Also should that file be volume mounted to the host like other key files in the
/etc
/etc/hostname
file in the network container does not match the/etc/hostname
on the host:So again my question is should this be volume mounted to the host?
My gut is that both files should be volume mounted by default so that in cloud-init it would be very easy to modify without having to call system-docker but I am no expert, you are!