Ubuntu Server Installer, and backend for Ubuntu Desktop Installer
Go to file
Dan Bungert 88a1fbd4ba make: timeout on unit tests
We aren't close to hitting this timeout in unit tests that I can see,
but some of the asyncio tests I'm writing for now risk a hang and I
don't want to get CI stuck.
2023-03-10 15:59:17 -07:00
.github/workflows workflow: +lunar 2022-12-15 07:20:44 -07:00
bin tui: turn off systemd ShowStatus 2023-02-01 14:45:23 -07:00
console_conf remove --script/--click command line arguments 2022-12-07 14:56:00 +13:00
debian update github urls to new organization 2021-02-23 12:03:37 +13:00
documentation docs: update expectations for password 2023-03-10 07:58:37 -07:00
examples Updates the autoinstall-ad example file to '-' 2023-03-03 20:21:39 -03:00
fake_deps tox: Support running tests and flake8 in tox. 2018-06-05 17:59:46 -04:00
font font: allow to display circled white star in console font 2022-05-10 09:45:25 +02:00
kbds kbds: add entries for UDI 2022-08-08 07:54:09 -06:00
po update from newer export 2022-04-14 10:02:51 +12:00
scripts Moves the AD autoinstall test to the API testing 2023-03-07 08:37:38 -03:00
snap/hooks Revert "os-prober: patch instead of sed" 2022-01-24 12:18:41 -07:00
subiquity Merge pull request #1590 from dbungert/block-probing-timeouts 2023-03-08 12:35:31 -07:00
subiquitycore network: do not accept route metric > 20000 2023-02-21 13:30:05 -07:00
system_setup many: s/create_task/run_bg_task/ 2023-02-13 14:56:07 -07:00
.flake8 Make tox and Makefile more similar. 2018-06-05 22:19:17 -04:00
.gitignore Update .gitignore 2022-04-25 07:23:01 -06:00
DESIGN.md install: invoke curtin multiple times with different stages 2022-08-11 09:16:06 +02:00
LICENSE Initial commit 2015-06-08 17:57:45 -04:00
Makefile make: timeout on unit tests 2023-03-10 15:59:17 -07:00
README.md Fixed a typo 2021-08-30 12:32:15 +05:30
apt-deps.txt network: use pyroute2 to manage default routes 2023-02-21 13:30:05 -07:00
autoinstall-schema.json Favors dash instead of underscore in autoinstall 2023-03-03 15:11:54 -03:00
autoinstall-system-setup-schema.json Adding WSLSetupOptions API endpoint 2022-08-23 10:45:29 -03:00
languagelist update languagelist and layout suggestions 2022-07-29 14:13:27 -06:00
passwd Added a passwd file copied from a livecd filesystem 2022-05-11 12:58:58 -03:00
reserved-usernames reserved-usernames: add sgx group ahead of ubuntu 2022-09-22 11:09:30 +02:00
setup.py setup.py: start migration away from distutils 2022-12-14 10:32:20 -07:00
snapcraft.yaml curtin: bump version so we can install a package in two steps 2023-03-02 16:05:25 +01:00
tox.ini fix snap build 2018-06-13 13:21:20 +12:00
users-and-groups Ensure first user is in the users group and not in the lxd group. This 2022-11-03 08:22:43 +01: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.