2017-03-13 18:59:50 +00:00
|
|
|
name: subiquity
|
2020-04-09 18:47:12 +00:00
|
|
|
base: core18
|
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:
|
|
|
|
command: usr/bin/subiquity
|
2020-06-18 09:13:38 +00:00
|
|
|
environment:
|
|
|
|
PYTHONIOENCODING: utf-8
|
2017-09-29 20:51:58 +00:00
|
|
|
subiquity-loadkeys:
|
|
|
|
command: usr/bin/subiquity-loadkeys
|
2019-02-21 13:27:36 +00:00
|
|
|
subiquity-configure-apt:
|
|
|
|
command: usr/bin/subiquity-configure-apt
|
2019-05-08 22:01:49 +00:00
|
|
|
subiquity-configure-run:
|
|
|
|
command: usr/bin/subiquity-configure-run
|
2017-03-13 18:59:50 +00:00
|
|
|
console-conf:
|
|
|
|
command: usr/bin/console-conf
|
|
|
|
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
|
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
|
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-01-27 02:20:32 +00:00
|
|
|
source-tag: "21.2"
|
2021-01-20 04:10:48 +00:00
|
|
|
python-packages:
|
|
|
|
- pyyaml==5.3.1
|
|
|
|
- oauthlib
|
|
|
|
- jsonschema
|
|
|
|
- pyrsistent
|
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"
|
|
|
|
- "-lib/python*/site-packages/jsonschema"
|
2020-04-15 21:11:32 +00:00
|
|
|
apport:
|
|
|
|
plugin: python
|
|
|
|
source-type: bzr
|
|
|
|
source: lp:~ubuntu-core-dev/ubuntu/focal/apport/ubuntu
|
|
|
|
build-packages:
|
|
|
|
- python3-distutils-extra
|
|
|
|
- python3-apt
|
|
|
|
- python3-httplib2
|
|
|
|
- python3-problem-report
|
|
|
|
- python3-requests-unixsocket
|
2020-04-15 04:47:02 +00:00
|
|
|
stage-packages:
|
2020-04-15 21:11:32 +00:00
|
|
|
- python3-distutils-extra
|
|
|
|
- python3-apt
|
|
|
|
- python3-httplib2
|
|
|
|
- python3-problem-report
|
|
|
|
- python3-requests-unixsocket
|
2020-04-15 04:47:02 +00:00
|
|
|
stage:
|
2020-04-15 21:11:32 +00:00
|
|
|
- "lib/python*/site-packages/"
|
|
|
|
- "-lib/python*/site-packages/etc/*"
|
|
|
|
- "-lib/python*/site-packages/lib/*"
|
|
|
|
- "share/apport/general-hooks/"
|
|
|
|
- "usr/"
|
2017-03-13 18:59:50 +00:00
|
|
|
subiquity:
|
|
|
|
plugin: python
|
2017-09-20 01:20:27 +00:00
|
|
|
build-packages:
|
|
|
|
- libsystemd-dev
|
|
|
|
- lsb-release
|
|
|
|
- pkg-config
|
2018-01-16 00:10:23 +00:00
|
|
|
- python3-urwid
|
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
|
2019-11-20 10:05:08 +00:00
|
|
|
- python3-bson
|
2018-01-16 00:10:23 +00:00
|
|
|
- python3-urwid
|
2018-05-22 01:59:06 +00:00
|
|
|
- python3-requests
|
|
|
|
- python3-requests-unixsocket
|
2018-12-12 00:59:00 +00:00
|
|
|
- ssh-import-id
|
2017-03-13 18:59:50 +00:00
|
|
|
python-packages:
|
2017-03-22 17:40:46 +00:00
|
|
|
- attrs
|
2021-01-20 04:10:48 +00:00
|
|
|
- pyyaml==5.3.1
|
2017-09-18 11:13:34 +00:00
|
|
|
- systemd-python
|
2020-09-23 01:29:01 +00:00
|
|
|
- aiohttp
|
2020-10-12 03:20:33 +00:00
|
|
|
- yarl==1.5.1
|
2018-01-16 00:10:23 +00:00
|
|
|
#- urwid
|
2017-08-22 00:05:54 +00:00
|
|
|
source: .
|
2017-09-04 22:33:27 +00:00
|
|
|
source-type: git
|
2017-03-13 18:59:50 +00:00
|
|
|
organize:
|
|
|
|
'bin/console-conf-tui': usr/bin/console-conf
|
|
|
|
'bin/subiquity-tui': usr/bin/subiquity
|
2017-09-25 17:41:36 +00:00
|
|
|
'bin/subiquity-loadkeys': usr/bin/subiquity-loadkeys
|
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
|
2019-02-21 13:27:36 +00:00
|
|
|
'bin/subiquity-configure-apt': usr/bin/subiquity-configure-apt
|
2019-05-09 13:15:03 +00:00
|
|
|
'bin/subiquity-configure-run': usr/bin/subiquity-configure-run
|
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
|
2018-02-07 21:37:22 +00:00
|
|
|
kbdnames:
|
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
|
2018-02-07 21:37:22 +00:00
|
|
|
- xkb-data-i18n
|
2018-11-18 23:36:55 +00:00
|
|
|
override-build: |
|
|
|
|
/usr/share/console-setup/kbdnames-maker /usr/share/console-setup/KeyboardNames.pl > $SNAPCRAFT_PART_INSTALL/kbdnames.txt
|
2018-02-07 21:37:22 +00:00
|
|
|
stage:
|
2018-02-07 22:57:52 +00:00
|
|
|
- kbdnames.txt
|
2018-06-25 22:54:00 +00:00
|
|
|
font:
|
|
|
|
plugin: dump
|
2020-04-09 18:47:12 +00:00
|
|
|
source: ./
|
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
|
2017-03-13 18:59:50 +00:00
|
|
|
probert:
|
|
|
|
plugin: python
|
2020-06-21 20:05:10 +00:00
|
|
|
build-packages: [python-setuptools, build-essential, libnl-3-dev, libnl-genl-3-dev, libnl-route-3-dev]
|
2017-03-13 18:59:50 +00:00
|
|
|
source: https://github.com/CanonicalLtd/probert.git
|
|
|
|
source-type: git
|
2020-12-15 10:44:33 +00:00
|
|
|
source-commit: 844c957b7f61f78bbd814cceef87f0d8eb218675
|
2020-04-09 18:47:12 +00:00
|
|
|
requirements: [requirements.txt]
|