diff options
| author | Rasmus Villemoes <[email protected]> | 2025-11-10 21:54:11 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-11-18 12:51:09 -0600 |
| commit | 30890051ab23a0293f6404c9a49e86f33e45df66 (patch) | |
| tree | 3386d11dafa43d83352b8978e6fa31d482301ab1 /doc/usage/cmd | |
| parent | 3c2a9475334ae32997b3bce8d24b39c8ffa9fc67 (diff) | |
cmd/part.c: implement "part name" subcommand
This is a natural buddy to the existing "part number", allowing one to
get the partition name for a given partition number.
Acked-by: Quentin Schulz <[email protected]>
Signed-off-by: Rasmus Villemoes <[email protected]>
Acked-by: Quentin Schuloz <[email protected]>
Tested-by: Anshul Dalal <[email protected]>
Diffstat (limited to 'doc/usage/cmd')
| -rw-r--r-- | doc/usage/cmd/part.rst | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/usage/cmd/part.rst b/doc/usage/cmd/part.rst index 72f5d8b8de7..299f2ac15c5 100644 --- a/doc/usage/cmd/part.rst +++ b/doc/usage/cmd/part.rst @@ -16,6 +16,7 @@ Synopsis part start <interface> <dev> <part> <varname> part size <interface> <dev> <part> <varname> part number <interface> <dev> <part> <varname> + part name <interface> <dev> <part> <varname> part set <interface> <dev> <part> <type> part type <interface> <dev>:<part> [varname] part types @@ -86,6 +87,18 @@ part must be specified as partition name. varname a variable to store the current partition number value into +The 'part name' command sets an environment variable to the partition name using the partition number, +part must be specified as partition number. + + interface + interface for accessing the block device (mmc, sata, scsi, usb, ....) + dev + device number + part + partition number + varname + a variable to store the current partition name into + The 'part set' command sets the type of a partition. This is useful when autodetection fails or does not do the correct thing: |
