Skip to content

Commit f2d34fd

Browse files
redpigtorvalds
authored andcommitted
Documentation: add pointer to name_to_dev_t for root= values
Update kernel-parameters.txt to point users to the authoritative comment for name_to_dev_t. In addition, updates other places where some name_to_dev_t behavior was discussed. All other references to root= appear to be for explicit sample usage or just side comments when discussing other kernel parameters. Signed-off-by: Will Drewry <wad@chromium.org> Cc: Kay Sievers <kay.sievers@vrfy.org> Cc: Randy Dunlap <rdunlap@xenotime.net> Cc: Namhyung Kim <namhyung@gmail.com> Cc: Trond Myklebust <Trond.Myklebust@netapp.com> Cc: Jens Axboe <axboe@kernel.dk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 2af1416 commit f2d34fd

3 files changed

Lines changed: 25 additions & 3 deletions

File tree

‎Documentation/frv/booting.txt‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,20 @@ separated by spaces:
106106
To use the first on-chip serial port at baud rate 115200, no parity, 8
107107
bits, and no flow control.
108108

109-
(*) root=/dev/<xxxx>
109+
(*) root=<xxxx>
110110

111-
This specifies the device upon which the root filesystem resides. For
112-
example:
111+
This specifies the device upon which the root filesystem resides. It
112+
may be specified by major and minor number, device path, or even
113+
partition uuid, if supported. For example:
113114

114115
/dev/nfs NFS root filesystem
115116
/dev/mtdblock3 Fourth RedBoot partition on the System Flash
117+
PARTUUID=00112233-4455-6677-8899-AABBCCDDEEFF/PARTNROFF=1
118+
first partition after the partition with the given UUID
119+
253:0 Device with major 253 and minor 0
120+
121+
Authoritative information can be found in
122+
"Documentation/kernel-parameters.txt".
116123

117124
(*) rw
118125

‎Documentation/kernel-parameters.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2245,6 +2245,7 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
22452245
ro [KNL] Mount root device read-only on boot
22462246

22472247
root= [KNL] Root filesystem
2248+
See name_to_dev_t comment in init/do_mounts.c.
22482249

22492250
rootdelay= [KNL] Delay (in seconds) to pause before attempting to
22502251
mount the root filesystem

‎Documentation/m68k/kernel-options.txt‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,20 @@ decimal 11 is the major of SCSI CD-ROMs, and the minor 0 stands for
129129
the first of these. You can find out all valid major numbers by
130130
looking into include/linux/major.h.
131131

132+
In addition to major and minor numbers, if the device containing your
133+
root partition uses a partition table format with unique partition
134+
identifiers, then you may use them. For instance,
135+
"root=PARTUUID=00112233-4455-6677-8899-AABBCCDDEEFF". It is also
136+
possible to reference another partition on the same device using a
137+
known partition UUID as the starting point. For example,
138+
if partition 5 of the device has the UUID of
139+
00112233-4455-6677-8899-AABBCCDDEEFF then partition 3 may be found as
140+
follows:
141+
PARTUUID=00112233-4455-6677-8899-AABBCCDDEEFF/PARTNROFF=-2
142+
143+
Authoritative information can be found in
144+
"Documentation/kernel-parameters.txt".
145+
132146

133147
2.2) ro, rw
134148
-----------

0 commit comments

Comments
 (0)