Commit Graph

162 Commits

Author SHA1 Message Date
Ameer Hamza
24a0bb88b7 grub: skip loading bli module when booting the ISO installer (#875)
Installing the BLI module in the installer’s minimal EFI environment
deadlocks, leading to an unresponsive black screen. We now only invoke
insmod bli on real installations by detecting ISO boots via
/.disk/info. This prevents the deadlock and blank screen on installer
boots while ensuring BLI still loads correctly on standard boots.
2025-06-13 22:38:49 +05:00
sonicaj
433c957619 NAS-135631 / 25.10 / Update build to pull in GE mirrors and use bookworm-backports as default (#853)
* Update mirrors for ge

* Prioritize bookworm backports over standard bookworm mirror

* Temporarily bump grub2 jobs

* Temporarily bump grub2 jobs

* Remove nomodeset on Ameer's suggestion

* Insert bli module for grub

* Reset grub jobs

* Revert "Remove nomodeset on Ameer's suggestion"

This reverts commit 4f79f500df.
2025-05-08 03:29:52 +05:00
Aiden
92c842e46f NAS-130002 / 24.10 / Show vendor name during install (#666) 2024-07-22 09:45:09 -04:00
Brian Meagher
ba4f817e3a Address review 2024-04-26 10:47:09 -07:00
Brian Meagher
9ea0c61801 Add gitlog script 2024-04-26 10:05:18 -07:00
Umer Saleem
bcd1a4eef0 Update serial setup in Installer's grub.cfg
This commit fixes SCALE boot issue in BIOS mode on X series hardware.
In BIOS mode, we were not able to see any output from GRUB on IPMI
since serial setup was not being done properly in SCALE installer's
grub.cfg.

Moreover, currently both boot options provide serial console options
for SCALE, due to which we always see Linux console on serial since
serial settings are saved by installer. User should only select
(115200 baud) boot option if they want serial console, otherwise serial
console should not be provided.

Signed-off-by: Umer Saleem <usaleem@ixsystems.com>
2022-08-10 17:05:08 -04:00
William Grzybowski
ffcc3da69a Revert "NAS-114289 / 22.12 / Update serial setup in Installer's grub.cfg" 2022-08-09 09:14:39 -04:00
Umer Saleem
de7f49e938 Update serial setup in Installer's grub.cfg
This commit fixes SCALE boot issue in BIOS mode on X series hardware.
In BIOS mode, we were not able to see any output from GRUB on IPMI
since serial setup was not being done properly in SCALE installer's
grub.cfg.

Moreover, currently both boot options provide serial console options
for SCALE, due to which we always see Linux console on serial since
serial settings are saved by installer. User should only select
(115200 baud) boot option if they want serial console, otherwise serial
console should not be provided.

Signed-off-by: Umer Saleem <usaleem@ixsystems.com>
2022-08-05 19:39:05 +05:00
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