[oe-commits] Adrian Freihofer : wic: Add plugin for single partition disk

git at git.openembedded.org git at git.openembedded.org
Fri May 1 11:28:25 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: 78c1d8c8a38904d21a9b08225bad20331a48543b
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=78c1d8c8a38904d21a9b08225bad20331a48543b

Author: Adrian Freihofer <adrian.freihofer at gmail.com>
Date:   Mon Apr 27 15:00:23 2015 +0200

wic: Add plugin for single partition disk

The wic plugin creates a disk image containig one ext2/3/4 partition.
No additional boot partition is required. Syslinux is installed into
the image. The target device is a legacy BIOS PC.

Purpose of this plugin:
Other avaliable plugins create a fat partition for /boot and an ext
partition for rootfs. Current linux-yocto kernel packages are not
compatible with this disk layout. The boot partition is not mounted
by default, hence the kernel is installed into rootfs and not into
boot partition. A kernel update ends up in a bricked device. The old
kernel which is still in boot likely does not even boot with updated
kernel modules from /. Even if the boot partition is mounted during
the kernel update the update will fail. The kernel package installs
a symbolic link which is not supported by the fat partition.
Creating just one ext partition for boot and rootfs solves all issues
related to package based kernel updates on the device.

The plugin depends on syslinux-nomtools a user space installer for
syslinux on ext filesystems.
Thanks to Robert Yang who implemented syslinux-nomtools and supported
the implementation of this plugin.

Signed-off-by: Adrian Freihofer <adrian.freihofer at gmail.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 .../lib/wic/plugins/source/rootfs_pcbios_ext.py    | 182 +++++++++++++++++++++
 scripts/lib/wic/utils/syslinux.py                  |  58 +++++++
 2 files changed, 240 insertions(+)

Diff:   http://git.openembedded.org/?p=openembedded-core.git/?a=commitdiff;h=78c1d8c8a38904d21a9b08225bad20331a48543b


More information about the Openembedded-commits mailing list