Skip to content

Instantly share code, notes, and snippets.

@ancorgs
Last active December 13, 2018 12:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ancorgs/507ef049c5e614c7ba7aae1d4234bd4c to your computer and use it in GitHub Desktop.
Save ancorgs/507ef049c5e614c7ba7aae1d4234bd4c to your computer and use it in GitHub Desktop.

Change 1

Instead of including the skelcd-* packages directly in the inst-sys, the inst-sys will contain a repo containing the skelcd-* packages and maybe also the licenses or any other stuff that the first steps of the installer (i.e. registration and any previous step) expect to get from libzypp.

Let's say that repo is located at /usr/share/fallback-repo

Change 2

Change Packages#Initialize_BaseInit so it uses dir:///usr/share/fallback-repo in case InstURL.installInf2Url is empty.

Change 3

In theory, the product selection step, the license confirmation step, the initialization steps souldn't need any dramatic change. They should work out of the box (famous last words).

Change 4

At the end of the registration process, if the current base_url is the fallback one, then we substitute it with the new correct one, leaving no trace of the fallback repository for the rest of the installation. We may need to re-select the libzypp product, if such thing is needed after changing the base repo (I really don't know the details).

Here we could even try to find out if the license of the fallback repo is different to the one provided by the registration server (if such thing can happen) in order to ask for a second confirmation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment