hypriot / flash

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

Append arguments to /boot/cmdline.txt #193

Open killerwhile opened 3 years ago

killerwhile commented 3 years ago

It might be interesting in some scenarii to add extra parameters to /boot/cmdline.txt, for instance cgroup_enable=memory cgroup_memory=1 to enable docker on R-pi.

The new feature proposes --cmdlineargs arguments to flash to achieve this exact goal.

LS80 commented 3 years ago

This would also be useful for me :+1: Currently I use --file to copy a complete version of cmdline.txt, but then you can't also copy a network-config file because you can only specify --file once. Perhaps it would also be useful to have a dedicated flag to copy a network-config file.

killerwhile commented 3 years ago

Allowing to have more than one --file is also a good idea! Out of the scope of this PR though.