Backport "system-image-upgrader: allow disabling signature verification"

Adding the following line to BoardConfig.mk will disable signature
verification in the upgrader script.

TARGET_RECOVERY_SKIP_GPG_VERIFICATION := true

Commit: 4b799eef28c1a5767ff5ed83773aec913d168aa8
Change-Id: Ic7d0ae73ff0f14b25b544e5a52450336029031c5
Signed-off-by: Jani Monoses <jani.monoses@canonical.com>
Backport "Expanding the semantics for image provision"

This includes an enable/disable toggle initally for developer mode and
mtp.

Commit: 3f88dc56792fa70473c1c208ba38ae3d41e48c0d
Change-Id: I0d19fee53af15d69e58787f19d7aa565dc03c403
Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
Backport "system-image-upgrader: support ubuntu.img as the Ubuntu image name."

In order to stop the confusion around system.img from Android and
the system.img that contains the Ubuntu root filesystem start supporting
ubuntu.img as the name for the latter. Support the old naming too,
so that initramfs code that does not yet know about the change keeps working.

Commit: c4ec06f11eb250bd2189914525c2b2280e85673a
Change-Id: I6e35328104e9613cc86111029bec7edeb8aeecb7
Signed-off-by: Jani Monoses <jani.monoses@canonical.com>
Backport "system-image-upgrader: removing SWAP by default"

Commit: 62aa2cec0459bcc0fb6ff7cada54e1dfc03fb5bd
Change-Id: I98359c0c005711a8f3f5d5a693746e92e68971de
Signed-off-by: Ricardo Salveti de Araujo <rsalveti@rsalveti.net>
Backport "system-image-upgrader: force minimal swap"

Here we only want a small SWAP to be created, as we found out that the
kernel memory manager algorithm behaves better if swap is available,
even if a minimal one (not to be used by the system)

Commit: dd76a1fd5a59402a224fa8d092faee1f11b7b61f
Change-Id: I6a2402d999f0e7f74ca39efde6fda4e04504f4e2
Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
Backport "system-image-upgrader: adding minimal swap when flashing"

The 3.4 kernel exhibits issues when there's a multi-step pipe chain of
data producer/consumers; depending on the amount of data it can cause a
memory run off issue where all of the memory becomes locked in unevictable
pages. Enabling a minimal amount of swap makes the kernel take different
decisions and allows us to upgrade system images regardless of their
uncompressed size or compression algorithm.

Patch done by Ricardo Mendoza <mendoza.ricardo@gmail.com>

Commit: b4acc5c7f5bf3e08894be4db8343a1dfa9f682f9
Change-Id: Ie6a94cecd9b646dfae039dd1f63c707021772682
Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>
Backport "system-image-upgrader: removing with -f, avoid errors when file is not available"

Commit: 0dd9908a561055e8da0e7e96acc8d8fe0e4c51a6
Change-Id: I602d3a4d516d37c2b686a443c289f384cc26f537
Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@canonical.com>