Hexxeh / rpi-update

An easier way to update the firmware of your Raspberry Pi
MIT License
1.94k stars 232 forks source link

Support FW_SUBDIR a.k.a. os_prefix #295

Closed pelwell closed 4 years ago

pelwell commented 4 years ago

The FW_SUBDIR environment variable is equivalent to the os_prefix config setting, except that it is required to be the name of a directory. By default, rpi-update will initialise FW_SUBDIR from the os_prefix setting used to boot the device. A different subdirectory can be updated by specifying a value for FW_SUBDIR in the environment, e.g.

sudo FW_SUBDIR=safe rpi-update

To specify explicitly that no subdirectory is to be used, i.e. to force installation into /boot, use FW_SUBDIR=/ .

pelwell commented 4 years ago

Now with documentation.

pelwell commented 4 years ago

It turns out you can force cut to honour the fields provided there is at least one separator.