PIBOOTCTL-SET(1)

✨ pibootctl-set(1) ✨

okay bestie, so this is a page from the pibootctl manual πŸ’… and it's literally all about the pibootctl set command. no cap, it's giving "change ur Pi's boot settings" energy and honestly? iconic.


🌸 NAME 🌸

pibootctl-set β€” it's a page in the pibootctl manual, bestie. that's the whole vibe. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

pibootctl set [-h] [--no-backup] [--all | --this-model | --this-serial]
              [--json] [--yaml] [--shell]
              [name=[value] [name=[value] ...]]

πŸ’– DESCRIPTION πŸ’–

so like, set changes the value of one or more boot configuration settings. that's it, that's the whole thing ✨

and here's the cute part: if u wanna reset a setting back to its default, u just omit the new value. literally just don't give it one. the way that works is so clean honestly. 🫢


✨ OPTIONS ✨

  • name=[value] β€” drop one or more settings to change right there on the command line πŸ’… and if u wanna reset a setting to its default, just leave the value off. no value, no problem.
  • -h, --help β€” shows u a lil brief help page for the command. ur lil cheat sheet fr fr πŸ“–
  • --no-backup β€” pls don't take an automatic backup of the current boot configuration if one doesn't exist already. bold move, bestie 😭
  • --all β€” set the settings u named on all Pis this SD card is used with. this is the default context, so if u don't say anything, this is what u get πŸ‘‘
  • --this-model β€” set the settings for this model of Pi only. specific queen behavior πŸ’…
  • --this-serial β€” set the settings for this Pi's serial number only. like, just this one physical Pi. main character energy, honestly 🌟
  • --json β€” use JSON as the input format 🧚
  • --yaml β€” use YAML as the input format 🌈
  • --shell β€” use a var=value input format suitable for the shell 🐚

πŸ’… USAGE πŸ’…

so u can use set right at the command line to update the boot configuration, like:

$ sudo pibootctl set video.overscan.enabled=off
Backed up current configuration in backup-20200309-230959

and note β€” if no backup of the current boot configuration exists, a backup is automatically taken (unless u passed --no-backup, obviously). no cap. πŸ“Έ

u can change multiple settings all at once too, and reset settings to their default value by omitting the new value after the = sign:

$ sudo pibootctl set --no-backup serial.enabled=on serial.uart=

see how serial.uart= has nothing after the =? yeah. reset. slay. ✨

by default, settings get written into an [all] section in config.txt, which means they apply everywhere the SD card gets moved. but bestie, u can opt to make settings specific to the current model of Pi, or even the current Pi's serial number:

$ sudo pibootctl set --this-serial camera.enabled=on gpu.mem=128

and in that case an appropriate section like [0x123456789] will be added, and the settings get written under there. very demure, very specific. πŸŽ€

and for anyone out there building an interface on top of pibootctl (devs, i see u πŸ‘€), JSON, YAML, and shell-friendly formats can also be used to feed new values to the set command:

$ cat << EOF | sudo pibootctl set --json --no-backup
{"serial.enabled": true, "serial.uart": null}
EOF
quick vibe check: that backup thing is automatic unless u say --no-backup, so don't be surprised when a backup-... file just appears. it's not haunted, it's a feature 🫢

🌟 AUTHOR 🌟

Dave Jones πŸ’– the legend himself.


2019-2020 Dave Jones


and that's the whole page, bestie!! this was pibootctl-set(1), from version 0.5.2, dated Sep 14, 2020 🌸 go forth and configure ur Pi, u absolute icon πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from