Serge Schneider
9e53daa3b1
Merge branch 'master' into arm64
2025-09-30 08:31:10 +01:00
paulober
372e563633
Add cloud-init support
...
Signed-off-by: paulober <44974737+paulober@users.noreply.github.com >
2025-09-30 08:30:20 +01:00
Serge Schneider
22dc0ec430
Merge branch 'master' into arm64
2025-09-12 17:21:28 +01:00
Serge Schneider
05071a97ea
build.sh: log skipped non-executable run.sh files
2025-09-05 12:39:13 +01:00
Serge Schneider
5fe4c02bcf
Merge branch 'master' into arm64
2025-08-19 16:51:19 +01:00
Serge Schneider
c2cd4e8a62
bookworm -> trixie
2025-08-19 12:09:17 +01:00
Serge Schneider
49e1078c1b
Merge branch 'master' into arm64
2025-05-06 14:20:09 +01:00
Serge Schneider
ca3d54e7e7
Add TEMP_REPO variable
2025-04-15 14:57:18 +01:00
Serge Schneider
ccc23c6738
Merge branch 'master' into arm64
2024-10-30 11:33:22 +00:00
Serge Schneider
1baee51b8c
Improve PAGESIZE check and recommendation
...
Setting kernel=kernel8.img while auto_initramfs=1 currently still loads initamfs_2712.
This can cause issues on systems which require drivers compiled as modules to boot.
Until this is fixed in the bootloader, users should specify initramfs options as well.
Also, move the PAGESIZE check before the arch-test checks to make the output clearer.
2024-10-30 10:12:21 +00:00
Serge Schneider
150246acda
Merge branch 'master' into arm64
2024-10-29 15:33:28 +00:00
Serge Schneider
df6d0e2a25
Add kernel page size check
2024-10-29 15:32:19 +00:00
Serge Schneider
2aa7133eea
Create WORK_DIR earlier
...
The exit trap uses the log function which writes to a log file in WORK_DIR.
2024-10-29 15:30:58 +00:00
Serge Schneider
19fd60cef7
Merge branch 'master' into arm64
2024-10-29 10:16:06 +00:00
Matthew Lear
b8e497cf21
Allow export image customisation ( #801 )
...
* Allow export image customisation
Add new variable EXPORT_CONFIG_DIR to set the location of the scripts
pigen will run when exporting an image. Setting this is optional. If
not specified, the current location is retained.
By utilising STAGE_LIST AND EXPORT_CONFIG_DIR, a user can construct
custom images out-of-tree without modification to any defaults.
(cherry picked from commit e5e6ceeaf46f52f77b759d3d35aef8bbd0a69c8b)
* Shellcheck and style fixes
Fixed shellcheck warnings and made the changes more consistent with the surrounding code
---------
Co-authored-by: Serge Schneider <serge@raspberrypi.com >
2024-10-29 10:15:10 +00:00
Serge Schneider
0755b07f06
Merge branch 'master' into arm64
2024-05-15 15:52:53 +01:00
Tom Dewey
fb48183f0d
Expand trap cleanup function ( #773 )
...
* build.sh: Unmount intermediates on trap
Iterate through image files which might be in use and detach them
Avoid silent failures - let the user know whether the build failed
* common: update unmount_image
Use udevadm settle instead of sleep if possible
Use losetup's -j option to find the loop device associated with a give image file
* build.sh: update clean-up trap term
---------
Co-authored-by: Serge Schneider <serge@raspberrypi.com >
2024-05-15 15:50:40 +01:00
Serge Schneider
72b2dfd634
build.sh: set ARCH to arm64
2024-05-13 16:28:34 +01:00
Serge Schneider
d87f764fcb
build.sh: Warn user of unsupported build environment architecture and fail early if binfmt_misc isn't working as expected
2024-05-13 16:10:11 +01:00
Serge Schneider
e95e00f879
Set a default IMG_NAME
...
This also adds the 'ARCH' environment variable, which will help reduce the delta between master and arm64 branches.
2024-05-13 16:10:11 +01:00
Kristof Nachtergaele
5780b1ff64
export stage list
2024-04-29 10:52:50 +01:00
Mark Spatz
502e5fa0e3
Remove QCOW2 build mechanism ( #648 )
2024-02-23 04:19:10 +00:00
Stefan Becker
d966897395
README.md: add PI_GEN_RELEASE ( #720 )
...
This is the text written to "/etc/issue.txt" by update_issue(). The
default is the name used by official Raspberry Pi builds.
Fixes #719
2023-10-23 12:11:43 +01:00
Serge Schneider
8dd23cbc1d
Remove dhcpcd and associated options
2023-09-25 15:04:19 +01:00
Serge Schneider
6aca615037
Switch to Bookworm
2023-09-25 15:04:19 +01:00
Serge Schneider
c3083ecd50
Add parameter to keep cap_setfcap
...
Fixes #643
2022-11-08 12:04:12 +00:00
Serge Schneider
549681f6e2
Updates to avoid common pitfalls when changing the RELEASE variable
...
Fixes #635 , fixes #645 , fixes #632
2022-11-08 11:29:37 +00:00
kralo
f00b72208c
apt/retries: specify option from the Acquire group ( #638 )
...
per man apt.conf, Acquire group is not part of the apt group
2022-10-14 14:48:30 +01:00
Romain Bazile
01b2432007
Create a DISABLE_FIRST_BOOT_USER_RENAME flag to be set in config ( #618 )
...
Closes #614
2022-06-17 15:45:08 +01:00
Serge Schneider
95ac3cfb3b
Remove default password
2022-03-18 15:03:23 +00:00
Romain Bazile
5d044ba71b
Addition of a DEPLOY_COMPRESSION option to the configuration ( #592 )
2022-03-01 16:23:42 +00:00
Romain Bazile
8862e4d9ff
Add check and warning for a space presence in the base path
2022-02-02 14:12:39 +00:00
Serge Schneider
c393ef105e
Strip trailing spaces
2022-02-02 14:04:25 +00:00
Serge Schneider
68fee340f9
Do not use qcow2 images by default
2021-11-08 08:44:36 +00:00
Serge Schneider
d9b4a4a985
Switch to bullseye
2021-10-05 16:59:28 +01:00
Serge Schneider
2f12cf985a
Remove IMG_DATE from work directories
2021-09-21 16:36:26 +01:00
Holger Pandel
bf8c9f5383
Add QCOW2 build mechanism ( #349 )
2021-02-10 10:37:15 +00:00
Daniel F. Dickinson
c1a7dae113
Enable adding SSH pubkey and setting pubkey only ( #380 )
...
This commit add the ability to specify an SSH public key as well as the
option to disable password authentication and only allow public key
authentication for SSH.
Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com >
2020-09-08 21:16:07 +01:00
DragonEagle
08fc0b9a82
Exposed RELEASE as a configurable variable ( #391 )
...
Exposed RELEASE as a configurable variable and updated README.md. As a
bonus, there is only on place to change the release name when the next
release is stable now.
2020-02-26 13:36:39 +00:00
Luigi F. Cruz
38d22e976a
Retry apt downloads 3 times
...
Fixes #194
2020-02-20 17:18:50 +00:00
Serge Schneider
24bb01dec2
Rename HOSTNAME variable to TARGET_HOSTNAME
...
Bash sets the HOSTNAME variable, overriding our default
2020-01-21 17:45:22 +00:00
Sam Tygier
9d334bee66
WPA_PASSWORD length check should only occur if set
...
Test if WPA_PASSWORD is set before check that it has a valid length.
2020-01-08 08:59:55 +00:00
Sam Tygier
024840034e
Check WPA_PASSWORD length early
...
WPA_PASSWORD needs to be between 8 adn 63 characters. Check early
to avoid hitting error in stage2.
2020-01-07 08:07:48 +00:00
Leander
5456c3801f
Explicitly check if postrun script exists in BASE_DIR ( #351 )
2019-11-26 15:03:47 +00:00
Leander
5e19033387
Remove accidental trailing brace ( #348 )
2019-11-18 14:38:54 +00:00
Leander
7f143a185e
Export base directory before loading config file ( #347 )
2019-11-18 13:32:16 +00:00
Rene Klootwijk
d30343f626
Added hostname parameter
2019-11-05 17:21:33 +00:00
Joshua Bussdieker
d1f7a38905
Support regional config settings ( #323 )
2019-08-14 11:26:55 +01:00
Kevin Stone
18b945ffb2
Moved git-hash determination to passed in build variable ( #273 )
2019-08-11 16:44:00 +01:00
Russ Kubes
4ca539cb45
Fix build.sh to run dependencies_check prior to using curl. ( #299 )
2019-07-01 13:17:12 +01:00