]> code.ossystems Code Review - openembedded-core.git/commit
wic: Add plugin for single partition disk
authorAdrian Freihofer <adrian.freihofer@gmail.com>
Mon, 27 Apr 2015 13:00:23 +0000 (15:00 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 3 May 2015 10:39:46 +0000 (11:39 +0100)
commit4a7bd79b5100a496c9b1597b57d6dc18ba2b9c83
tree723a434f7d5bb49b419732c91818ac9abb3b8ed7
parent2a7f16b19d78186ed6c2eb119ec102c645596b87
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@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/plugins/source/rootfs_pcbios_ext.py [new file with mode: 0644]
scripts/lib/wic/utils/syslinux.py [new file with mode: 0644]