Ubuntu Server Installer, and backend for Ubuntu Desktop Installer
Go to file
Dimitri John Ledkov e6dd21be6e Move PATH setup from agetty service into subiquity itself
This way `sudo snap run subiquity` will have the correct PATH for
probert/utils/curtin, as needed when running subiquity from ssh
session.
2019-10-04 00:55:24 +01:00
bin Move PATH setup from agetty service into subiquity itself 2019-10-04 00:55:24 +01:00
console_conf remove all remaining footer-related things 2019-09-30 09:32:23 +13:00
debian Switch dependencies from probert, to probert-storage and 2019-09-06 12:19:26 +01:00
examples Merge remote-tracking branch 'origin/pull/500/head' 2019-07-02 13:18:46 +01: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
po Update POTFILES.in 2019-05-22 16:13:00 +01:00
scripts still create a subiquity-debug.log symlink 2019-09-30 16:21:42 +13:00
subiquity Move PATH setup from agetty service into subiquity itself 2019-10-04 00:55:24 +01:00
subiquitycore Don't mark a dash as translatable 2019-10-02 11:45:34 -07:00
.flake8 Make tox and Makefile more similar. 2018-06-05 22:19:17 -04:00
.gitignore tox: Support running tests and flake8 in tox. 2018-06-05 17:59:46 -04:00
.gitmodules Update topdir Makefile targets 2015-09-01 10:04:24 -05:00
.travis.yml stop testing on cosmic (forever) and eoan (for now) 2019-07-30 21:28:03 +12:00
DESIGN.md remove all remaining footer-related things 2019-09-30 09:32:23 +13:00
LICENSE Initial commit 2015-06-08 17:57:45 -04:00
Makefile Replace --uefi with --bootloader to select any bootloader style for dry-run 2019-05-13 09:27:12 +12:00
README.md remove old sample machine data 2019-05-30 15:38:09 +12:00
kbdnames.txt implement keyboard selection (#276) 2018-02-08 10:37:22 +13:00
requirements.txt bump urwid version in requirements.txt (only used for tests) 2019-07-24 13:43:07 +12:00
reserved-usernames do not let the user choose a reserved username 2018-07-17 10:32:48 +12:00
setup.cfg Barebones i18n setup. 2017-09-18 14:14:39 +01:00
setup.py And setup.py too. 2019-05-09 15:49:05 +01:00
snapcraft.yaml go back to getting curtin from ubuntu/devel branch 2019-09-30 14:58:48 +13: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.

Acquire subiquity from source

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

cd subiquity && make install_deps

Testing out the installer Text-UI (TUI)

SUbiquity's text UI is 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.