Inclusion of custom package in ubuntu image


How do I include my packages in rom while building? I need to include few DEB packages in the image while building.

I need to include default-jre also in rom.


Hi @rajendrapatil , I don’t know what package you want to install, but I can tell you a zoom-in for your reference. First of all, by default, you are familiar with shell scripts and basic compilation knowledge.Then choose a place you like to place your DEBS.Here I recommend a place to put it/PATH/TO/YOUR/CODE/archives/filesystem/blobs.Next you need to modify the compiled script file.There are several places to place your DEB, and I’ll give you one of them.

$ cd /home/frank/work/fenix/config/functions
$ vim build-rootfs

Find the location where Debs is installed and add what you want to compile (the location of the DEB you just placed).

Finally, recompile it

I am adding a package developed by us in to the ROM. We have created DEB an I need to include this DEB in ROM. I will try this.

Another issue:
I need to include default-jre also in rom. I have added entry in config “default-jre” under “Essential packages” but while building it gives errors.

@rajendrapatil , Can you provide error information?Thanks.

I get following error while building after adding default-jre

Processing triggers for ca-certificates (20180409) …
Updating certificates in /etc/ssl/certs…
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d…

qemu: Unsupported syscall: 168
Error occurred during initialization of VM
getcpu(2) system call not supported by kernel
E: /etc/ca-certificates/update.d/jks-keystore exited with code 1.
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
Makefile:7: recipe for target ‘all’ failed
make: *** [all] Error 100