Waqar Ahmed
2fa2441a54
Validate manifet when executing other targets
2021-05-09 23:27:38 +05:00
Waqar Ahmed
d28795e0c8
Add script to validate manifest
2021-05-09 23:27:38 +05:00
Waqar Ahmed
9103c5028a
Remove unused build scripts
2021-05-09 23:27:38 +05:00
Waqar Ahmed
1ff831c158
Remove unused build package files
2021-05-09 23:27:38 +05:00
Waqar Ahmed
28d1d5f7b4
Refactor building package python script
2021-05-09 23:27:38 +05:00
Waqar Ahmed
f7c37c7b35
Add ability to build packages in parallel
2021-05-09 23:27:38 +05:00
Waqar Ahmed
7141067948
Create a batch of X specified items according to parallel builds env variable
2021-05-09 23:27:38 +05:00
Waqar Ahmed
8dbceb0e20
Use generated manifest to build packages
2021-05-09 23:27:38 +05:00
Waqar Ahmed
27823f6695
Remove checking pkg cache logic in build script
2021-05-09 23:27:38 +05:00
Waqar Ahmed
a87a38fc8b
Refactor building debian package logic
2021-05-09 23:27:38 +05:00
Waqar Ahmed
3f0f6bb6be
Use topological sort to order dependencies for building
2021-05-09 23:27:38 +05:00
Waqar Ahmed
063d6dd3b6
Add ability to determine if a package needs to be rebuilt
2021-05-09 23:27:38 +05:00
Waqar Ahmed
7c0e99ad3e
Refactor retrieving dependency logic
2021-05-09 23:27:38 +05:00
Waqar Ahmed
6b790173e5
Add support for repos having predepscmd
2021-05-09 23:27:38 +05:00
Waqar Ahmed
c393365746
Add initial script to retrieve build dependencies
2021-05-09 23:27:38 +05:00
Waqar Ahmed
63ae005982
Always retrieve source/binary packages deps
2021-05-09 23:27:38 +05:00
Waqar Ahmed
b60d01023b
Add ability to retrieve depends of binary packages
2021-05-09 23:27:38 +05:00
Waqar Ahmed
1d2a55026f
Add a perl script to parse source package dependencies
2021-05-09 23:27:38 +05:00
themylogin
c3e434e7d1
Build kernel with debug symbols
2021-04-22 23:09:30 +02:00
themylogin
bf0d92cfb1
Support 115200 baud in installer for X-Series
2021-04-08 16:23:08 +02:00
themylogin
2e27e4cefb
Do not use parallel build for grub2
2021-04-01 16:49:37 +02:00
themylogin
35f6324742
Do not use parallel build for grub2
2021-04-01 14:58:12 +02:00
themylogin
7419e47bef
Revert "Revert "NAS-107508 / 21.04 / Use grub2 from custom repo""
2021-04-01 09:53:27 +02:00
Waqar Ahmed
09f293d617
Make exit code of 1 non fatal for initrd script
2021-04-01 00:26:36 +05:00
Waqar Ahmed
da850801b6
Fix eq operator usage
2021-03-30 21:02:41 +05:00
Waqar Ahmed
d505eef88a
Use truenas-initrd script
2021-03-30 20:56:22 +05:00
Waqar Ahmed
27ebdc3533
Bug fix for building kernel package on incremental builds
2021-03-30 20:22:05 +05:00
Waqar Ahmed
cdfcd1e536
Mformat is not required anymore
2021-03-27 18:15:16 +05:00
Waqar Ahmed
839d0fec7e
Do not use overlay mount
...
This commit adds changes to not use overlay mount for building kernel package as this means that this won't build on zfs ( https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1873917 ) because we are unable to mount.
2021-03-25 19:31:57 +05:00
themylogin
8dac191a8e
Disable nslcd service
2021-03-19 14:15:00 +01:00
Kris Moore
ef6e335bdd
Hide mkdir error
2021-03-12 16:43:32 -05:00
Kris Moore
b876ad689f
Fix check for .buildEpoch location
2021-03-12 16:40:57 -05:00
Kris Moore
67c769c032
Move location of .buildEpoch file to tmp/, fixes an issue with
...
PR builders and also gets cleaned during normal 'make clean'
2021-03-12 16:36:30 -05:00
Kris Moore
ace493a09f
Merge branch 'master' of https://github.com/truenas/scale-build into convert-to-yaml
2021-03-12 14:52:51 -05:00
Andrew
024c364994
Build with custom kernel ( #120 )
...
This adds linux kernel to the build. Due to size of repo and temporary files,
logic for building kernel is slightly different than other packages. A non-tmpfs
filesystem is overlaid as dpkg-src in this case and build on it rather than tmpfs.
Kernel config is generated in two or three steps during the build process.
make defconfig is run to generate a default config based on architecture, then
the TrueNAS-specific configuration is merged with it, and if a debug kernel is
requested (by uncommenting relevant line in build.sh), additional debugging parameters
are applied.
A customized copy of current kernel source is also mounted as /kernel inside the
package build chroot. A new key has also been added to the build_manifest "kernel_module",
which if set to true will cause the kernel image and headers to be installed in the
package building chroot prior to fulfilling the packages dependencies. Packages marked
such will also be rebuilt when the kernel package is updated.
A minor change to behavior in low ram situations (i.e. less than recommended amount) was
added to the effect that update files will not be generated on tmpfs. In testing this
stage of the overall build process was observed to be most likely to fail due to running
out of space on the tmpfs filesystems. Correspondingly, our tmpfs volume size was increased
to 12 GiB.
2021-03-12 14:40:27 -05:00
Kris Moore
af8a8d8122
Cleanup spurrious warning, and bump epoch again to avoid another PR
...
which has set similar epoch
2021-03-12 13:21:27 -05:00
Kris Moore
d72bab8750
Conversion from JSON for the build.manifest over to YAML, which allows
...
us to fully comment what each section of configuration data is used for
2021-03-12 12:47:59 -05:00
themylogin
beab8225d4
Fix building BIOS ISO
2021-02-24 14:05:32 +01:00
themylogin
f642a43e0c
Fix rsync: not found
2021-02-24 09:50:17 +01:00
themylogin
e7e1e4231c
Fix building EFI ISO
2021-02-23 09:38:51 +01:00
themylogin
88ebd99571
Run grub-mkrescue to use SCALE GRUB instead of builder GRUB
2021-02-18 10:43:08 +01:00
themylogin
c1dd1b5fbf
Merge pull request #111 from truenas/NAS-109351
...
NAS-109351 / 21.04 / Generate native systemd unit files for SysV services that lack ones t…
2021-02-16 20:39:22 +01:00
themylogin
ce808d9b9a
Merge pull request #112 from truenas/NAS-108799
...
NAS-108799 / 21.04 / Make ISO FAT32-friendly
2021-02-16 20:38:56 +01:00
themylogin
ef9cc11813
Use text mode for CD GRUB so it can be seen via serial
2021-02-15 21:41:57 +01:00
themylogin
f16d86a8a6
Make ISO FAT32-friendly
2021-02-15 20:25:35 +01:00
themylogin
adf93a53ed
Generate native systemd unit files for SysV services that lack ones to prevent systemd-sysv-generator warnings
2021-02-15 18:19:27 +01:00
caleb
9667f26521
fix typo for installing 3rd party requested packages
2021-02-15 10:13:26 -03:00
Kris Moore
d7361fa134
Add support for build epoch counter. This allows us to bump the number
...
anytime we want to force downstream builders to perform a full rebuild
and invalidate any local incremental cache.
2021-01-29 13:04:14 -05:00
Kris Moore
c519959e23
Revert "Try to avoid zfs conflict"
...
This reverts commit f331467d03 .
2021-01-26 23:23:13 -05:00
William Grzybowski
f331467d03
Try to avoid zfs conflict
2021-01-26 16:51:27 -03:00