Commit Graph

1863 Commits

Author SHA1 Message Date
Adam Stokes be0f6700ef add probert submodule
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-29 11:09:19 -04:00
Ryan Harper 8902942fc0 Fix storage size
Disk attributes are in sector size, so scale by 512.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-06-25 21:54:03 -05:00
Ryan Harper 6b82c1fc7e create model class in views
The model gets passed into the view, but it's only the class name
We need to create an object of the model class before we can use it.

Also implement new network get_iface_info to dump additional iface
info in the view.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-06-25 21:44:19 -05:00
Ryan Harper 4418c94521 Fix up lint and errors in filesystems
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-06-25 21:22:49 -05:00
Ryan Harper 940b20be08 Lint fix for welcome
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-06-25 21:18:24 -05:00
Ryan Harper b347c17ba7 Lint fix for network
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-06-25 21:17:57 -05:00
Ryan Harper 7e8bc56fec Remove unneeded time/math modules
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-06-25 21:16:39 -05:00
Ryan Harper fa80b0cabe Add probert to subiquity
Update subiquity welcome controller to call probert to extract
host information and present it to the user briefly before
invokin the curtin installer.

Add the install_src to git clone probert.  Pack this as a tarball
in the user-data like subiquity.

Update user-data package installs for new probert deps.

Modify boot parameters to handle systemd persistent nic naming;
we may not always have eth0 as a nic.  Subsequently update
user-data to use bootcmd to automatically attempt to bring up
nics during the boot before the installer.

Finally fix commandline parsing/output in geninstaller.
Implement version parameter and better caching of previous
maas ephemeral images.

Fix issue with removing cache after unpacking rootfs which is
now owned by root (add sudo to rm of cache).

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-06-25 21:12:42 -05:00
Ryan Harper 66c3c7a419 Add lint and unit targets
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-06-25 20:42:14 -05:00
Adam Stokes 02ff797fbb Add previous controller navigation
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-24 16:37:39 -04:00
Adam Stokes ef1f040a84 Add filesystem setup controller/view/model
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-24 16:22:42 -04:00
Adam Stokes d2f4b16a4f Dont initialize network model class
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-24 16:19:11 -04:00
Adam Stokes 73d5b9b3b2 Feature enhancements:
- Add network controller/view/model
- Add route manager to switch views during installer
- Add logging support

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-24 16:09:25 -04:00
Adam Stokes dc153cb54a add network view/controller
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-24 15:44:48 -04:00
Adam Stokes 18d011693b fix render/redraw_Screen
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-24 15:10:34 -04:00
Adam Stokes 33dd1d28dc Add controller index reset
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-24 14:50:33 -04:00
Adam Stokes 66ff8fef18 add controller policy
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-24 14:28:47 -04:00
Adam Stokes 771d9503d5 rework topmost view widget
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-23 16:29:08 -04:00
Adam Stokes 7ca2624fb1 more logging
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-23 13:09:26 -04:00
Adam Stokes d480c49415 add logging
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-23 13:02:01 -04:00
Adam Stokes e52aa70377 add line break
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-23 12:48:37 -04:00
Adam Stokes c780386ceb more work on routing controllers
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-23 12:40:10 -04:00
Adam Stokes dcb0337fdc additional models
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-22 16:34:37 -04:00
Adam Stokes 781def95c9 Start work on view switching and controller routing
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-22 11:15:44 -04:00
Adam Stokes 86f7199194 install path view/controller/model
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-22 09:09:34 -04:00
Ryan Harper a446a15744 Trivial README.md fixups
Fix capitalization and add a make target

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-06-18 08:48:50 -05:00
Adam Stokes e9e1ad9199 Don't set color for empty Text() widgets
In some cases an empty line is drawn when we use Text("")
for padding lines. Don't associate those padders with a
color attribute.

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-17 19:00:43 -04:00
Adam Stokes e7d3f76290 Merge pull request #7 from CanonicalLtd/subiquity-call-curtin
Subiquity call curtin
2015-06-17 18:09:08 -04:00
Ryan Harper 13934d8d79 fix merge conflicts 2015-06-17 16:08:16 -05:00
Ryan Harper 29c2d3301e Add new menu choices (text vs serial)
Controls whether we launch subiquity over serial or on the tty.
Add installer resource files as dependencies to force image
regen when modified.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-06-17 15:47:28 -05:00
Ryan Harper d3c0b55dbe Call curtin installer from subiquity
Hacky method, but in welcome controller, use subprocess to
call a script which invokes curtin at a known location with
a specific set of parameters.

