summaryrefslogtreecommitdiffstats
path: root/scripts/lib
Commit message (Collapse)AuthorAgeFilesLines
* wic: Update/rename configure-related codeTom Zanussi2014-08-112-4/+5
| | | | | | | | | | | | The wic code inherited a basic image-creation flow based on image-configuration, but wic doesn't actually configure anything, so rename parts of the code dealing with configuration to something more appropriate. (From OE-Core rev: 58dc8879bba31542e2386aaaa70034621b2b1e4e) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Update/rename install-related codeTom Zanussi2014-08-113-34/+34
| | | | | | | | | | | The wic code inherited a basic image-creation flow based on installing packages, but wic doesn't actually install anything, so rename parts of the code dealing with installing to something more appropriate. (From OE-Core rev: b4232041534a79236eb8d8ab5c0024a0ef4da649) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Update cleanup/unmount-related codeTom Zanussi2014-08-112-23/+7
| | | | | | | | | | | | The wic code inherited a basic image-creation flow based on mounting loop devices, but wic doesn't actually mount or unmount anything, so get rid of unmount() and consolidate whatever it did do with cleanup(). (From OE-Core rev: 1b103bf4a7c7527d4fc57bad1bbd1d5a5bbddb4a) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Update/rename/delete mount-related codeTom Zanussi2014-08-114-106/+22
| | | | | | | | | | | | The wic code inherited a basic image-creation flow based on mounting loop devices, but wic doesn't actually mount anything, so rename parts of the code dealing with mounting to something more appropriate, and remove related unused code. (From OE-Core rev: 94e15c18c011b0d7d71276cd4566be2417c2c6be) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Remove Mount objectTom Zanussi2014-08-112-19/+1
| | | | | | | | | | It doesn't do anything we need, so remove it and fix up callers/base classes. (From OE-Core rev: fb2a162d8756ab69c9c29a0715b033f18620341d) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Remove unused conf supportTom Zanussi2014-08-116-103/+8
| | | | | | | | | Also fix up users such as imager functions. (From OE-Core rev: eb77b9c11bd9b8dc90aacfbd5b5bc5568a233525) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Update 'Background and Motivation' help sectionTom Zanussi2014-08-111-13/+1
| | | | | | | | | | | Remove help text regarding the source and future intentions of the wic codebase, since the code prompting those comments has now been mostly removed. (From OE-Core rev: dfa8626700269141f8d2f5be12c8758db7ca6473) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Remove unused command versioning supportTom Zanussi2014-08-1120-665/+0
| | | | | | | | | | The default is F16 and there's no reason to change that, so remove everything else. (From OE-Core rev: e0ec12d012e568c9943614fc1190c143912180b3) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Clean up CreatorTom Zanussi2014-08-111-170/+6
| | | | | | | | | wic doesn't use a lot of Creator, so remove it. (From OE-Core rev: ef6bc7a3b58ba8b9c94f4c1e41c0f6d7d51c0bf5) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Clean up PartitionedMountTom Zanussi2014-08-111-353/+2
| | | | | | | | | wic doesn't use a lot of ParitionedMount, so remove it. (From OE-Core rev: 0f793ff0767b0cce032c20b677974806c65610d6) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Clean up DirectImageCreatorTom Zanussi2014-08-112-11/+2
| | | | | | | | | Remove what wic doesn't use from DirectImageCreator. (From OE-Core rev: dbbe6d04f6c606c94ff17151aee1214e4e24ce7d) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Clean up BaseImageCreatorTom Zanussi2014-08-112-1025/+9
| | | | | | | | | wic doesn't use a lot of BaseImageCreator, so remove it. (From OE-Core rev: 6bd95c24b44fa80ac9d5950bf2d925f18f671290) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Remove unused plugin and error codeTom Zanussi2014-08-115-68/+3
| | | | | | | | | wic doesn't use it, so remove it. (From OE-Core rev: b818e5a1ed047940fda533da73fc50a099e1aa3f) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Remove gpt_parserTom Zanussi2014-08-114-390/+11
| | | | | | | | | wic doesn't currently use it, so remove. (From OE-Core rev: d3a490d5421405bf9e002c6c65ffb831ea6b767e) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Remove unused 3rdparty/commandsTom Zanussi2014-08-1150-6474/+1
| | | | | | | | | | wic doesn't use anything but partition and bootloader, so remove the rest. (From OE-Core rev: b6ae106b5d28180a5890e837c87f3e91e5917638) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Remove 3rdparty/urlgrabberTom Zanussi2014-08-117-3688/+0
| | | | | | | | | wic doesn't use it, so remove it. (From OE-Core rev: 00dcdb29c89634ab267d328eb00f8eb70c696655) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Remove unused misc codeTom Zanussi2014-08-111-179/+1
| | | | | | | | | wic doesn't use it, so remove it. (From OE-Core rev: 84e1e13ce3af216e304f61c7ea6e5e9338f94bc6) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Remove unused fs_related codeTom Zanussi2014-08-111-930/+0
| | | | | | | | | wic doesn't use it, so remove it. (From OE-Core rev: e18d5393a556e1ff4826c1e5b1a75f4ac998b10e) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Remove rpmmiscTom Zanussi2014-08-111-600/+0
| | | | | | | | | wic doesn't use it, so remove it. (From OE-Core rev: a49b39ddf18b1b058c0a892e1a7450239eea66ce) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Remove proxy supportTom Zanussi2014-08-113-1022/+1
| | | | | | | | | | | | | | | | | wic doesn't use proxy support, so remove it. Also remove anything related to proxies in misc and conf, and while we're at it, remove all the obviously unneeded code from those files - it's easier to just remove it than to figure out the callchain to the proxy code usages. Basically the extra stuff relates to packaging, images, and config files we don't use. (From OE-Core rev: 041f9e2ca52681cd6f5c2fb804dd45f05358c9f9) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Remove grabber implementationTom Zanussi2014-08-111-97/+0
| | | | | | | | | wic doesn't need to grab any urls, so remove it. (From OE-Core rev: 55f8df07d82724b6d7ed694158ca6e9a5266cbc4) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Remove fiemap supportTom Zanussi2014-08-111-252/+0
| | | | | | | | | wic doesn't use it, so remove it. (From OE-Core rev: b732ad616ca20dfc4adb845b68ae3378624a0a4d) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Remove bmap supportTom Zanussi2014-08-111-298/+0
| | | | | | | | | wic doesn't use it, so remove it. (From OE-Core rev: 69f16c7582660a3bcf4106668e548b4c789ae251) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Remove mic package managersTom Zanussi2014-08-112-1463/+0
| | | | | | | | | wic doesn't use the yum or zypp package managers, remove them. (From OE-Core rev: ef70b961b6b8f3a004036f84b608665db2085215) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Remove rt_utilTom Zanussi2014-08-111-223/+0
| | | | | | | | | More package-related stuff we don't need. (From OE-Core rev: 167cb99af427510bb6d72e89478c62a804db125c) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Remove mic chrootTom Zanussi2014-08-1115-3611/+4
| | | | | | | | | | | | | | | | | mic chroot allows users to chroot into an existing mic image and isn't used by wic, so remove it. Removing chroot.py leads in turn to various plugin-loading failures for a number of plugins that wic doesn't use either, so remove those as well. The existing source plugins refer to chroot but don't use it, so fix those up. (From OE-Core rev: d73230306b827972cdc99f21d247c54d5d7c0b6d) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Remove mic bootstrapTom Zanussi2014-08-111-279/+0
| | | | | | | | | packaging bootstrap, not needed (From OE-Core rev: 980c8faf01fa59ce3922cbad3363a6c2f759d30e) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Remove packaging, config commandsTom Zanussi2014-08-111-763/+0
| | | | | | | | | Remove commands related to repos, packaging, configuration (From OE-Core rev: 2b002ab75473578f06f161be0b48670fba26994e) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Remove unused custom commandsTom Zanussi2014-08-115-297/+1
| | | | | | | | | installer, repo, desktop-related stuff (From OE-Core rev: 26e909682fffb8ae6062d1e8295b6421f1f716ad) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Make exec_cmd() error out instead of warnTom Zanussi2014-08-116-46/+53
| | | | | | | | | | | | | | | | The reason exec_cmd() warns but doesn't error out (broken parted) doesn't really make sense, since the parted invocations don't even use exec_cmd(). It really should just fail since by not doing so it's actually enabling invalid images in some cases. Also, since the return code is now always zero, there's no point in having a return code, so remove it. This represents a change in the API, so we also need to update all callers. (From OE-Core rev: a10bbd39eee29cc49d258bf08aaec279c3115c66) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Various typo/grammar fixes to wic help textTom Zanussi2014-08-021-3/+3
| | | | | | | | | | | This is a set of miscellaneous help text updates noticed while transcribing wic help for the dev manual. (From OE-Core rev: d4b350fcdedf29692673e09a0c1850cdbbe29739) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Add squashfs to --fstypes documentationTom Zanussi2014-08-021-0/+1
| | | | | | | | | | squashfs support was recently added to wic, so document it. (From OE-Core rev: c04043e143932fe2ea38f87d2faa8beed007671b) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Add documentation for --fsoptionsTom Zanussi2014-08-021-0/+7
| | | | | | | | | | --fsoptions support was recently added to wic, so document it. (From OE-Core rev: e2d87ad57f8aa74e748ba95f6a801a2ca665ecc4) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Fix plugin help textTom Zanussi2014-08-021-13/+16
| | | | | | | | | | | Fix various typoes and grammar problems noticed while transcribing for the dev manual. (From OE-Core rev: 79fb7d9b5a28810e3adfaf5cba0c2298810253e9) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: do not overwrite autogenerated /etc/fstab with original too earlyMaciej Borzecki2014-07-261-1/+4
| | | | | | | | | | | | | | | | | | | DirectImageCreator.__write_fstab() generates new /etc/fstab in sysroot with rootfs contents. The fstab entries are generated base on the initialn contents of /etc/fstab, plus any extra (other than / or /boot) partitions listed in *.wks. A backup of original /etc/fstab is done in a temp location. Subsequent call to __restore_fstab() restores the backup copy, replacing the autogenerated one. Calling __restore_fstab() before Wic_PartData.prepare() brings back the original fstab before the partition image file actually is created. As such, the autogenerated /etc/fstab will not make it to the partition. (From OE-Core rev: a9e59d7b1fa1ed33ce9678fb77a367800d7a8f87) Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl> Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: squashfs partition supportMaciej Borzecki2014-07-251-0/+61
| | | | | | | | | | | | It is possible to instruct wic to create a squashfs partition by setting --fstype=squashfs in *.wks. For now this is only useable for rootfs partitions (note that you must have squashfs support in the kernel). An attempt to create an empty partition will produce a warning. (From OE-Core rev: 30266a0be946bd0ce76d6920e7afe840c6c3bf80) Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: --fsoptions handlingMaciej Borzecki2014-07-251-1/+9
| | | | | | | | | | | Add handling of --fsoptions in parition definition. If no options are specified, 'defaults' is used. (From OE-Core rev: e91c0db15db74237606fae96c9b7d21936519a86) Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl> Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Remove fstype from mkefidisk canned wksTom Zanussi2014-07-231-1/+1
| | | | | | | | | | The bootimg-efi plugin specifies the fstype internally, so remove it from the partition definition. (From OE-Core rev: e9365e9d9e8a8696849fda182ec260398059089a) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Add help entry for wic kickstartTom Zanussi2014-07-231-0/+1
| | | | | | | | | | | Previous patches added help for 'wic kickstart' but forgot to add an entry in the main help page showing its availability. Add an entry for it. (From OE-Core rev: 5aa212f990c3d9b90a4f06cea346b82fc5d376ba) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Fix bad directory name in bootimg-efiTom Zanussi2014-07-231-1/+1
| | | | | | | | | | The original move of the mkefidisk code to the bootimg-efi plugin resulted in a bad hdddir - fix it. (From OE-Core rev: ab337705521d8734f12be612709e70a163111fe3) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Error on zero-sized partitionsTom Zanussi2014-07-161-0/+2
| | | | | | | | | | | | It doesn't make sense to create zero-sized partitions so assume user error and notify the user they should be using a non-zero --size for partitions that don't specify a --source. (From OE-Core rev: 3231562c3c9f8173ddcc0812001aadf0988c8892) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Add kickstart reference to help systemTom Zanussi2014-07-162-1/+115
| | | | | | | | | | | Add a 'wic kickstart' help section to make it easy for users to access the kickstart reference without having to go to an external website. (From OE-Core rev: 136137ec1c124aee89d2120abded60a5cf0562b0) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Add wic overview to help systemTom Zanussi2014-07-161-0/+209
| | | | | | | | | | | Add a general overview of wic to the help system as 'wic overview', along with some introductory examples. (From OE-Core rev: fa108caaa53878152e4856d32ce1ab7fe3802287) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Add vfat supportTom Zanussi2014-07-161-0/+74
| | | | | | | | | | | | | | Add vfat as a supported rootfs type (in addition to the current ext2/3/4 and btrfs support). vfat partitions can now be created using --source rootfs along with --fstype=vfat, or without --source but specifying a --size. (From OE-Core rev: d9efc110fd73822629b2a3326761f2256b9f23b0) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Error on parted non-zero error codeTom Zanussi2014-07-161-1/+1
| | | | | | | | | | | | | | | The current code uses msger.debug() to note errors, effectively squelching them if --debug isn't used. Apparently this is because it can return non-zero for some loop device failures. We don't care about loop devices, and not paying attention to the error code actually results in invalid images, so error out on parted failures as we should be. (From OE-Core rev: b1c68e5446080f0743f7f8a530f3b00f90c8717d) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Add general 'plugins' help topicTom Zanussi2014-07-101-1/+100
| | | | | | | | | | | Add a category for help topics with an initial help topic discussing source plugins. (From OE-Core rev: a3dbe46dd28a6fd9e6c21f6bbb6a12578df9dff3) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Print error if a partition specifies an invalid --sourceTom Zanussi2014-07-101-0/+5
| | | | | | | | | | | | | If a partition specified in a .wks file specifies a nonexistent --source, print an error to that effect and exit. The error text also points the user to a command listing valid sources, and help on adding a new source plugin. (From OE-Core rev: 4dff6945d2606cebc0ab26e877c5d8c7b457e179) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Add help text for 'wic list source-plugins'Tom Zanussi2014-07-101-3/+17
| | | | | | | | | | | Add both short and long text for the new 'wic list source-plugins' command. (From OE-Core rev: 4f20acc10b18c7353bd73f253943372dacd957ca) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* wic: Add command to list available source pluginsTom Zanussi2014-07-102-0/+29
| | | | | | | | | | | | | Add a 'wic list source-plugins' command enabling users to get a list of valid partition --sources. This is useful not only for determining sources to use in .wks partition statements, but also for making sense of errors in .wks partition processing. (From OE-Core rev: 37db9423e7872012fabde67e8858db5b512832f6) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* yocto-bsp: Drop GLIBC_ADDONS settingRichard Purdie2014-07-042-4/+0
| | | | | | | | | This has been copied and pasted around and is not needed, simply drop it. The defaults in the recipe work just fine. (From meta-yocto rev: 037bce9a5f196df3cded9dfe6200188c1dd1d84a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>