Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4844

Advanced users • Raspberry Pi OS Image Creation : Made Easy

$
0
0
Raspberry Pi OS Image Generator (rpios-gen) is a prompted front-end for pi-gen.

Code:

Usage: rpios-gen [options] [output directory]-a,--architecture    Architecture to use:   armhf             32-bit   arm64             64-bit-c,--compression     Compression to use:   none              .img   zip               .zip   gz                .img.gz   xz                .img.xz-d,--delete          Delete existing generation files-h,--help            This usage description-i,--interactive     Interactive shell before generation-k,--comp-level      Compression level (0-9)-o,--output          Output to generate   lite              Raspberry Pi OS Lite   desktop           Raspberry Pi OS Desktop   full              Raspberry Pi OS Full   all               Lite, Desktop, and Full-p,--purge           Purge generation files upon completion-s,--ssh             Enable SSH access-u,--unattended      Unattended operation, defaults:   Architecture = armhf   Compression = zip   Comp-Level = 6   Delete = no   Interactive = no   Output = all   Purge = no   SSH = no-z,--user-pwd        Set username:password
If the -u/--unattended option is not used, rpios-gen operates interactively, prompting for any input not provided on the command line.

If the -u/--unattended option is used, no prompting of any sort will occur.

Output is placed in the user's home directory if no output directory is specified.

Example:

Code:

sudo rpios-gen --architecture arm64 --compression none --delete --output lite --purge --ssh --user-pwd pi:raspberry --unattendedorsudo rpios-gen -a arm64 -c none -d -o lite -p -s -z pi:raspberry -u
yyyy-mm-dd-raspios-bookworm-arm64-lite.img will be created in the user's home directory, with a username/password of pi:raspberry and SSH access enabled.

The image file will contain the latest packages and kernel files.
rpios-gen.zip

Statistics: Posted by RonR — Wed Aug 28, 2024 8:50 pm



Viewing all articles
Browse latest Browse all 4844

Trending Articles