Commit Graph

31 Commits

Author SHA1 Message Date
themylogin
0de14d4902 Remove build tools from rootfs 2023-07-11 17:05:57 +02:00
Waqar Ahmed
8d1cc6de6a Add logging context for packaging order 2023-05-06 05:54:44 +04:00
Umer Saleem
47e812c6dc Build production and debug kernels for TrueNAS SCALE
This commits adds support for production and debug kernels.
Debian packages for production and debug kernels are built
separately. Kernel headers and images for both production
and debug kernels will be installed on the base system.

Since there are two kernels images that would be present
on the system, kernel modules should also be built for both
kernels. Debian packages for OpenZFS and SCST kernel modules
are built separately for production and debug kernels.

OpenZFS and SCST kernel modules for debug kernel would have
debug flags enabled. The debug kernel has KGDB enabled to debug
the system during boot and runtime.

Signed-off-by: Umer Saleem <usaleem@ixsystems.com>
2023-02-24 14:33:56 +05:00
Waqar Ahmed
e3b5a74235 Add logic to only allowing building specific set of desired packages 2022-06-21 15:35:27 +05:00
Waqar Ahmed
8244a52365 Better log any exceptions when building packages 2022-03-17 22:22:50 +05:00
Waqar Ahmed
fb11dbcab6 Properly delete package mounts in case of failure 2021-05-19 19:12:18 +05:00
Waqar Ahmed
dbca2bea90 Update package creation target to utilise new logging method 2021-05-09 23:27:38 +05:00
Waqar Ahmed
77033c3cb8 Add logger context for checkout target 2021-05-09 23:27:38 +05:00
Waqar Ahmed
2fa2441a54 Validate manifet when executing other targets 2021-05-09 23:27:38 +05:00
Waqar Ahmed
6bced450de Do not setup with bootstrapdir with context manager 2021-05-09 23:27:38 +05:00
Waqar Ahmed
82e6347099 Only delete directories if they exist 2021-05-09 23:27:38 +05:00
Waqar Ahmed
ec1b544acc Set loglevel of urllib3 to info 2021-05-09 23:27:38 +05:00
Waqar Ahmed
0c2aeccbec Build grub with a delay to prioritise other packages 2021-05-09 23:27:38 +05:00
Waqar Ahmed
409c7401e2 Freeze requirements.txt 2021-05-09 23:27:38 +05:00
Waqar Ahmed
4a8b3d823e Remove old implementation of making bootstrap dir 2021-05-09 23:27:38 +05:00
Waqar Ahmed
c71020c1f6 Do not create more threads if no of tasks is lower then parallel_builds 2021-05-09 23:27:38 +05:00
Waqar Ahmed
4a09455654 Add libjson-perl as dependency 2021-05-09 23:27:38 +05:00
Waqar Ahmed
3ed09cec5a Allow specifying priorities in a single batch 2021-05-09 23:27:38 +05:00
Waqar Ahmed
0cf3069c8b Add ability to debug packages when they fail 2021-05-09 23:27:38 +05:00
Waqar Ahmed
0142bbe770 Use coloredlogs for logging 2021-05-09 23:27:38 +05:00
Waqar Ahmed
4b50d1688d Allow building packages in parallel 2021-05-09 23:27:38 +05:00
Waqar Ahmed
de59913926 Properly cleanup mounts in case of a failure 2021-05-09 23:27:38 +05:00
Waqar Ahmed
8bf167c4d7 Refactor paths file name 2021-05-09 23:27:38 +05:00
Waqar Ahmed
cd88116482 Make sure we follow symlinks when copying sources 2021-05-09 23:27:38 +05:00
Waqar Ahmed
1934facc2b Do not propogate file based logger to stderr 2021-05-09 23:27:38 +05:00
Waqar Ahmed
a9946c2f2f Update apt sources before running update 2021-05-09 23:27:38 +05:00
Waqar Ahmed
cb1dfff850 Clean code removing old building pkgs 2021-05-09 23:27:38 +05:00
Waqar Ahmed
8dc483e673 Implement kernel overlayfs 2021-05-09 23:27:38 +05:00
Waqar Ahmed
bb269e86e5 Add methods to cleanup bootstrapdir/overlayfs 2021-05-09 23:27:38 +05:00
Waqar Ahmed
b3250b7787 Add ability to retrieve package dependencies 2021-05-09 23:27:38 +05:00
Waqar Ahmed
bc63d6d517 Configure bootstrapdir 2021-05-09 23:27:38 +05:00