[PureOS] Building my own PureOS ISO image?

Jeremiah C. Foster jeremiah.foster at puri.sm
Mon Mar 11 07:05:51 PDT 2019


On Fri, 2019-03-08 at 14:29 -0500, Jeremiah C. Foster wrote:
> On Thu, 2019-03-07 at 16:18 -0500, Jeremiah C. Foster wrote:
> > On Wed, 2019-03-06 at 22:04 +0100, Matthias Klumpp wrote:
> > > Am Mi., 6. März 2019 um 19:56 Uhr schrieb Chris Lamb <
> > > 
> > > In order to use debspawn, just follow these steps:
> > > 1) Run `sudo apt install debspawn`
> > > 2) Then run `debspawn create green`
> > > 3) Create a new "build-pureos.sh" file with the following
> > > contents:
> > > ```
> > > #!/bin/sh
> > > set -e
> > > set -x
> > > 
> > > export FLAVOR="gnome-live"
> > > export DEBIAN_FRONTEND=noninteractive
> > > apt-get install -y git ca-certificates
> > > apt-get install -y live-build
> > > 
> > > git clone --depth=2 
> > > https://source.puri.sm/pureos/infra/make-live.git
> > > /srv/build/lb
> > > cd /srv/build/lb/
> > > 
> > > lb config
> > > lb build
> > > 
> > > b2sum *.iso *.contents *.zsync *.packages > checksums.b2sum
> > > sha256sum *.iso *.contents *.zsync *.packages >
> > > checksums.sha256sum
> > > mv *.iso /srv/artifacts
> > > mv -f *.zsync /srv/artifacts
> > > mv -f *.contents /srv/artifacts
> > > mv -f *.files /srv/artifacts
> > > mv -f *.packages /srv/artifacts
> > > mv -f *.b2sum /srv/artifacts
> > > mv -f *.sha256sum /srv/artifacts
> > > ```
> > > 4) Make the .sh file executable and set the FLAVOR you want.
> > > 5) Tell debspawn to run the build and where to place the build
> > > result:
> > > `debspawn run --external-command
> > > --artifacts-out=/where/to/put/the/built/image green
> > > /path/to/build-pureos.sh`

Using the above process filled up my disk. For some reason the pagemap
file grew to 77 Gigs and on that partition it ran out of space. 

-r-------- 1 root root  77G Mar  8 16:37 pagemap

I'll try on another (slightly larger) partition. How much disk space
should one have for this? 77 Gigs seems like an awful lot of space for
an image. All the source code for a image and yocto tooling in
comparison comes to about 60 Gigs or so.

Regards,

Jeremiah

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puri.sm/pipermail/pureos-project/attachments/20190311/4604f726/attachment.sig>


More information about the Pureos-project mailing list