Commit Graph

343 Commits

Author SHA1 Message Date
themylogin
af2a0c3772 Retry downloading external deb packages (#957) 2025-12-11 19:24:19 +01:00
Mark Grimes
f82ed5fe68 NAS-138818 / 26.04 / Fix handling of directories for mtree processing. (#954)
Add handling for directories.
2025-12-05 11:55:44 -08:00
Mark Grimes
98f881d070 NAS-138810 / 26.04 / Update truenas_verify to not report nfs.conf.d (#952)
* Exclude /etc/nfs.conf.d.   This directory is removed by nfs.conf.mako.

* Add exception handling for os.unlink when processing objects that
are aleady missing.
2025-12-05 07:14:00 -08:00
bmeagherix
a5760e9057 Remove /etc/dhcpcd.conf from mtree (#937) 2025-10-01 16:08:14 -07:00
Ameer Hamza
bcc21e76ff Fix dch to use dynamic distribution from build manifest (#936)
The dch command was using hardcoded 'bullseye-truenas-unstable' as the
distribution when updating package changelogs. This change reads the
actual Debian release from the build manifest and constructs the
distribution string dynamically (e.g., 'trixie-truenas-unstable' for
Trixie builds), ensuring the changelog entries in built .deb packages
reflect the correct target distribution.
2025-09-30 18:34:42 +05:00
sonicaj
1d99cf8448 Remove curl dependency (#928)
This commit adds changes to remove curl dependency from builder as we already have requests which can handle taht part. Currently some of our builders are broken because of the missing dependency - making changes so we do not have curl as a dependency directly of scale-build itself.
2025-09-23 13:57:29 +05:00
sonicaj
8e86e2d981 NAS-137225 / 26.04 / Fix scale build for trixie (#925)
* Trixie related changes for scale-build

* Point to HM mirrors

* Update apt preferences for trixie

* Update debootstrap changes for trixie

* Minor fix

* Remove python3 package

* Remove mandatory explicit dep

* Use openjdk-21-jdk for kernel

* Update passwd

* There is no need for custom openssl now

* Move from libssl3 to libssl3t64

* Remove util-linux from build manifest

* Set env variable for spdk

* Don't buidl spdk for now

* ipmctl is not available in stable

* Remove legacy sysv unit stuff

* Comment out netdata for now

* Small umount fix

* Also umount efivars

* Update build manifest to reflect updated branches

* Remove nfs entry from mtree

* Make sure to umount efivars

* Properly have apt sources fixed in update image

* Pull in grub2-common

* Add netdata mirror

* Fix url

* Make sure corepack is non-interactive

* Update netdata groups

* Fix efivars mounting

* Properly use clean_mounts

* Add fixme for netdata

* Properly comment out spdk explicit deps

* Remove grub-efi-amd64-signed from iso

* Make sure efivarfs is definitely mounted

* Bring in isc-dhcp-client for now

* Revert "Bring in isc-dhcp-client for now"

This reverts commit 259ffebba5.

* Only try to umount efivarfs if host is actually efi based

* Update repo's branches
2025-09-19 21:55:20 +05:00
Kris Moore
4b0ece7ac1 NAS-137401: Add WebShare service support to scale-build (#910)
- Add truenas-file-manager and truesearch to build manifest
- Update package installation to handle external packages from assets
- Fix dpkg package verification to handle variable column spacing
2025-09-17 08:31:23 -04:00
themylogin
9fb097f4b7 Remove experimental build flag (#921) 2025-09-10 21:51:02 +02:00
Mark Grimes
b5400c09c9 Allow addition of /etc/nfs.conf as an initial stub file and modified by TrueNAS. (#912) 2025-08-29 06:33:09 -04:00
Qubad786
f268a1b9ed Remove libvirt configuration files from mtree (#908) 2025-08-22 01:47:09 +05:00
bmeagherix
d1b91f8c69 Do not verify hostid or hostnqn (#902) 2025-08-18 13:01:24 -07:00
sonicaj
b76b4485ba Bump TN Version (#898) 2025-08-01 22:54:58 +05:00
Caleb St. John
2c621eeaf8 switch to nvidia open source driver (#895) 2025-08-01 07:27:11 -04:00
Caleb St. John
a5f5ee6163 NAS-136807 / 25.10 / Fix experimental builds (#889)
* Revert "Make all builds non-experimental by default (#888)"

This reverts commit 78e3f46499.

* dont build experimental builds by default
2025-07-21 12:16:29 -04:00
themylogin
78e3f46499 Make all builds non-experimental by default (#888) 2025-07-21 17:49:08 +02:00
themylogin
e010ec2c26 TRUENAS_EXPERIMENTAL environment variable (#874) 2025-07-17 17:13:58 +02:00
sonicaj
72b40b8a0d Bump tmpfs size to fix SIGBUS (#881) 2025-06-24 18:38:46 +05:00
sonicaj
71557b080f Ensure consistent home directory handling in reference file comparisons (#868)
Always use '/var/empty' when comparing reference files to match TrueNAS SCALE's
standard home directory for system users, preventing false cache invalidation
due to Debian's '/nonexistent' default.
2025-06-04 14:24:38 -04:00
Logan Cary
416f10675f fix build (#865) 2025-05-28 14:38:17 -04:00
sonicaj
90a18f72c5 Make sure truenas-installer is enabled when ISO boots (#861) 2025-05-15 16:45:17 +05:00
Caleb St. John
9180867b14 add etc/security/limits.conf to exclude in mtree (#855) 2025-05-12 08:22:30 -04:00
Caleb St. John
a386ce56ed ignore nfs and sub{u/g}id files in mtree (#847) 2025-04-30 15:55:26 -04:00
sonicaj
1c7b41c3b0 Allow specifying secret_env for packages as env variables (#846) 2025-04-30 15:09:44 +05:00
sonicaj
76b930d18c NAS-134870 / 25.10 / Allow specifying secret env variables in the build (#842)
* Allow specifying secret_env in build manifest

* Get secret env initialized when initializing package

* Add logic to read secrets file

* Make sure secrets are properly set for package when building the package

* Expose scale release version variable as well

* Fix typo

* Make sure env variables are actually passed to the package itself

* Add secrets yaml file to git ignore

* Do not expose build env variables in ps output
2025-04-18 20:34:12 +05:00
themylogin
6aa7077964 Fix installer DNS (#840) 2025-04-14 09:59:34 +02:00
themylogin
2c2f7a945a Remove SMART (#837) 2025-03-27 17:31:49 +01:00
mgrimesix
81dcc109a4 NAS-133968 / 25.10 / Update mtree to better support cryptographic verification for STIG (#824)
* Fixup list of file system object to remove or ignore.
Added a 'fixup' list to handle objects that get their permission changed on install.

* Update comment.
2025-02-19 10:45:16 -08:00
themylogin
7d8aabfb0d Do not build initrd for the debug kernel by default (#822) 2025-02-17 00:50:34 +01:00
Caleb St. John
6135afde6d Change master build to 25.10 and name it Goldeye (#815)
* Revert "create stable/fangtooth (#813)"

This reverts commit 06e1f6287f.

* bump to 25.10 in master
2025-01-24 14:45:11 -05:00
themylogin
4d4b5a08bc Use wget to download NVidia driver (#811) 2025-01-23 20:49:00 +01:00
Caleb St. John
e534d75ed6 fix nvidia driver URL (#807) 2025-01-15 14:15:03 -05:00
Andrew Walker
1fd067fed6 Handle audit plugin changes (#801) 2025-01-13 11:04:20 -06:00
themylogin
d404e5e39b Fix .squashfs files not being cleaned up (#797) 2025-01-08 18:23:19 +01:00
Caleb St. John
a506fbac05 NAS-133293 / 25.04 / remove psutil from truenas_install (#796) 2024-12-28 16:18:59 -05:00
themylogin
af1435d993 Build dev-tools extension (#794) 2024-12-17 18:17:51 +01:00
themylogin
e7524ee091 Install all apt packages in a single transaction to improve the performance (#792) 2024-12-13 17:36:50 +01:00
Andrew Walker
bd61b40dad Add prefix argument to privileged audit rules (#790)
We need to strip the chroot basedir prefix and make these files
have absolute paths.
2024-12-10 07:51:19 -06:00
Andrew Walker
9480a44dde NAS-132966 / 25.04 / Always add python3 as an explicit dependency (#789)
* Always add python3 as an explicit dependency
* Set python branch priority
2024-12-09 14:10:23 -06:00
Andrew Walker
a2154c602d NAS-132964 / 25.04 / Add audit rules to build (#787)
This commit adds the audit rules package to the build and adds
a step in which we generate the privileged rules set based on
the update file before generating mtree.
2024-12-09 12:27:25 -06:00
Caleb St. John
50f35eca83 go back to sha1 for manifest files (#786) 2024-12-07 09:57:48 -05:00
Caleb St. John
045761f6e4 NAS-132942 / 25.04 / use hashlib instead of subprocess (#784)
* use hashlib instead of subprocess

* more hashlib usage

* and more
2024-12-06 14:37:37 -05:00
themylogin
1e57ff583b Move nvidia extension to the rootfs image (#762) 2024-11-21 08:07:42 -05:00
sonicaj
85f8a44a62 NAS-132571 / 25.04 / Internal apt mirror support (#761)
* Reflect the debian manifest we want

* Update json schema to reflect new base-url entries

* Have a util in place to retrieve apt mirrors

* Have repo url in repos hash

* Cover various usages of apt-repos
2024-11-17 17:52:13 +05:00
Caleb St. John
d8b7cacbf1 Revert "NAS-132446 / 25.04 / Initial add of option to use internal APT repo for builds (#754)" (#759) 2024-11-15 15:33:40 -05:00
themylogin
a7fe3aa528 Build /usr/share/truenas/sysext-extensions/functioning-dpkg.raw (#756) 2024-11-15 15:39:20 +01:00
themylogin
e393bb01e4 Extensions (#758) 2024-11-14 20:39:56 +01:00
Kris Moore
5f95982024 NAS-132446 / 25.04 / Initial add of option to use internal APT repo for builds (#754)
* Initial add of option to use internal APT repo for builds

* Pet flake8

* Wrap a long f-string

* Use f-string in right place

* Fix usage of single / double quotes

* Move to apt_get_base_url as a function

* Undo dyslexia

* Log which base url we are using in bootstrap for debugging

* Add missing location to use the base url in bootstrap

* Use base url when bootstrapping the ISO as well

* Add APT_BASE_CUSTOM as another override option if the builder
wants to pull from some location other than the two in our manifest
2024-11-14 10:18:27 -05:00
Ameer Hamza
7608e503e9 Update libzfs and libzpool version (#737)
https://github.com/openzfs/zfs/commit/277a124 updated libzfs and
libzpool version prior to zfs-2.3 release.
2024-10-10 12:47:06 -04:00
Andrew Walker
cfa53191e7 Remove hostname and mailname from update file (#717)
This has potential to cause user confusion on fresh install
as the hostname will be appended as comment to SSH host keys.
Removing hostname file causes SSH host keys to have comment of
root@localhost.
2024-09-18 09:59:25 -06:00