Commit Graph

307 Commits

Author SHA1 Message Date
Ryan Harper 1ec30081f7 fix string assignment in runinstaller variable
Assign package string to variable correctly.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-30 12:49:06 -05:00
Ryan Harper a5e14bcad9 Always make subiquity-tui available in /usr/local/bin
The subiquity service always expects subiquity-tui to be in
/usr/local/bin.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-30 12:48:21 -05:00
Ryan Harper 6fe10c0a1a Make sure we tar up either in-tree or installed subuiquity source
We want geninstaller to acquire the subiquity source from either
the in-tree directories, or if running installed from a deb, the
path where it was installed.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-30 12:44:36 -05:00
Adam Stokes 55f1c30b24 Merge pull request #59 from CanonicalLtd/sign_deb_src_release
Change dpkg-build flags to sign source deb
2015-09-30 11:01:35 -04:00
Ryan Harper 8d7e9aca48 Change dpkg-build flags to sign source deb
Don't include -us -uc when creating deb source and dpkg will
actually sign the source package.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-30 09:57:49 -05:00
Adam Stokes 5102f943a7 Update README.md
Small typo that stood out because of the heading :)
2015-09-29 20:34:45 -04:00
raharper 8dd720eee8 Merge pull request #58 from CanonicalLtd/fix-runinstaller
Fix runinstaller to work after installed
2015-09-29 16:24:00 -05:00
raharper 349edfc7f5 Merge pull request #57 from CanonicalLtd/fix-show-disk-info
Fix is_root check on sudo
2015-09-29 16:23:42 -05:00
raharper 3dc2af13da Merge pull request #56 from CanonicalLtd/fix-tui-rename
Unbreak make and installer script with subiquity-tui rename
2015-09-29 16:23:28 -05:00
Ryan Harper aef1858e69 Unbreak make and installer script with subiquity-tui rename
After renaming bin/subiquity to bin/subiquity-tui we broke a
few things that invoked subiquity via bin/subiquity which is
now bin/subiquity-tui

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-29 16:17:00 -05:00
Ryan Harper ce133c6b06 Fix is_root check on sudo
Add debugging and logging for is_root check.
Fix up logic so we check if sudo_user is non None
Now we can see disk info when running as root in the installer.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-29 16:15:14 -05:00
Ryan Harper 141066c786 Fix runinstaller to work after installed
Cleanup runinstaller to be usable after install via package.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-09-29 15:55:07 -05:00
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