2017-03-13 18:59:50 +00:00
|
|
|
name: subiquity
|
2021-06-11 03:38:54 +00:00
|
|
|
base: core20
|
2017-08-22 00:19:17 +00:00
|
|
|
version: git
|
2017-03-13 18:59:50 +00:00
|
|
|
summary: Ubuntu installer
|
|
|
|
description: The Ubuntu server installer
|
|
|
|
confinement: classic
|
|
|
|
|
|
|
|
apps:
|
|
|
|
subiquity:
|
2021-10-07 21:43:38 +00:00
|
|
|
command: usr/bin/subiquity-cmd
|
2020-06-18 09:13:38 +00:00
|
|
|
environment:
|
|
|
|
PYTHONIOENCODING: utf-8
|
2021-07-13 23:29:44 +00:00
|
|
|
SUBIQUITY_ROOT: $SNAP
|
2021-10-07 21:43:38 +00:00
|
|
|
PYTHON: $SNAP/usr/bin/python3.8
|
2017-03-13 18:59:50 +00:00
|
|
|
probert:
|
|
|
|
command: bin/probert
|
2020-09-23 01:29:01 +00:00
|
|
|
subiquity-server:
|
|
|
|
command: usr/bin/subiquity-server
|
|
|
|
daemon: simple
|
|
|
|
restart-condition: always
|
|
|
|
environment:
|
|
|
|
PYTHONIOENCODING: utf-8
|
2021-07-13 23:29:44 +00:00
|
|
|
SUBIQUITY_ROOT: $SNAP
|
2021-09-14 20:50:49 +00:00
|
|
|
PYTHON: $SNAP/usr/bin/python3.8
|
|
|
|
PY3OR2_PYTHON: $SNAP/usr/bin/python3.8
|
|
|
|
PATH: $PATH:$SNAP/bin
|
2018-02-09 00:53:03 +00:00
|
|
|
subiquity-service:
|
|
|
|
command: usr/bin/subiquity-service
|
|
|
|
daemon: simple
|
2018-02-12 23:42:34 +00:00
|
|
|
restart-condition: always
|
2020-06-18 09:13:38 +00:00
|
|
|
environment:
|
|
|
|
PYTHONIOENCODING: utf-8
|
2021-07-13 23:29:44 +00:00
|
|
|
SUBIQUITY_ROOT: $SNAP
|
2021-09-14 20:50:49 +00:00
|
|
|
PYTHON: $SNAP/usr/bin/python3.8
|
2017-03-13 18:59:50 +00:00
|
|
|
|
|
|
|
parts:
|
2018-11-19 00:58:25 +00:00
|
|
|
curtin:
|
2020-04-21 16:27:16 +00:00
|
|
|
override-pull: |
|
|
|
|
snapcraftctl pull
|
|
|
|
PACKAGED_VERSION="$(git describe --long --abbrev=9 --match=[0-9][0-9]*)"
|
|
|
|
sed -e "s,@@PACKAGED_VERSION@@,$PACKAGED_VERSION,g" -i curtin/version.py
|
2018-11-19 00:58:25 +00:00
|
|
|
plugin: python
|
|
|
|
source-type: git
|
2020-05-07 00:48:53 +00:00
|
|
|
source: https://git.launchpad.net/curtin
|
2021-08-23 23:45:15 +00:00
|
|
|
source-commit: 809817fdac257de1769e385a42aeaf3d5bcc2c60
|
2021-09-14 20:50:49 +00:00
|
|
|
build-packages:
|
|
|
|
- shared-mime-info
|
|
|
|
- zlib1g-dev
|
2021-01-20 04:10:48 +00:00
|
|
|
python-packages:
|
|
|
|
- pyyaml==5.3.1
|
|
|
|
- oauthlib
|
|
|
|
- jsonschema
|
|
|
|
- pyrsistent
|
2021-09-14 20:50:49 +00:00
|
|
|
- wheel
|
|
|
|
- setuptools
|
|
|
|
- pip
|
|
|
|
- bson
|
|
|
|
- urwid
|
|
|
|
- requests
|
|
|
|
- requests-unixsocket
|
2018-11-19 02:06:41 +00:00
|
|
|
organize:
|
|
|
|
'lib/python*/site-packages/usr/lib/curtin': 'usr/lib/'
|
2019-04-04 02:04:08 +00:00
|
|
|
stage:
|
|
|
|
- "*"
|
|
|
|
- "-lib/python*/site-packages/_yaml.*.so"
|
2021-09-14 20:50:49 +00:00
|
|
|
- "-lib/python*/site-packages/setuptools"
|
|
|
|
- "-lib/python*/site-packages/pip"
|
|
|
|
- "-lib/python*/site-packages/pkg_resources"
|
2019-04-04 02:04:08 +00:00
|
|
|
- "-lib/python*/site-packages/jsonschema"
|
2021-09-14 20:50:49 +00:00
|
|
|
- "-lib/python*/site-packages/wheel*"
|
|
|
|
- "-lib/python*/site-packages/probert"
|
|
|
|
- "-bin/activate*"
|
|
|
|
- "-lib/python3.8/site-packages/__pycache__/six.cpython*"
|
|
|
|
- "-lib/python3.8/site-packages/pip-*.dist-info/RECORD"
|
|
|
|
- "-lib/python3.8/site-packages/wheel-*.dist-info/RECORD"
|
|
|
|
- "-lib/python3.8/site-packages/_distutils_hack"
|
2017-03-13 18:59:50 +00:00
|
|
|
subiquity:
|
|
|
|
plugin: python
|
2017-09-20 01:20:27 +00:00
|
|
|
build-packages:
|
2021-09-14 20:50:49 +00:00
|
|
|
- gettext
|
2017-09-20 01:20:27 +00:00
|
|
|
- libsystemd-dev
|
|
|
|
- lsb-release
|
|
|
|
- pkg-config
|
2021-09-14 20:50:49 +00:00
|
|
|
- python3-yaml
|
|
|
|
- python3-attr
|
|
|
|
- python3-systemd
|
|
|
|
- python3-aiohttp
|
|
|
|
- python3-yarl
|
|
|
|
- python3-urwid
|
|
|
|
- python3-bson
|
|
|
|
- python3-requests-unixsocket
|
|
|
|
- python3-requests
|
2017-09-20 01:20:27 +00:00
|
|
|
stage-packages:
|
2020-03-20 01:48:16 +00:00
|
|
|
- cloud-init
|
2018-01-16 23:27:39 +00:00
|
|
|
- libsystemd0
|
2017-09-20 01:20:27 +00:00
|
|
|
- iso-codes
|
|
|
|
- lsb-release
|
2018-12-12 00:59:00 +00:00
|
|
|
- ssh-import-id
|
2021-09-14 20:50:49 +00:00
|
|
|
- libpython3.8-minimal
|
|
|
|
- libpython3.8-stdlib
|
|
|
|
- libpython3-stdlib
|
|
|
|
- python3.8-minimal
|
|
|
|
- python3-minimal
|
|
|
|
- python3-yaml
|
|
|
|
- python3-apport
|
|
|
|
- python3-attr
|
|
|
|
- python3-systemd
|
|
|
|
- python3-aiohttp
|
|
|
|
- python3-yarl
|
|
|
|
- python3-urwid
|
|
|
|
- python3-bson
|
|
|
|
- python3-requests-unixsocket
|
|
|
|
- python3-requests
|
|
|
|
- python3-pyudev
|
2017-08-22 00:05:54 +00:00
|
|
|
source: .
|
2017-09-04 22:33:27 +00:00
|
|
|
source-type: git
|
2021-06-11 03:38:54 +00:00
|
|
|
build-environment:
|
2021-09-14 20:50:49 +00:00
|
|
|
- PATH: "/usr/bin:$PATH"
|
2017-03-13 18:59:50 +00:00
|
|
|
organize:
|
|
|
|
'bin/subiquity-tui': usr/bin/subiquity
|
2018-02-09 00:53:03 +00:00
|
|
|
'bin/subiquity-service': usr/bin/subiquity-service
|
2020-09-23 01:29:01 +00:00
|
|
|
'bin/subiquity-server': usr/bin/subiquity-server
|
2021-10-07 21:43:38 +00:00
|
|
|
'bin/subiquity-cmd': usr/bin/subiquity-cmd
|
2017-10-11 07:31:09 +00:00
|
|
|
users-and-groups:
|
2020-04-09 18:47:12 +00:00
|
|
|
plugin: nil
|
2017-10-11 07:31:09 +00:00
|
|
|
build-packages:
|
|
|
|
- user-setup
|
2018-11-18 23:36:55 +00:00
|
|
|
override-build: |
|
2017-10-11 07:31:09 +00:00
|
|
|
echo "get passwd/user-default-groups" | \
|
2017-10-11 07:57:12 +00:00
|
|
|
debconf-communicate user-setup | \
|
2018-11-18 23:36:55 +00:00
|
|
|
cut -d ' ' -f 2- > $SNAPCRAFT_PART_INSTALL/users-and-groups
|
|
|
|
cp /usr/lib/user-setup/reserved-usernames $SNAPCRAFT_PART_INSTALL/
|
2017-11-19 22:05:05 +00:00
|
|
|
stage:
|
|
|
|
- users-and-groups
|
2018-07-16 22:32:48 +00:00
|
|
|
- reserved-usernames
|
2021-03-11 03:11:14 +00:00
|
|
|
keyboard-data:
|
2020-04-09 18:47:12 +00:00
|
|
|
plugin: nil
|
2018-02-07 21:37:22 +00:00
|
|
|
build-packages:
|
|
|
|
- console-setup
|
2018-04-23 22:08:43 +00:00
|
|
|
- locales
|
2021-03-11 03:11:14 +00:00
|
|
|
- python3-attr
|
2021-06-11 02:21:16 +00:00
|
|
|
- python3-yaml
|
2021-03-11 03:11:14 +00:00
|
|
|
override-build: PYTHONPATH=$SNAPCRAFT_PROJECT_DIR/ $SNAPCRAFT_PROJECT_DIR/scripts/make-kbd-info.py
|
2018-02-07 21:37:22 +00:00
|
|
|
stage:
|
2021-03-11 03:11:14 +00:00
|
|
|
- kbds/
|
2018-06-25 22:54:00 +00:00
|
|
|
font:
|
|
|
|
plugin: dump
|
2020-04-09 18:47:12 +00:00
|
|
|
source: ./
|
2021-03-11 03:11:14 +00:00
|
|
|
source-type: git
|
2018-11-27 01:28:36 +00:00
|
|
|
organize:
|
|
|
|
font/subiquity.psf: subiquity.psf
|
2018-06-25 22:54:00 +00:00
|
|
|
stage:
|
|
|
|
- subiquity.psf
|
2020-05-07 00:47:09 +00:00
|
|
|
languagelists:
|
|
|
|
plugin: nil
|
|
|
|
build-packages:
|
|
|
|
- localechooser-data
|
|
|
|
override-build: |
|
2020-06-21 19:51:35 +00:00
|
|
|
grep '^path-exclude=.*LC_MESSAGES.*' /etc/dpkg/dpkg.cfg.d/excludes && {
|
|
|
|
sed -i 's/^path-exclude.*LC_MESSAGES.*/#\0/g' /etc/dpkg/dpkg.cfg.d/excludes
|
|
|
|
apt-get -y install --reinstall iso-codes
|
|
|
|
} || true
|
2020-05-11 04:36:42 +00:00
|
|
|
$SNAPCRAFT_PROJECT_DIR/scripts/make-language-lists $SNAPCRAFT_PROJECT_DIR/po > $SNAPCRAFT_PART_INSTALL/languagelist
|
2020-05-07 00:47:09 +00:00
|
|
|
stage:
|
2020-05-11 04:36:42 +00:00
|
|
|
- languagelist
|
2021-09-14 20:50:49 +00:00
|
|
|
|
2017-03-13 18:59:50 +00:00
|
|
|
probert:
|
|
|
|
plugin: python
|
2021-09-14 20:50:49 +00:00
|
|
|
build-packages:
|
|
|
|
- python-setuptools
|
|
|
|
- build-essential
|
|
|
|
- libnl-3-dev
|
|
|
|
- libnl-genl-3-dev
|
|
|
|
- libnl-route-3-dev
|
2021-02-18 21:33:38 +00:00
|
|
|
source: https://github.com/canonical/probert.git
|
2017-03-13 18:59:50 +00:00
|
|
|
source-type: git
|
2021-08-03 01:02:09 +00:00
|
|
|
source-commit: 2bb505172b5f97372eb1abd12ced4629e852504b
|
2020-04-09 18:47:12 +00:00
|
|
|
requirements: [requirements.txt]
|
2021-09-14 20:50:49 +00:00
|
|
|
stage:
|
|
|
|
- "*"
|
|
|
|
- -bin/python3*
|
|
|
|
- -bin/activate*
|
|
|
|
- -lib/python3.8/site-packages/_distutils_hack
|
|
|
|
- -lib/python3.8/site-packages/pip*
|
|
|
|
- -lib/python3.8/site-packages/pkg_resources
|
|
|
|
- -lib/python3.8/site-packages/setuptools
|
|
|
|
- -lib/python3.8/site-packages/wheel*
|