Commit Graph

4295 Commits

Author SHA1 Message Date
raharper 176e3727bc Merge pull request #55 from CanonicalLtd/fix-geninstaller-path
Fix geninstaller to be runnable outside of source tree
2015-09-29 09:59:30 -05:00
Ryan Harper 8b228d05a8 Fix geninstaller to be runnable outside of source tree
geninstaller, which is installed as /usr/bin/subiquity-geninstaller
needed some changes to allow it to run outside of the build tree.
Quieted the output from geninstaller a lot and redirect the verbosity
into the log file.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-29 09:56:47 -05:00
raharper d4f8394123 Merge pull request #54 from CanonicalLtd/documentation_v1
Update documentation on using subiquity
2015-09-29 09:10:13 -05:00
Ryan Harper 8342a654ae Update documentation on using subiquity
Expand on how to get and use subiquity.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-28 15:02:51 -05:00
Adam Stokes d488a9d1fa Dont let setuptools manage scripts
We handle our scripts through the Debian packaging.

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-09-28 14:42:19 -04:00
Adam Stokes 80ca9c1cae Merge pull request #52 from CanonicalLtd/fix-avail-disk-view
Don't display mounted disks except during dry-run
2015-09-28 14:04:54 -04:00
Adam Stokes d4aad9fab0 Merge pull request #51 from CanonicalLtd/switch-to-packages
Switch to packages
2015-09-28 14:04:48 -04:00
Ryan Harper f5aff668c5 Don't display mounted disks except during dry-run
Enhance our mounted disk detection. Don't display these
devices unless we're in dry-run mode.  Add support for
the case where we don't have any disks and prevent
the installer from progressing.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-28 11:28:26 -05:00
Adam Stokes b16374fa8e Rename to subiquity-tui for package install
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-09-28 11:20:22 -04:00
Adam Stokes a4f8bc9cf4 Merge pull request #50 from CanonicalLtd/patch-password-validate
Add password match validator
2015-09-28 11:05:55 -04:00
Adam Stokes c6628911d4 Add password match validator
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-09-28 11:03:01 -04:00
Adam Stokes b97e51d70a Merge pull request #49 from CanonicalLtd/patch-is_root-hdparm
Checks if run as root before accessing hdparm
2015-09-28 10:49:54 -04:00
Adam Stokes b0f7e29cde Checks if run as root before accessing hdparm
Fixes #46

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-09-28 10:45:54 -04:00
Ryan Harper 23d644037a Switch to single overlay dir
Instead of tracking many directories, we'll use only one
overlay directory to hold any scripts or change we want to
see applied over the base image.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-28 09:01:46 -05:00
Ryan Harper 4f344714f9 Use probert package from subiquity-dev ppa
Use the packaged version of probert.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-28 09:01:46 -05:00
Adam Stokes 3bb2a79c2e Merge pull request #45 from CanonicalLtd/patch-queue-async
Add progress show final bits
2015-09-25 16:08:12 -04:00
Adam Stokes 1a938adc59 Add reboot button on finish
Minor cosmetics tweak to our friend kirby

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-09-25 15:57:29 -04:00
Adam Stokes acec68667c Add progress show final bits
Run's curtin in the background while showing a simple
wait box and prompts once complete.

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-09-24 22:30:04 -04:00
Adam Stokes e0f2809019 fix flake error
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-09-24 15:45:00 -04:00
Adam Stokes 667fefb90f py3 - return result from yield
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-09-24 08:57:35 -04:00
Adam Stokes ec60674b9a Comment out some menu items
For alpha release we comment out the menu items
that are not yet supported by curtin.

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-09-24 08:53:15 -04:00
raharper 69f010a3e4 Merge pull request #44 from CanonicalLtd/switch_to_efi_default
Switch to efi default
2015-09-23 10:08:56 -05:00
Ryan Harper 46974cf398 Update comments on overlayfs check
Expand on overlayfs version check.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-23 09:49:24 -05:00
Ryan Harper 79f072ec43 geninstaller: Check overlayfs module version instead of Ubuntu release
overlayfs changed mount options between different kernel versions.
In some cases, an Ubuntu release may have a different kernel than
what was included during the release, so instead use the version
included in the module itself to determine what parameters to pass
when mounting.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-23 09:46:22 -05:00
Ryan Harper 5f424963dc Add efi deps to installer/geninstaller
geninstaller should ensure it has all of the packages it needs to build.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-23 09:22:28 -05:00
Ryan Harper 7501e26fac Makefile: Spell ovmf correctly
Fix package name thinko in Makefile

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-22 22:23:04 -05:00
Ryan Harper d85bb52a63 Finish enabling EFI boot mode
- Fix up issues with efi mode grub serial configuration
- Modify blockdev model to order storage configuration output
- Handle when we're running in uefi mode

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-22 22:19:54 -05:00
Ryan Harper b5b1a00744 Enable running installer in efi mode
Use a flag to set efi mode or not.  Switch to IDE controller for
disks as UEFI bios doesn't support virtio block devices.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-22 13:37:51 -05:00
Ryan Harper df2c3c6aca Update grub2 configuration for UEFI
Update grub2 configuration for UEFI booting with fallback to bios mode.
Include new detection scheme so we don't list existing partitions of the
installer.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-22 13:21:14 -05:00
Ryan Harper 522a546b5c Modify geninstaller for uefi booting
Switch image to use overlay partition and use uefi layout and boot loader
configuration.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-22 13:15:00 -05:00
Ryan Harper a744245f03 Add install_deps_$(ARCH) target to split out per-arch deps
Move arch specific packages into their own target

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-22 08:44:18 -05:00
raharper 88334d4075 Merge pull request #43 from CanonicalLtd/render_network_config
Render network config
2015-09-21 16:43:47 -05:00
Ryan Harper 3f88e6ea09 Merge branch 'render_network_config' of github.com:CanonicalLtd/subiquity into local-render-network
Conflicts:
	subiquity/controllers/filesystem.py
