hypriot / flash

Command line script to flash SD card images of any kind
MIT License
1k stars 176 forks source link

Is it possible to create a /boot/cmdline.txt file? #147

Closed SteveEdson closed 4 years ago

SteveEdson commented 5 years ago

I have a cloud-init setup I use to provision my Pis with and its working great. I want to get started with Kubernetes and I need to create a /boot/cmdline.txt file with the contents:

cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory

Is this possible using the cloud-init config and/or flash tool?

Thanks

SteveEdson commented 5 years ago

Sorry, just spotted it should be possible with

flash -u cloud-init.yaml https://github.com/hypriot/image-builder-rpi/releases/download/v1.10.0/hypriotos-rpi-v1.10.0.img.zip -F cmdline.txt

I'll try that now