diff options
| author | Scott Rifenbark <scott.m.rifenbark@intel.com> | 2013-11-14 10:39:45 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-12-03 12:53:57 +0000 |
| commit | acd37849336938faad2d62a0c0edf30a8be3fcda (patch) | |
| tree | 48c018511f6439c80ea660f1402e58a9324b5e0e /documentation/dev-manual | |
| parent | b0c4c855a0d5d4d2efcdf4da4b06e943be310887 (diff) | |
| download | poky-acd37849336938faad2d62a0c0edf30a8be3fcda.tar.gz | |
dev-manual: Complete first draft of the new wic section.
(From yocto-docs rev: 4bd0f5db0e0d8a2c3d28f415afaf92fed93102f0)
Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/dev-manual')
| -rw-r--r-- | documentation/dev-manual/dev-manual-common-tasks.xml | 337 |
1 files changed, 185 insertions, 152 deletions
diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml index 305dc316b4..d22c2a70a1 100644 --- a/documentation/dev-manual/dev-manual-common-tasks.xml +++ b/documentation/dev-manual/dev-manual-common-tasks.xml | |||
| @@ -2008,13 +2008,13 @@ any arguments to get started). | |||
| 2008 | </para> | 2008 | </para> |
| 2009 | 2009 | ||
| 2010 | <note> | 2010 | <note> |
| 2011 | Just because 'wic' can generate an image doesn't mean that it | 2011 | Just because 'wic' can generate an image does not mean that it |
| 2012 | will boot on a given machine. 'wic' tries to spot the most obvious | 2012 | will boot on a given machine. 'wic' tries to spot the most obvious |
| 2013 | usages that are likely to cause problems but, as a relatively | 2013 | usages that are likely to cause problems but, as a relatively |
| 2014 | low-level tool, it can't in general figure out whether a generated | 2014 | low-level tool, it can't in general figure out whether a generated |
| 2015 | image is appropriate for a given piece of hardware - it's really up to | 2015 | image is appropriate for a given piece of hardware - it's really up to |
| 2016 | you to provide intelligent inputs to the image creation process. If | 2016 | you to provide intelligent inputs to the image creation process. If |
| 2017 | you suspect that your image isn't working as expected due to some bug | 2017 | you suspect that your image is not working as expected due to some bug |
| 2018 | or missing feature of the tool, please file a bug report describing | 2018 | or missing feature of the tool, please file a bug report describing |
| 2019 | the details. | 2019 | the details. |
| 2020 | </note> | 2020 | </note> |
| @@ -2180,7 +2180,7 @@ the details. | |||
| 2180 | $ wic create <kickstart_file> -e <image_name> | 2180 | $ wic create <kickstart_file> -e <image_name> |
| 2181 | </literallayout> | 2181 | </literallayout> |
| 2182 | This form is the simplest and most user-friendly, as it | 2182 | This form is the simplest and most user-friendly, as it |
| 2183 | does not requre specifying all individual parameters. | 2183 | does not require specifying all individual parameters. |
| 2184 | All you need to provide is your own | 2184 | All you need to provide is your own |
| 2185 | <filename>.wks</filename> file or one provided with the | 2185 | <filename>.wks</filename> file or one provided with the |
| 2186 | release. | 2186 | release. |
| @@ -2224,6 +2224,25 @@ the details. | |||
| 2224 | -k <kernel_dir> -n <native_sysroot> | 2224 | -k <kernel_dir> -n <native_sysroot> |
| 2225 | </literallayout> | 2225 | </literallayout> |
| 2226 | </para> | 2226 | </para> |
| 2227 | |||
| 2228 | <para> | ||
| 2229 | Here are the actual partition language commands | ||
| 2230 | used in the <filename>mkefidisk.wks</filename> file to generate | ||
| 2231 | an image: | ||
| 2232 | <literallayout class='monospaced'> | ||
| 2233 | # short-description: Create an EFI disk image | ||
| 2234 | # long-description: Creates a partitioned EFI disk image that the user | ||
| 2235 | # can directly dd to boot media. | ||
| 2236 | |||
| 2237 | part /boot --source bootimg --ondisk sda --fstype=efi --label msdos --active --align 1024 | ||
| 2238 | |||
| 2239 | part / --source rootfs --ondisk sda --fstype=ext3 --label platform --align 1024 | ||
| 2240 | |||
| 2241 | part swap --ondisk sda --size 44 --label swap1 --fstype=swap | ||
| 2242 | |||
| 2243 | bootloader --timeout=10 --append="rootwait rootfstype=ext3 console=ttyPCH0,115200 console=tty0 vmalloc=256MB snd-hda- intel.enable_msi=0" | ||
| 2244 | </literallayout> | ||
| 2245 | </para> | ||
| 2227 | </section> | 2246 | </section> |
| 2228 | 2247 | ||
| 2229 | <section id='wic-usage-examples'> | 2248 | <section id='wic-usage-examples'> |
| @@ -2267,10 +2286,10 @@ the details. | |||
| 2267 | </literallayout> | 2286 | </literallayout> |
| 2268 | This example shows the easiest way to create an image | 2287 | This example shows the easiest way to create an image |
| 2269 | by running in Cooked Mode and using the | 2288 | by running in Cooked Mode and using the |
| 2270 | <filename><-e></filename> option with a | 2289 | <filename>-e</filename> option with a provided kickstart |
| 2271 | provided kickstart file. | 2290 | file. |
| 2272 | All that is necessary is to specify the image | 2291 | All that is necessary is to specify the image used to |
| 2273 | used to generate the artifacts. | 2292 | generate the artifacts. |
| 2274 | Your <filename>local.conf</filename> needs to have the | 2293 | Your <filename>local.conf</filename> needs to have the |
| 2275 | <ulink url='&YOCTO_DOCS_REF_URL;#var-MACHINE'><filename>MACHINE</filename></ulink> | 2294 | <ulink url='&YOCTO_DOCS_REF_URL;#var-MACHINE'><filename>MACHINE</filename></ulink> |
| 2276 | variable set to the machine you are using, which is | 2295 | variable set to the machine you are using, which is |
| @@ -2278,14 +2297,14 @@ the details. | |||
| 2278 | </para> | 2297 | </para> |
| 2279 | 2298 | ||
| 2280 | <para> | 2299 | <para> |
| 2281 | The output specifies exactly which image were | 2300 | The output specifies exactly which image was |
| 2282 | created and where the image was created. | 2301 | created as well as where it was created. |
| 2283 | The output also names the artifacts used and the exact | 2302 | The output also names the artifacts used and the exact |
| 2284 | <filename>.wks</filename> script that was used to generate | 2303 | <filename>.wks</filename> script that was used to generate |
| 2285 | the image. | 2304 | the image. |
| 2286 | <note> | 2305 | <note> |
| 2287 | You should always verify the details provided in the | 2306 | You should always verify the details provided in the |
| 2288 | output to make sure that the imagewas indeed created | 2307 | output to make sure that the image was indeed created |
| 2289 | exactly as expected. | 2308 | exactly as expected. |
| 2290 | </note> | 2309 | </note> |
| 2291 | </para> | 2310 | </para> |
| @@ -2311,7 +2330,7 @@ the details. | |||
| 2311 | 2330 | ||
| 2312 | <para> | 2331 | <para> |
| 2313 | Because <filename>wic</filename> image creation is driven | 2332 | Because <filename>wic</filename> image creation is driven |
| 2314 | by the kickstart file, it is easy to drive image creation | 2333 | by the kickstart file, it is easy to affect image creation |
| 2315 | by changing the parameters in the file. | 2334 | by changing the parameters in the file. |
| 2316 | This next example demonstrates that through modification | 2335 | This next example demonstrates that through modification |
| 2317 | of the <filename>directdisk</filename> kickstart file. | 2336 | of the <filename>directdisk</filename> kickstart file. |
| @@ -2321,9 +2340,10 @@ the details. | |||
| 2321 | As mentioned earlier, you can use the command | 2340 | As mentioned earlier, you can use the command |
| 2322 | <filename>wic list images</filename> to show the list | 2341 | <filename>wic list images</filename> to show the list |
| 2323 | of provided kickstart files. | 2342 | of provided kickstart files. |
| 2324 | The directory in which these files reside is in the | 2343 | The directory in which these files reside is |
| 2325 | <link linkend='source-directory'>Source Directory</link> | 2344 | <filename>scripts/lib/image/canned-wks/</filename> |
| 2326 | in <filename>scripts/lib/image/canned-wks/</filename>. | 2345 | located in the |
| 2346 | <link linkend='source-directory'>Source Directory</link>. | ||
| 2327 | Because the available files reside in this directory, you | 2347 | Because the available files reside in this directory, you |
| 2328 | can create and add your own custom files to the directory. | 2348 | can create and add your own custom files to the directory. |
| 2329 | Subsequent use of the <filename>wic list images</filename> | 2349 | Subsequent use of the <filename>wic list images</filename> |
| @@ -2359,22 +2379,13 @@ the details. | |||
| 2359 | part /boot --source bootimg --ondisk sdb --fstype=msdos --label boot --active --align 1024 | 2379 | part /boot --source bootimg --ondisk sdb --fstype=msdos --label boot --active --align 1024 |
| 2360 | part / --source rootfs --ondisk sdb --fstype=ext3 --label platform --align 1024 | 2380 | part / --source rootfs --ondisk sdb --fstype=ext3 --label platform --align 1024 |
| 2361 | </literallayout> | 2381 | </literallayout> |
| 2362 | (I AM HERE) | 2382 | Once the lines are changed, the example generates the |
| 2363 | Once the lines are changed, Once we've made that change, we generate a directdisksdb image, | 2383 | <filename>directdisksdb</filename> image. |
| 2364 | pointing the process at the core-image-minimal artifacts for the nuc | 2384 | The command points the process at the |
| 2365 | (Next Unit of Computing), selected as our current MACHINE in | 2385 | <filename>core-image-minimal</filename> artifacts for the |
| 2366 | local.conf. | 2386 | Next Unit of Computing (nuc) |
| 2367 | </para> | 2387 | <ulink url='&YOCTO_DOCS_REF_URL;#var-MACHINE'><filename>MACHINE</filename></ulink> |
| 2368 | 2388 | the <filename>local.conf</filename>. | |
| 2369 | <para> | ||
| 2370 | Once we've set the build up, we run a core-image-minimal nuc build: | ||
| 2371 | <literallayout class='monospaced'> | ||
| 2372 | $ bitbake core-image-minimal | ||
| 2373 | </literallayout> | ||
| 2374 | Once the build is finished, we can then use nuc to create our | ||
| 2375 | directdisk image for the nuc to boot. In this case, we'll use the | ||
| 2376 | '-e' option to have wic discover the appropriate build artifacts and | ||
| 2377 | generate the image: | ||
| 2378 | <literallayout class='monospaced'> | 2389 | <literallayout class='monospaced'> |
| 2379 | $ wic create directdisksdb -e core-image-minimal | 2390 | $ wic create directdisksdb -e core-image-minimal |
| 2380 | Checking basic build environment... | 2391 | Checking basic build environment... |
| @@ -2395,9 +2406,10 @@ generate the image: | |||
| 2395 | The image(s) were created using OE kickstart file: | 2406 | The image(s) were created using OE kickstart file: |
| 2396 | /home/trz/yocto/yocto-image/scripts/lib/image/canned-wks/directdisksdb.wks | 2407 | /home/trz/yocto/yocto-image/scripts/lib/image/canned-wks/directdisksdb.wks |
| 2397 | </literallayout> | 2408 | </literallayout> |
| 2398 | Using the path specified in the output for the image name and | 2409 | Continuing with the example, you can now directly |
| 2399 | location, you can now directly dd the image to a USB stick or whatever | 2410 | <filename>dd</filename> the image to a USB stick, or |
| 2400 | media you built the image for, and boot the resulting media: | 2411 | whatever media for which you built your image, |
| 2412 | and boot the resulting media: | ||
| 2401 | <literallayout class='monospaced'> | 2413 | <literallayout class='monospaced'> |
| 2402 | $ sudo dd if=/var/tmp/wic/build/directdisksdb-201310231131-sdb.direct of=/dev/sdb | 2414 | $ sudo dd if=/var/tmp/wic/build/directdisksdb-201310231131-sdb.direct of=/dev/sdb |
| 2403 | 86018+0 records in | 2415 | 86018+0 records in |
| @@ -2405,13 +2417,18 @@ media you built the image for, and boot the resulting media: | |||
| 2405 | 44041216 bytes (44 MB) copied, 13.0734 s, 3.4 MB/s | 2417 | 44041216 bytes (44 MB) copied, 13.0734 s, 3.4 MB/s |
| 2406 | [trz@empanada tmp]$ sudo eject /dev/sdb | 2418 | [trz@empanada tmp]$ sudo eject /dev/sdb |
| 2407 | </literallayout> | 2419 | </literallayout> |
| 2408 | Of course, you can just use the directdisk image directly if you don't | ||
| 2409 | have any special needs. | ||
| 2410 | </para> | 2420 | </para> |
| 2421 | </section> | ||
| 2422 | |||
| 2423 | <section id='creating-an-image-based-on-core-image-minimal-and-crownbay-noemgd'> | ||
| 2424 | <title>Creating an Image Based on <filename>core-image-minimal</filename> and <filename>crownbay-noemgd</filename></title> | ||
| 2411 | 2425 | ||
| 2412 | <para> | 2426 | <para> |
| 2413 | Here'we're creating a wic image based on core-image-minimal and | 2427 | This example creates an image based on |
| 2414 | crownbay-noemgd, which works right out of the box. | 2428 | <filename>core-image-minimal</filename> and a |
| 2429 | <filename>crownbay-noemgd</filename> | ||
| 2430 | <ulink url='&YOCTO_DOCS_REF_URL;#var-MACHINE'><filename>MACHINE</filename></ulink> | ||
| 2431 | that works right out of the box. | ||
| 2415 | <literallayout class='monospaced'> | 2432 | <literallayout class='monospaced'> |
| 2416 | $ wic create directdisk -e core-image-minimal | 2433 | $ wic create directdisk -e core-image-minimal |
| 2417 | 2434 | ||
| @@ -2433,10 +2450,19 @@ crownbay-noemgd, which works right out of the box. | |||
| 2433 | The image(s) were created using OE kickstart file: | 2450 | The image(s) were created using OE kickstart file: |
| 2434 | /home/trz/yocto/yocto-image/scripts/lib/image/canned-wks/directdisk.wks | 2451 | /home/trz/yocto/yocto-image/scripts/lib/image/canned-wks/directdisk.wks |
| 2435 | </literallayout> | 2452 | </literallayout> |
| 2436 | Finally, here's an example that doesn't take the easy way out and | 2453 | </para> |
| 2437 | manually specifies each build artifact, along with a non-canned .wks | 2454 | </section> |
| 2438 | file, and also uses the -o option to have wic create the output | 2455 | |
| 2439 | somewhere other than the default /var/tmp/wic: | 2456 | <section id='using-a-modified-kickstart-file-and-running-in-raw-mode'> |
| 2457 | <title>Using a Modified Kickstart File and Running in Raw Mode</title> | ||
| 2458 | |||
| 2459 | <para> | ||
| 2460 | This next example manually specifies each build artifact | ||
| 2461 | (runs in Raw Mode) and uses a modified kickstart file. | ||
| 2462 | The example also uses the <filename>-o</filename> option | ||
| 2463 | to cause <filename>wic</filename> to create the output | ||
| 2464 | somewhere other than the default | ||
| 2465 | <filename>/var/tmp/wic</filename> directory: | ||
| 2440 | <literallayout class='monospaced'> | 2466 | <literallayout class='monospaced'> |
| 2441 | $ wic create ~/test.wks -o /home/trz/testwic --rootfs-dir /home/trz/yocto/yocto-image/build/tmp/work/crownbay_noemgd-poky-linux/core-image-minimal/1.0-r0/rootfs --bootimg-dir /home/trz/yocto/yocto-image/build/tmp/sysroots/crownbay-noemgd/usr/share --kernel-dir /home/trz/yocto/yocto-image/build/tmp/sysroots/crownbay-noemgd/usr/src/kernel --native-sysroot /home/trz/yocto/yocto-image/build/tmp/sysroots/x86_64-linux | 2467 | $ wic create ~/test.wks -o /home/trz/testwic --rootfs-dir /home/trz/yocto/yocto-image/build/tmp/work/crownbay_noemgd-poky-linux/core-image-minimal/1.0-r0/rootfs --bootimg-dir /home/trz/yocto/yocto-image/build/tmp/sysroots/crownbay-noemgd/usr/share --kernel-dir /home/trz/yocto/yocto-image/build/tmp/sysroots/crownbay-noemgd/usr/src/kernel --native-sysroot /home/trz/yocto/yocto-image/build/tmp/sysroots/x86_64-linux |
| 2442 | 2468 | ||
| @@ -2455,28 +2481,11 @@ somewhere other than the default /var/tmp/wic: | |||
| 2455 | The image(s) were created using OE kickstart file: | 2481 | The image(s) were created using OE kickstart file: |
| 2456 | /home/trz/test.wks | 2482 | /home/trz/test.wks |
| 2457 | </literallayout> | 2483 | </literallayout> |
| 2458 | In this case, we didn't need to have the proper machine selected in | 2484 | For this example, |
| 2459 | local.conf - we manually specified each artifact and therefore wic | 2485 | <ulink url='&YOCTO_DOCS_REF_URL;#var-MACHINE'><filename>MACHINE</filename></ulink> |
| 2460 | doesn't need further information from the build system. | 2486 | did not have to be specified in the |
| 2461 | </para> | 2487 | <filename>local.conf</filename> file since the artifact is |
| 2462 | 2488 | manually specified. | |
| 2463 | <para> | ||
| 2464 | Finally, here's an example of the actual partition language commands | ||
| 2465 | used to generate the mkefidisk image i.e. these are the contents of the | ||
| 2466 | mkefidisk.wks OE kickstart file: | ||
| 2467 | <literallayout class='monospaced'> | ||
| 2468 | # short-description: Create an EFI disk image | ||
| 2469 | # long-description: Creates a partitioned EFI disk image that the user | ||
| 2470 | # can directly dd to boot media. | ||
| 2471 | |||
| 2472 | part /boot --source bootimg --ondisk sda --fstype=efi --label msdos --active --align 1024 | ||
| 2473 | |||
| 2474 | part / --source rootfs --ondisk sda --fstype=ext3 --label platform --align 1024 | ||
| 2475 | |||
| 2476 | part swap --ondisk sda --size 44 --label swap1 --fstype=swap | ||
| 2477 | |||
| 2478 | bootloader --timeout=10 --append="rootwait rootfstype=ext3 console=ttyPCH0,115200 console=tty0 vmalloc=256MB snd-hda- intel.enable_msi=0" | ||
| 2479 | </literallayout> | ||
| 2480 | </para> | 2489 | </para> |
| 2481 | </section> | 2490 | </section> |
| 2482 | </section> | 2491 | </section> |
| @@ -2485,16 +2494,18 @@ mkefidisk.wks OE kickstart file: | |||
| 2485 | <title>OpenEmbedded Kickstart (.wks) Reference</title> | 2494 | <title>OpenEmbedded Kickstart (.wks) Reference</title> |
| 2486 | 2495 | ||
| 2487 | <para> | 2496 | <para> |
| 2488 | The current 'wic' implementation supports only the basic kickstart | 2497 | The current <filename>wic</filename> implementation supports |
| 2489 | partitioning commands: 'partition' (or 'part' for short) and | 2498 | only the basic kickstart partitioning commands: |
| 2490 | 'bootloader'. | 2499 | <filename>partition</filename> (or <filename>part</filename> |
| 2500 | for short) and <filename>bootloader</filename>. | ||
| 2491 | </para> | 2501 | </para> |
| 2492 | 2502 | ||
| 2493 | <para> | 2503 | <para> |
| 2494 | They are listed below and mostly follow the syntax and meaning of the | 2504 | Following is a listing of the commands, their syntax, and |
| 2495 | standard kickstart options for those commands. The documentation below | 2505 | meanings. |
| 2496 | is based on the Fedora kickstart documentation of the same commands, | 2506 | The commands are based on the Fedora kickstart documentation |
| 2497 | but modified to reflect wic capabilities. For reference: | 2507 | but with modifications to reflect <filename>wic</filename> |
| 2508 | capabilities. | ||
| 2498 | <literallayout class='monospaced'> | 2509 | <literallayout class='monospaced'> |
| 2499 | http://fedoraproject.org/wiki/Anaconda/Kickstart#part_or_partition | 2510 | http://fedoraproject.org/wiki/Anaconda/Kickstart#part_or_partition |
| 2500 | http://fedoraproject.org/wiki/Anaconda/Kickstart#bootloader | 2511 | http://fedoraproject.org/wiki/Anaconda/Kickstart#bootloader |
| @@ -2505,13 +2516,14 @@ but modified to reflect wic capabilities. For reference: | |||
| 2505 | <title>Command: part or partition</title> | 2516 | <title>Command: part or partition</title> |
| 2506 | 2517 | ||
| 2507 | <para> | 2518 | <para> |
| 2508 | Creates a partition on the system. | 2519 | This command creates a partition on the system and uses the |
| 2509 | Use the following syntax: | 2520 | following syntax: |
| 2510 | <literallayout class='monospaced'> | 2521 | <literallayout class='monospaced'> |
| 2511 | part <mntpoint> | 2522 | part <mntpoint> |
| 2512 | </literallayout> | 2523 | </literallayout> |
| 2513 | The <mntpoint> is where the partition will be mounted and must be of | 2524 | The <filename><mntpoint></filename> is where the |
| 2514 | one of the following forms: | 2525 | partition will be mounted and must be of one of the |
| 2526 | following forms: | ||
| 2515 | <itemizedlist> | 2527 | <itemizedlist> |
| 2516 | <listitem><para><filename>/<path></filename>: | 2528 | <listitem><para><filename>/<path></filename>: |
| 2517 | For example, <filename>/</filename>, | 2529 | For example, <filename>/</filename>, |
| @@ -2525,57 +2537,75 @@ one of the following forms: | |||
| 2525 | 2537 | ||
| 2526 | <para> | 2538 | <para> |
| 2527 | Following are the supported options: | 2539 | Following are the supported options: |
| 2528 | <literallayout class='monospaced'> | 2540 | <itemizedlist> |
| 2529 | --size | 2541 | <listitem><para><emphasis><filename>--size</filename>:</emphasis> |
| 2530 | The minimum partition size in megabytes. Specify an integer value | 2542 | The minimum partition size in MBytes. |
| 2531 | here such as 500. Do not append the number with MB. Not needed if | 2543 | Specify an integer value such as 500. |
| 2532 | --source is used. | 2544 | Do not append the number with "MB". |
| 2533 | 2545 | You do not need this option if you use | |
| 2534 | --source | 2546 | <filename>--source</filename>.</para></listitem> |
| 2535 | bootimg | 2547 | <listitem><para><emphasis><filename>--source</filename>:</emphasis> |
| 2536 | rootfs | 2548 | This option is a wic-specific option that can |
| 2537 | 2549 | currently have one of two values, "bootimg" or | |
| 2538 | The --source option is a wic-specific option that can currently | 2550 | "rootfs".</para> |
| 2539 | have one of two values, 'bootimg' or 'rootfs'. | 2551 | <para>If <filename>--source rootfs</filename> is |
| 2540 | 2552 | used, it tells the <filename>wic</filename> command | |
| 2541 | If '--source rootfs' is used, it tells the wic command to create a | 2553 | to create a partition as large as needed to fill |
| 2542 | partition as large as needed to fill with the contents of /rootfs | 2554 | with the contents of the root filesystem |
| 2543 | (specified by the -r 'wic' option) and to fill it with the | 2555 | (specified by the <filename>-r</filename> |
| 2544 | contents of /rootfs. | 2556 | <filename>wic</filename> option) and to fill it |
| 2545 | 2557 | with the contents of <filename>/rootfs</filename>. | |
| 2546 | If '--source bootimg' is used, it tells the wic command to create | 2558 | </para> |
| 2547 | a partition as large as needed to fill with the contents of the | 2559 | <para>If <filename>--source bootimg</filename> |
| 2548 | boot partition (specified by the -b 'wic' option). Exactly what | 2560 | is used, it tells the <filename>wic</filename> |
| 2549 | those contents are depend on the value of the --fstype option for | 2561 | command to create a partition as large as needed to |
| 2550 | that partition. If '--fstype=efi' is specified, the boot | 2562 | fill with the contents of the boot partition |
| 2551 | artifacts contained in HDDDIR are used, and if '--fstype=msdos' is | 2563 | (specified by the <filename>-b</filename> |
| 2552 | specified, the boot artifacts found in STAGING_DATADIR are used. | 2564 | <filename>wic</filename> option). |
| 2553 | 2565 | Exactly what those contents are depend on the value | |
| 2554 | --ondisk or --ondrive | 2566 | of the <filename>--fstype</filename> option for |
| 2555 | Forces the partition to be created on a particular disk. | 2567 | that partition. |
| 2556 | 2568 | If <filename>--fstype=efi</filename> is specified, | |
| 2557 | --fstype | 2569 | the boot artifacts contained in HDDDIR are used, |
| 2558 | Sets the file system type for the partition. Valid values are: | 2570 | and if <filename>--fstype=msdos</filename> is |
| 2559 | msdos | 2571 | specified, the boot artifacts found in |
| 2560 | efi | 2572 | <filename>STAGING_DATADIR</filename> are used. |
| 2561 | ext4 | 2573 | </para></listitem> |
| 2562 | ext3 | 2574 | <listitem><para><emphasis><filename>--ondisk</filename> or <filename>--ondrive</filename>:</emphasis> |
| 2563 | ext2 | 2575 | Forces the partition to be created on a particular |
| 2564 | btrfs | 2576 | disk.</para></listitem> |
| 2565 | swap | 2577 | <listitem><para><emphasis><filename>--fstype</filename>:</emphasis> |
| 2566 | 2578 | Sets the file system type for the partition. | |
| 2567 | --label label | 2579 | Valid values are: |
| 2568 | Specify the label to give to the filesystem to be made on the | 2580 | <itemizedlist> |
| 2569 | partition. If the given label is already in use by another | 2581 | <listitem><para><filename>msdos</filename> |
| 2570 | filesystem, a new label will be created for this partition. | 2582 | </para></listitem> |
| 2571 | 2583 | <listitem><para><filename>efi</filename> | |
| 2572 | --active | 2584 | </para></listitem> |
| 2573 | Mark the partition as active. | 2585 | <listitem><para><filename>ext4</filename> |
| 2574 | 2586 | </para></listitem> | |
| 2575 | --align (in kB) | 2587 | <listitem><para><filename>ext3</filename> |
| 2576 | The '--align' option is a mic-specific option that says to start a | 2588 | </para></listitem> |
| 2577 | partition on an x kB boundary. | 2589 | <listitem><para><filename>ext2</filename> |
| 2578 | </literallayout> | 2590 | </para></listitem> |
| 2591 | <listitem><para><filename>btrfs</filename> | ||
| 2592 | </para></listitem> | ||
| 2593 | <listitem><para><filename>swap</filename> | ||
| 2594 | </para></listitem> | ||
| 2595 | </itemizedlist></para></listitem> | ||
| 2596 | <listitem><para><emphasis><filename>--label label</filename>:</emphasis> | ||
| 2597 | Specifies the label to give to the filesystem to | ||
| 2598 | be made on the partition. | ||
| 2599 | If the given label is already in use by another | ||
| 2600 | filesystem, a new label is created for the | ||
| 2601 | partition.</para></listitem> | ||
| 2602 | <listitem><para><emphasis><filename>--active</filename>:</emphasis> | ||
| 2603 | Marks the partition as active.</para></listitem> | ||
| 2604 | <listitem><para><emphasis><filename>--align (in KBytes)</filename>:</emphasis> | ||
| 2605 | This option is specific to the Meego Image | ||
| 2606 | Creator (mic) that says to start a partition on an | ||
| 2607 | x KBytes boundary.</para></listitem> | ||
| 2608 | </itemizedlist> | ||
| 2579 | </para> | 2609 | </para> |
| 2580 | </section> | 2610 | </section> |
| 2581 | 2611 | ||
| @@ -2583,33 +2613,36 @@ one of the following forms: | |||
| 2583 | <title>Command: bootloader</title> | 2613 | <title>Command: bootloader</title> |
| 2584 | 2614 | ||
| 2585 | <para> | 2615 | <para> |
| 2586 | This command specifies how the boot loader should be installed. | 2616 | This command specifies how the boot loader should be |
| 2587 | </para> | 2617 | and supports the following options: |
| 2588 | 2618 | <itemizedlist> | |
| 2589 | <para> | 2619 | <listitem><para><emphasis><filename>--timeout</filename>:</emphasis> |
| 2590 | Following are the supported options: | 2620 | Specifies the number of seconds before the |
| 2591 | <literallayout class='monospaced'> | 2621 | bootloader times out and boots the default option. |
| 2592 | --timeout | 2622 | </para></listitem> |
| 2593 | Specify the number of seconds before the bootloader times out and | 2623 | <listitem><para><emphasis><filename>--append</filename>:</emphasis> |
| 2594 | boots the default option. | 2624 | Specifies kernel parameters. |
| 2595 | 2625 | These will be added to the syslinux | |
| 2596 | --append | 2626 | <filename>APPEND</filename> or |
| 2597 | Specifies kernel parameters. These will be added to the syslinux | 2627 | <filename>grub</filename> kernel command line. |
| 2598 | APPEND or grub kernel command line. | 2628 | </para> |
| 2599 | 2629 | <para>The boot type is determined by the fstype of | |
| 2600 | The boot type is determined by the fstype of the /boot mountpoint. If | 2630 | the <filename>/boot</filename> mountpoint. |
| 2601 | the fstype is 'msdos' the boot type is 'pcbios', otherwise it's the | 2631 | If the fstype is "msdos" the boot type is |
| 2602 | fstype, which currently be: 'efi' (more to be added later). | 2632 | "pcbios", otherwise it is the fstype, which |
| 2603 | 2633 | is currently "efi" (more to be added later). | |
| 2604 | If the boot type is 'efi', the image will use grub and has one | 2634 | </para> |
| 2605 | menuentry: 'boot'. | 2635 | <para>If the boot type is "efi", the image will |
| 2606 | 2636 | use <filename>grub</filename> and has one | |
| 2607 | If the boot type is 'pcbios', the image will use syslinux and has one | 2637 | menuentry: "boot".</para> |
| 2608 | menu label: 'boot'. | 2638 | <para>If the boot type is "pcbios", the image |
| 2609 | 2639 | will use syslinux and has one menu label: "boot". | |
| 2610 | Future updates will implement more options - using anything not | 2640 | </para> |
| 2611 | explicitly supported can result in unpredictable results. | 2641 | <para>Future updates will implement more options. |
| 2612 | </literallayout> | 2642 | If you use anything that is not specifically |
| 2643 | supported, results can be unpredictable. | ||
| 2644 | </para></listitem> | ||
| 2645 | </itemizedlist> | ||
| 2613 | </para> | 2646 | </para> |
| 2614 | </section> | 2647 | </section> |
| 2615 | </section> | 2648 | </section> |
