nemomobile-ux / main

Main repo for docs and issues of Nemomobile
8 stars 0 forks source link

Image building: selection of a tool #13

Closed rinigus closed 3 years ago

rinigus commented 3 years ago

We need to select a tool to build images for Nemo. It is due to the current issues with mic (see below).

Requirements

  1. generate images for

    • aarch64
    • armv7l
    • x86_64
  2. support for images with boot sector (virtual box) and without (arm)

  3. generate image file with LVM inside:

    • specified volume group name
    • specified partitions: root and home
  4. generate image with a filesystem only

  5. ability to specify multiple repositories with their priorities

  6. support Fedora as a base

  7. running customization scripts

  8. select packages for installation

  9. ability to generate ARM images on x86_64 host

  10. good-to-have: support for virtual box images

Issues with mic

mic (https://github.com/mer-tools/mic/tree/jolla) is based on python2 and is using deprecated libzypp bindings (https://github.com/openSUSE/libzypp-bindings). These limitations prevent building libzypp bindings lib (fails in compilation of generated code), problems when using on Fedora 32 (lots of python2 libs were dropped). As Sailfish OS SDK is using older rpm library (or it is compiled with incompatible settings), we cannot generate images on SFOS SDK either.

Possible alternatives

Alternatives based from messages in fedora-arm mailing list and some searches

rinigus commented 3 years ago

Kiwi

This seems to be workable solution.

LVM

LVM looks to be possible through use of "oem" type. That will generate whole partitioned disk with LVM in use in partition 2. So, would have to mount raw image using loop device, rename logical volume with root (fixed on LVRoot) to root, and then dump partition 2 to raw image.

neochapay commented 3 years ago

We move to manjaro. Closed.