Ubuntu Server Installer, and backend for Ubuntu Desktop Installer
Go to file
Michael Hudson-Doyle 7726c14d87 move action tests 2021-05-31 22:59:59 +12:00
.github/workflows Split unit / integration tests a bit (#956) 2021-05-17 07:31:29 -06:00
bin verify signatures on the cdrom pool again 2021-05-05 09:51:30 +12:00
console_conf have console-conf-write-login-details exit with code 2 when no IPs found 2021-05-03 11:04:03 +12:00
debian update github urls to new organization 2021-02-23 12:03:37 +13:00
examples add a integation test for non-rich mode 2021-05-04 12:44:41 +12:00
fake_deps tox: Support running tests and flake8 in tox. 2018-06-05 17:59:46 -04:00
font Add UPPER HALF BLOCK and LOWER HALF BLOCK to subiquity's console font 2019-09-03 12:05:26 +12:00
kbds commit generated file 2021-03-16 16:02:23 +13:00
po move action tests 2021-05-31 22:59:59 +12:00
scripts Split unit / integration tests a bit (#956) 2021-05-17 07:31:29 -06:00
snap/hooks more reliably restart client when server restarts 2021-03-31 13:15:06 +13:00
subiquity move action tests 2021-05-31 22:59:59 +12:00
subiquitycore locale - let it check interactive-sections again (#937) 2021-04-21 10:11:27 -06:00
.flake8 Make tox and Makefile more similar. 2018-06-05 22:19:17 -04:00
.gitignore Ignore .subiquity directory 2020-11-10 17:48:17 +00:00
.gitmodules Update topdir Makefile targets 2015-09-01 10:04:24 -05:00
DESIGN.md add a bit in DESIGN.md about how errors work in the API 2021-05-13 06:17:33 +12:00
LICENSE Initial commit 2015-06-08 17:57:45 -04:00
Makefile Rearrange makefile targets (#960) 2021-05-25 16:59:22 -06:00
README.md update github urls to new organization 2021-02-23 12:03:37 +13:00
autoinstall-schema.json add setting policy for post-install updates via autoinstall (#920) 2021-03-31 13:57:53 -06:00
languagelist put a full locale (language/location/codeset) in languagelist 2021-02-12 15:03:10 +13:00
requirements.txt probert moved to the canonical github org a while ago 2021-02-19 10:33:38 +13:00
reserved-usernames do not let the user choose a reserved username 2018-07-17 10:32:48 +12:00
setup.py remove curtin hook to bind mount /run into target now curtin does this 2021-03-29 14:49:59 +13:00
snapcraft.yaml update curtin 2021-04-16 09:12:00 +12:00
tox.ini fix snap build 2018-06-13 13:21:20 +12:00
users-and-groups only add the user to groups that exist in the target system 2018-06-14 15:27:06 +12:00

README.md

subiquity & console-conf

Ubuntu Server Installer & Snappy first boot experience

The repository contains the source for the new server installer (the "subiquity" part, aka "ubiquity for servers") and for the snappy first boot experience (the "console-conf" part).

We track bugs in Launchpad at https://bugs.launchpad.net/subiquity. Snappy first boot issues can also be discussed in the forum at https://forum.snapcraft.io.

Our localization platform is Launchpad, translations are managed at https://translations.launchpad.net/ubuntu/+source/subiquity/

To update translation template in launchpad:

  • update po/POTFILES.in with any new files that contain translations
  • execute clean target, i.e. $ debuild -S
  • dput subiquity into Ubuntu

To export and update translations in subiquity:

Acquire subiquity from source

git clone https://github.com/canonical/subiquity

cd subiquity && make install_deps

Testing out the installer Text-UI (TUI)

SUbiquity's text UI is available for testing without actually installing anything to a system or a VM. Subiquity developers make use of this for rapid development. After checking out subiquity you can start it:

make dryrun

All of the features are present in dry-run mode. The installer will emit its backend configuration files to /tmp/subiquity-config-* but it won't attempt to run any installer commands (which would fail without root privileges). Further, subiquity can load other machine profiles in case you want to test out the installer without having access to the machine. A few sample machine profiles are available in the repository at ./examples/ and can be loaded via the MACHINE make variable:

make dryrun MACHINE=examples/simple.json

Generating machine profiles

Machine profiles are generated from the probert tool. To collect a machine profile:

PYTHONPATH=probert ./probert/bin/probert --all > mymachine.json

Testing changes in KVM

To try out your changes for real, it is necessary to install them into an ISO. Rather than building one from scratch, it's much easier to install your version of subiquity into the daily image. Here's how to do this:

  1. Build your change into a snap:

    $ snapcraft snap --output subiquity_test.snap
    
  2. Grab the current version of the installer:

    $ urlbase=http://cdimage.ubuntu.com/ubuntu-server/daily-live/current
    $ isoname=$(distro-info -d)-live-server-$(dpkg --print-architecture).iso
    $ zsync ${urlbase}/${isoname}.zsync
    
  3. Run the provided script to make a copy of the downloaded installer that has your version of subiquity:

    $ sudo ./scripts/inject-subiquity-snap.sh ${isoname} subiquity_test.snap custom.iso
    
  4. Boot the new iso in KVM:

    $ qemu-img create -f raw target.img 10G
    $ kvm -m 1024 -boot d -cdrom custom.iso -hda target.img -serial stdio
    
  5. Finally, boot the installed image:

    $ kvm -m 1024 -hda target.img -serial stdio
    

The first three steps are bundled into the script ./scripts/test-this-branch.sh.