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
|
2022-04-14 20:02:21 +00:00
|
|
|
source-code: https://github.com/canonical/subiquity
|
|
|
|
issues: https://bugs.launchpad.net/subiquity/+filebug
|
2022-07-26 23:42:52 +00:00
|
|
|
contact: https://bugs.launchpad.net/subiquity/+filebug
|
2017-03-13 18:59:50 +00:00
|
|
|
|
|
|
|
apps:
|
|
|
|
subiquity:
|
2021-10-07 21:43:38 +00:00
|
|
|
command: usr/bin/subiquity-cmd
|
2020-06-18 09:13:38 +00:00
|
|
|
environment:
|
2022-07-15 00:05:13 +00:00
|
|
|
# Save original values of environment variables, we want to restore them
|
|
|
|
# for the debug shell (LP: #1975629) and restart (LP: #1978139)
|
|
|
|
PYTHONPATH_ORIG: $PYTHONPATH
|
|
|
|
PATH_ORIG: $PATH
|
|
|
|
PYTHONIOENCODING_ORIG: $PYTHONIOENCODING
|
2020-06-18 09:13:38 +00:00
|
|
|
PYTHONIOENCODING: utf-8
|
2022-07-15 00:05:13 +00:00
|
|
|
SUBIQUITY_ROOT_ORIG: $SUBIQUITY_ROOT
|
2021-07-13 23:29:44 +00:00
|
|
|
SUBIQUITY_ROOT: $SNAP
|
2022-07-15 00:05:13 +00:00
|
|
|
PYTHON_ORIG: $PYTHON
|
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
|
2022-06-29 16:17:58 +00:00
|
|
|
PATH: $PATH:$SNAP/bin:$SNAP/sbin
|
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:
|
2022-06-13 17:39:06 +00:00
|
|
|
# Save original values of environment variables, we want to restore them
|
|
|
|
# for the debug shell (LP: #1975629).
|
|
|
|
PYTHONPATH_ORIG: $PYTHONPATH
|
|
|
|
PATH_ORIG: $PATH
|
|
|
|
PYTHONIOENCODING_ORIG: $PYTHONIOENCODING
|
2020-06-18 09:13:38 +00:00
|
|
|
PYTHONIOENCODING: utf-8
|
2022-06-13 17:39:06 +00:00
|
|
|
SUBIQUITY_ROOT_ORIG: $SUBIQUITY_ROOT
|
2021-07-13 23:29:44 +00:00
|
|
|
SUBIQUITY_ROOT: $SNAP
|
2022-06-13 17:39:06 +00:00
|
|
|
PYTHON_ORIG: $PYTHON
|
2021-09-14 20:50:49 +00:00
|
|
|
PYTHON: $SNAP/usr/bin/python3.8
|
2022-01-24 19:37:48 +00:00
|
|
|
os-prober:
|
|
|
|
command: usr/bin/os-prober
|
2022-02-28 22:14:55 +00:00
|
|
|
environment:
|
|
|
|
OS_PROBER_SHARE: $SNAP/usr/share
|
|
|
|
OS_PROBER_LIB: $SNAP/usr/lib
|
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
|
2022-09-07 00:02:11 +00:00
|
|
|
source-commit: 47c222681c81110a185497a64749f23596e29b16
|
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
|
|
|
|
- pyrsistent
|
2021-09-14 20:50:49 +00:00
|
|
|
- wheel
|
|
|
|
- setuptools
|
|
|
|
- pip
|
|
|
|
- urwid
|
|
|
|
- requests
|
|
|
|
- requests-unixsocket
|
2018-11-19 02:06:41 +00:00
|
|
|
organize:
|
2022-08-29 19:54:43 +00:00
|
|
|
lib/python*/site-packages/usr/lib/curtin: usr/lib/
|
2019-04-04 02:04:08 +00:00
|
|
|
stage:
|
2022-08-29 19:54:43 +00:00
|
|
|
- '*'
|
|
|
|
- -lib/python*/site-packages/_yaml.*.so
|
|
|
|
- -lib/python*/site-packages/setuptools
|
|
|
|
- -lib/python*/site-packages/pip
|
|
|
|
- -lib/python*/site-packages/pkg_resources
|
|
|
|
- -lib/python*/site-packages/jsonschema
|
|
|
|
- -lib/python*/site-packages/wheel*
|
|
|
|
- -lib/python*/site-packages/probert
|
|
|
|
- -bin/activate*
|
|
|
|
- -bin/python
|
|
|
|
- -bin/python3*
|
|
|
|
- -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
|
2022-06-29 16:17:58 +00:00
|
|
|
- ntfs-3g
|
2021-09-14 20:50:49 +00:00
|
|
|
- python3.8-minimal
|
|
|
|
- python3-minimal
|
|
|
|
- python3-yaml
|
|
|
|
- python3-apport
|
|
|
|
- python3-attr
|
|
|
|
- python3-systemd
|
|
|
|
- python3-aiohttp
|
2022-08-25 17:22:11 +00:00
|
|
|
- python3-jsonschema
|
2021-09-14 20:50:49 +00:00
|
|
|
- python3-yarl
|
|
|
|
- python3-urwid
|
|
|
|
- python3-bson
|
|
|
|
- python3-requests-unixsocket
|
|
|
|
- python3-requests
|
|
|
|
- python3-pyudev
|
2022-01-11 10:12:10 +00:00
|
|
|
- ubuntu-advantage-tools
|
2021-11-19 21:31:20 +00:00
|
|
|
stage:
|
2022-08-29 19:54:43 +00:00
|
|
|
- '*'
|
2021-11-19 21:31:20 +00:00
|
|
|
- -bin/python
|
|
|
|
- -bin/python3
|
2022-08-25 17:22:11 +00:00
|
|
|
- -lib/python3.8/site-packages/jsonschema
|
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:
|
2022-08-29 19:54:43 +00:00
|
|
|
- PATH: /usr/bin:$PATH
|
2017-03-13 18:59:50 +00:00
|
|
|
organize:
|
2022-08-29 19:54:43 +00:00
|
|
|
bin/subiquity-tui: usr/bin/subiquity
|
|
|
|
bin/subiquity-service: usr/bin/subiquity-service
|
|
|
|
bin/subiquity-server: usr/bin/subiquity-server
|
|
|
|
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
|
2022-07-29 19:37:57 +00:00
|
|
|
override-build: |
|
|
|
|
PYTHONPATH=$SNAPCRAFT_PROJECT_DIR/ $SNAPCRAFT_PROJECT_DIR/scripts/make-kbd-info.py
|
|
|
|
cp $SNAPCRAFT_PROJECT_DIR/kbds/keyboard-configuration.yaml \
|
|
|
|
$SNAPCRAFT_PART_INSTALL/kbds/keyboard-configuration.yaml
|
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
|
2022-05-27 17:17:53 +00:00
|
|
|
source-commit: 31778895be3002422e9e8758d42940f290dc70af
|
2020-04-09 18:47:12 +00:00
|
|
|
requirements: [requirements.txt]
|
2021-09-14 20:50:49 +00:00
|
|
|
stage:
|
2022-08-29 19:54:43 +00:00
|
|
|
- '*'
|
2021-11-19 21:31:20 +00:00
|
|
|
- -bin/python
|
2021-09-14 20:50:49 +00:00
|
|
|
- -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*
|
2022-08-25 17:22:11 +00:00
|
|
|
- -lib/python3.8/site-packages/jsonschema
|
2021-12-08 19:22:19 +00:00
|
|
|
|
|
|
|
os-prober:
|
|
|
|
plugin: nil
|
2022-02-28 22:00:25 +00:00
|
|
|
source-type: git
|
|
|
|
source: https://github.com/dbungert/os-prober
|
2022-02-28 22:14:55 +00:00
|
|
|
source-commit: 80d6a3157a814278af4f96da91f9ab7218e20fdc
|
2022-02-28 22:00:25 +00:00
|
|
|
build-packages:
|
|
|
|
- build-essential
|
|
|
|
- debhelper
|
2022-03-14 14:19:37 +00:00
|
|
|
- fakeroot
|
2022-02-28 22:00:25 +00:00
|
|
|
override-build: |
|
2022-03-14 14:19:37 +00:00
|
|
|
./debian/rules build
|
|
|
|
fakeroot ./debian/rules install
|
2022-02-28 22:00:25 +00:00
|
|
|
cp -a debian/os-prober/{usr,var} $SNAPCRAFT_PART_INSTALL
|