Modify the installer configuration and start-up scripts to
ensure Subiquity runs on tty1 and keeps the service running.

Upon hitting 'Confirm' Subiquity will exec curtin_wrap.sh
which calls the *real* curtin.  Cloud-init user-data has been
modified to unpack the curtin archive embedded.

When complete, the target.img file is bootable.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-06-17 15:47:23 -05:00
Ryan Harper 3345ed79f3 Add new menu choices (text vs serial)
Controls whether we launch subiquity over serial or on the tty.
Add installer resource files as dependencies to force image
regen when modified.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-06-17 15:37:55 -05:00
Adam Stokes b9807ed5b9 Fix timeout and stopping of systemd when chvt is run.
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-17 16:04:45 -04:00
Adam Stokes 2bad57c76a Merge pull request #6 from CanonicalLtd/fix_issue_4
Fix issue 4
2015-06-17 14:58:56 -04:00
Ryan Harper 4cd052c6ef Runtime check on which qemu is being used and install the prereq before attempting to use qemu-system-xxxx. 2015-06-17 13:09:52 -05:00
Ryan Harper 698e76127a syslinux binaries aren't standalone, so copy all .c32 files into extlinux target dir. 2015-06-17 13:09:21 -05:00
Ryan Harper eeadb43f93 add gdisk prereq for sgdisk command 2015-06-17 13:08:27 -05:00
Ryan Harper 4d73e1f27c make sure dldir exists before downloading things. 2015-06-17 13:07:56 -05:00
Adam Stokes 63d138a4ee Update docstring in utils
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-17 12:49:13 -04:00
Adam Stokes adca8b3539 Make use of WelcomeModel for a simple language selection
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-17 12:49:13 -04:00
Adam Stokes 932ef0eff2 Update list widget
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-17 12:49:13 -04:00
Adam Stokes b9db4fc7a2 remove monochrome settings in an attempt to fix cursor placement in serial
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-17 12:49:13 -04:00
Adam Stokes f6634c5e4f Update welcome model to list a few languages
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-17 12:49:13 -04:00
Adam Stokes 1e253a7759 Merge pull request #5 from CanonicalLtd/fix_issue_3
Fix issue 3
2015-06-17 09:40:13 -04:00
Ryan Harper 7d536c917a Fix issue 3
Install simplestreams package in the prereqs for building installer image.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-06-17 08:38:12 -05:00
Adam Stokes e4c7f3d6cb Still working out how I want the models to work
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-16 20:17:40 -04:00
Ryan Harper 8fa43b57ea Call curtin installer from subiquity
Hacky method, but in welcome controller, use subprocess to
call a script which invokes curtin at a known location with
a specific set of parameters.

Modify the installer configuration and start-up scripts to
ensure Subiquity runs on tty1 and keeps the service running.

Upon hitting 'Confirm' Subiquity will exec curtin_wrap.sh
which calls the *real* curtin.  Cloud-init user-data has been
modified to unpack the curtin archive embedded.

When complete, the target.img file is bootable.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-06-16 18:59:13 -05:00
Adam Stokes a80d6b16d0 Document Padding/Color classes and methods
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-16 19:40:31 -04:00
Adam Stokes ffc4453474 Start work on language selection screen
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-16 19:17:04 -04:00
Adam Stokes 710a7da864 Make anchors match closer to our guideline doc
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-16 19:16:40 -04:00