Commit Graph

14 Commits

Author SHA1 Message Date
Jinming Wu, Patrick 57ee7cd8e0 .gitignore: ignore .vscode 2021-08-31 15:52:03 +02:00
Michael Hudson-Doyle 9a4871f416 use livefs-editor to make customized isos
a while ago I rewrote inject-subiquity-snap in python, generalized it
and put it at https://github.com/mwhudson/livefs-editor.  TBH, it's
always been better than the shell version but now there's a reason to
switch to it: the impish live server ISO use layers, which the current
shell scripts do not support and livefs-editor now does.
2021-07-19 14:44:27 +12:00
Michael Hudson-Doyle cddfd42799 update .gitignore 2021-07-05 09:25:01 +12:00
Marcus Tomlinson 30089ba86a Ignore .subiquity directory 2020-11-10 17:48:17 +00:00
Scott Moser 51a7169904 tox: Support running tests and flake8 in tox.
This puts into place a tox.ini for running unit tests without
a large amount of deps installed into the system. For example,
we did not want to need libnl-route-3-dev or build-essential installed
in the system in order to run unit tests.

In order avoid import errors in the modules due to these missing
dependencies, we have added a 'fake_deps/' directory that provides
mock'd objects of the dependencies that were used.

The only installed packages necessary for this to run should be
tox itself and its dependencies (pip and friends).  From a clean new
container we can then do:
  apt-get install tox
  git clone ...
  tox

Also along the way:
 * adjust setup.py to only need the DistUtilsExtra during 'build'.
   This means tox usage doesn't require python3-distutils-extra.
 * drop use of lsb_release in favor of built-in parsing.
   This python module wasn't doing much.  We can parse /etc/lsb-release
   ourselves with less footprint.  Also part of the motivation for this
   is that lsb_release was not on pypi.
 * replace use of StorageInfo in test_partition.py with a FakeStorageInfo
 * .gitignore: ignore only the top level 'probert' directory so that
   we can track fake_deps/probert.
 * fix a couple escape chars, by using raw strings (r'').
 * adjust gettext to return un-modified strings rather than '_(string)',
   but support old style if FAKE_TRANSLATE=mangle.
2018-06-05 17:59:46 -04:00
Michael Hudson-Doyle a94f0f2f43 add another helper script 2017-08-23 10:20:44 +12:00
Mathieu Trudel-Lapierre 1b03fb4b21 debian: merge packaging in main subiquity tree.
Signed-off-by: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
2016-06-28 14:02:33 -04:00
Ryan Harper b09f273450 Handle raid installer files
Ignore and clean new target files used to test
raid features.

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-10-27 10:12:28 -05:00
Adam Stokes 11e76e85d2 add probert to ignore list
Gets pulled in externally, lets not commit it
twice by accident

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-09-02 14:08:39 -04:00
Adam Stokes 5ead10de47 add setuptools
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-08-21 14:15:04 -04:00
Adam Stokes 5adeaeb56b Use virtualenv to make use of urwid 1.3.0 and the asyncio library
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-30 13:02:39 -04:00
Adam Stokes d480c49415 add logging
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
2015-06-23 13:02:01 -04:00
Ryan Harper fc269dff06 Use subiquity inside the install image
- Tar up the subiquity code and inject that into the user-data
 - Add support for encoding when adding binary files
 - Until we have a way to detect serial presence, run installer on tty1
 - Add power_state hook to shut machine off after subiquity exits
 - git status ignore image file in installer dir

Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
2015-06-16 14:45:05 -05:00
Adam Stokes d812ff23b8 Initial commit 2015-06-08 17:57:45 -04:00