Skip to content

Commit 5982720

Browse files
authored
more detailed build instructions
1 parent befca18 commit 5982720

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

README.md

+13-4
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,25 @@ https://bugs.launchpad.net/snapd/+filebug
99

1010
## Building
1111

12-
To build the core snap locally you need a chroot or container with
13-
Ubuntu 16.04. Then run:
12+
To build the core snap locally you need a clean chroot or container with
13+
Ubuntu 16.04. Inside this container or chroot run:
1414

15+
$ sudo apt install git snapcraft
16+
$ git clone https://github.com/snapcore/core.git
1517
$ sudo apt-add-repository ppa:snappy-dev/image
16-
$ sudo snapcraft
18+
$ cd core
19+
$ # now make any modifications of the Makefile you require (see below)
20+
$ sudo snapcraft # (if you are not root already)
1721

18-
An easy way to customize the content of the built snap is including additional
22+
One easy way to customize the content of the built snap is including additional
1923
PPAs with custom packages in the `EXTRA_PPAS` variable inside the Makefile's
2024
`ENV` variable.
2125

26+
Another is to add a script snippet to live-build/hooks (where scripts with the
27+
ending .chroot are executed chrooted inside the resulting rootfs during build,
28+
the ones with .binary ending are run in the build environment from outside the
29+
resulting rootfs).
30+
2231
Launchpad builds should be done against xenial with the
2332
`~snappy-dev/ubuntu/image` PPA as source archive and `Updates` as the default
2433
pocket.

0 commit comments

Comments
 (0)