2015-09-21 16:42:18 -05:00
Ryan Harper 6bbf6ba1c8 Fix up user configuration in install image
We use cloud-init to create the initial user on the target system.
Ensure the password login works, that it has a shell (/bin/bash)
and sudo privs via group admin.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-21 16:40:36 -05:00
Ryan Harper acab44c1ec Update dhclient apparmor profile under overlayroot
With updated kernels, overlayroot programs will fail with
a disconnected_path error.  Resolve our use of dhclient by
adding the allow_disconnected flag to the profile.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-21 16:40:35 -05:00
Ryan Harper 9138137057 Fix up async install commands
- Pass in write_fd into async commands so output calls refresh
- Hack the threadpool to a single task so we trivially block on the long
  install and don't invoke our post install until the other is complete
- lots of debugging for command outputs.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-21 16:40:35 -05:00
Ryan Harper 3f2a64b032 Fix curtin invocation
Move config writeout to a non-coroutine method.
Add realname collection (needed for userinfo)
Add debugging to help find issue with async commands

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-21 16:40:35 -05:00
Ryan Harper fbee724441 Split out curtin configuration files
Break out curtin configuration data into multiple configuration files
This sets up our initial install (network +storage) and our secondary
run (postinstall user config).

- encrypt the users password and never log the original value

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>

Conflicts:
	subiquity/controllers/filesystem.py
2015-09-21 16:40:26 -05:00
Ryan Harper 53b9e59929 Generate network configuration
Update network model to generate a network configuration for each
active network device.  Note, some of the examples won't quite work
since we now want updated probert data which includes new information
about the source of any discovered ip.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-21 16:39:54 -05:00
Ryan Harper 0beb904448 Fix up user configuration in install image
We use cloud-init to create the initial user on the target system.
Ensure the password login works, that it has a shell (/bin/bash)
and sudo privs via group admin.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-21 13:17:24 -05:00
Ryan Harper e888b13707 Update dhclient apparmor profile under overlayroot
With updated kernels, overlayroot programs will fail with
a disconnected_path error.  Resolve our use of dhclient by
adding the allow_disconnected flag to the profile.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-21 13:16:06 -05:00
Adam Stokes 1d1f9d5d8f Add network set default route view
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-09-16 10:06:50 -04:00
Adam Stokes 1ebeb45240 Merge pull request #42 from CanonicalLtd/fix-serial-mode
Fix serial mode
2015-09-15 07:51:19 -04:00
Ryan Harper 2cf528d6d3 Fix serial mode
We can't use curses_display with an external event loop (tornado).  The good
news is that we don't have to.  Instead we switch to using agetty to bypass
login, specify the installer and options to execture.  This also handles
respawning the installer and works both on serial and without.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-14 16:40:28 -05:00
Adam Stokes 9d39025f2e disable ceph/iscsi views for now
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-09-14 14:44:15 -04:00
Ryan Harper 27fb85d9b7 Fix up async install commands
- Pass in write_fd into async commands so output calls refresh
- Hack the threadpool to a single task so we trivially block on the long
  install and don't invoke our post install until the other is complete
- lots of debugging for command outputs.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-11 15:53:34 -05:00
Adam Stokes dbad01aa11 Add additional filesystem sections
This contains views/controllers/models for setting RAID,
assigning Ceph storage, and iSCSI.

They are all in their initial implementation stage and
does require more work on the backend to make these
items usable.

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-09-11 15:16:39 -04:00
Ryan Harper 27309f52bd Fix curtin invocation
Move config writeout to a non-coroutine method.
Add realname collection (needed for userinfo)
Add debugging to help find issue with async commands

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-11 13:12:26 -05:00
Ryan Harper 30707efc56 Split out curtin configuration files
Break out curtin configuration data into multiple configuration files
This sets up our initial install (network +storage) and our secondary
run (postinstall user config).

- encrypt the users password and never log the original value

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-11 10:30:46 -05:00
Ryan Harper baf6e377a9 Generate network configuration
Update network model to generate a network configuration for each
active network device.  Note, some of the examples won't quite work
since we now want updated probert data which includes new information
about the source of any discovered ip.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-11 10:30:46 -05:00