diff options
| author | Kevin Hao <kexin.hao@windriver.com> | 2018-09-12 08:44:46 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-09-13 07:42:28 +0100 |
| commit | 821711bf2edc3d2eb5a695653ff5d439f43520be (patch) | |
| tree | 6083410a9373b1c0235c58521bd59ef5076bdad0 /scripts/lib/wic/help.py | |
| parent | 92bc2b3e84f71871878ae6137ae08af7cb981ed0 (diff) | |
| download | poky-821711bf2edc3d2eb5a695653ff5d439f43520be.tar.gz | |
wic: Introduce the --use-label partition parameter
We can use this parameter to make the wic use the label to name a
partition in /etc/fstab.
(From OE-Core rev: 51638edaa00befaed58e2def255d46ae44d9234f)
Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/help.py')
| -rw-r--r-- | scripts/lib/wic/help.py | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/scripts/lib/wic/help.py b/scripts/lib/wic/help.py index 842b868a57..64f08052c7 100644 --- a/scripts/lib/wic/help.py +++ b/scripts/lib/wic/help.py | |||
| @@ -866,11 +866,11 @@ DESCRIPTION | |||
| 866 | Partitions with a <mountpoint> specified will be automatically mounted. | 866 | Partitions with a <mountpoint> specified will be automatically mounted. |
| 867 | This is achieved by wic adding entries to the fstab during image | 867 | This is achieved by wic adding entries to the fstab during image |
| 868 | generation. In order for a valid fstab to be generated one of the | 868 | generation. In order for a valid fstab to be generated one of the |
| 869 | --ondrive, --ondisk or --use-uuid partition options must be used for | 869 | --ondrive, --ondisk, --use-uuid or --use-label partition options must |
| 870 | each partition that specifies a mountpoint. Note that with --use-uuid | 870 | be used for each partition that specifies a mountpoint. Note that with |
| 871 | and non-root <mountpoint>, including swap, the mount program must | 871 | --use-{uuid,label} and non-root <mountpoint>, including swap, the mount |
| 872 | understand the PARTUUID syntax. This currently excludes the busybox | 872 | program must understand the PARTUUID or LABEL syntax. This currently |
| 873 | versions of these applications. | 873 | excludes the busybox versions of these applications. |
| 874 | 874 | ||
| 875 | 875 | ||
| 876 | The following are supported 'part' options: | 876 | The following are supported 'part' options: |
| @@ -945,6 +945,14 @@ DESCRIPTION | |||
| 945 | label is already in use by another filesystem, | 945 | label is already in use by another filesystem, |
| 946 | a new label is created for the partition. | 946 | a new label is created for the partition. |
| 947 | 947 | ||
| 948 | --use-label: This option is specific to wic. It makes wic to use the | ||
| 949 | label in /etc/fstab to specify a partition. If the | ||
| 950 | --use-label and --use-uuid are used at the same time, | ||
| 951 | we prefer the uuid because it is less likely to cause | ||
| 952 | name confliction. We don't support using this parameter | ||
| 953 | on the root partition since it requires an initramfs to | ||
| 954 | parse this value and we do not currently support that. | ||
| 955 | |||
| 948 | --active: Marks the partition as active. | 956 | --active: Marks the partition as active. |
| 949 | 957 | ||
| 950 | --align (in KBytes): This option is specific to wic and says | 958 | --align (in KBytes): This option is specific to wic and says |
