forked from canonical/subiquity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnapcraft.yaml
133 lines (131 loc) · 3.72 KB
/
snapcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
name: subiquity
base: core18
version: git
summary: Ubuntu installer
description: The Ubuntu server installer
confinement: classic
apps:
subiquity:
command: usr/bin/subiquity
subiquity-loadkeys:
command: usr/bin/subiquity-loadkeys
subiquity-configure-apt:
command: usr/bin/subiquity-configure-apt
subiquity-configure-run:
command: usr/bin/subiquity-configure-run
console-conf:
command: usr/bin/console-conf
probert:
command: bin/probert
subiquity-service:
command: usr/bin/subiquity-service
daemon: simple
restart-condition: always
parts:
curtin:
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
plugin: python
source-type: git
source: https://git.launchpad.net/curtin
source-commit: 145e493938b7296fab46a56560ec4e62b4326b62
requirements: [requirements.txt]
organize:
'lib/python*/site-packages/usr/lib/curtin': 'usr/lib/'
stage:
- "*"
- "-lib/python*/site-packages/_yaml.*.so"
- "-lib/python*/site-packages/jsonschema"
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
stage-packages:
- python3-distutils-extra
- python3-apt
- python3-httplib2
- python3-problem-report
- python3-requests-unixsocket
stage:
- "lib/python*/site-packages/"
- "-lib/python*/site-packages/etc/*"
- "-lib/python*/site-packages/lib/*"
- "share/apport/general-hooks/"
- "usr/"
subiquity:
plugin: python
build-packages:
- libsystemd-dev
- lsb-release
- pkg-config
- python3-distutils-extra
- python3-urwid
stage-packages:
- cloud-init
- libsystemd0
- iso-codes
- lsb-release
- python3-bson
- python3-distutils-extra
- python3-urwid
- python3-requests
- python3-requests-unixsocket
- ssh-import-id
python-packages:
- attrs
- pyyaml
- systemd-python
#- urwid
source: .
source-type: git
organize:
'bin/console-conf-tui': usr/bin/console-conf
'bin/subiquity-tui': usr/bin/subiquity
'bin/subiquity-loadkeys': usr/bin/subiquity-loadkeys
'bin/subiquity-service': usr/bin/subiquity-service
'bin/subiquity-configure-apt': usr/bin/subiquity-configure-apt
'bin/subiquity-configure-run': usr/bin/subiquity-configure-run
users-and-groups:
plugin: nil
build-packages:
- user-setup
override-build: |
echo "get passwd/user-default-groups" | \
debconf-communicate user-setup | \
cut -d ' ' -f 2- > $SNAPCRAFT_PART_INSTALL/users-and-groups
cp /usr/lib/user-setup/reserved-usernames $SNAPCRAFT_PART_INSTALL/
stage:
- users-and-groups
- reserved-usernames
kbdnames:
plugin: nil
build-packages:
- console-setup
- locales
- xkb-data-i18n
override-build: |
/usr/share/console-setup/kbdnames-maker /usr/share/console-setup/KeyboardNames.pl > $SNAPCRAFT_PART_INSTALL/kbdnames.txt
stage:
- kbdnames.txt
font:
plugin: dump
source: ./
organize:
font/subiquity.psf: subiquity.psf
stage:
- subiquity.psf
probert:
plugin: python
build-packages: [python-setuptools, libnl-3-dev, libnl-genl-3-dev, libnl-route-3-dev]
source: https://github.com/CanonicalLtd/probert.git
source-type: git
source-commit: b6329b0dfe2c2deef1b3f862a451e28d5c1f7cf3
requirements: [requirements.txt]