Commit graph

532 commits

Author SHA1 Message Date
Serge Schneider
ba8909f05d partition_setup.sh: Fix cmdline.txt handling
Add sdhci.debug_quirks2=4 to cmdline.txt when resizing

Only remove 'quiet' from cmdline if splash screen is off
2019-06-07 16:03:27 +01:00
Serge Schneider
33dfe5404c stage4: remove timidity 2019-06-07 16:01:16 +01:00
Serge Schneider
17ef760111 config.txt: Enable FKMS and set max_framebuffers=2 in [pi4] 2019-06-07 15:59:18 +01:00
Serge Schneider
9005ba070b os_list: Bump kernel to 4.19 2019-06-07 15:58:10 +01:00
Serge Schneider
7e3b160f1c os_list: add Pi 4 support 2019-06-07 15:57:47 +01:00
Serge Schneider
d7aa47e418 os_list: add checksums for PINN 2019-06-07 15:55:54 +01:00
Serge Schneider
0308e92705 export-image: Set /boot size to 256MB 2019-06-07 15:54:22 +01:00
Serge Schneider
22c8878f5d Remove Oracle Java 2019-06-07 15:49:18 +01:00
Serge Schneider
0552ef239b Update to Buster
Remove ui and staging components
2019-06-07 15:45:15 +01:00
Serge Schneider
a90b6bd094 build.sh: run quilt upgrade before editing patches 2019-06-07 15:41:33 +01:00
samtygier
4ad51961e9 Better docs for STAGE_LIST (#289)
Note that quotes are needed, see bug #288.
2019-05-30 11:07:16 +01:00
Hugo Hromic
8acf95f237 Do not assume the changelog file is always present for the info file (#280)
The `(..)/raspberrypi-kernel/changelog.Debian.gz` file is not guaranteed
to be present in the built `ROOTFS_DIR`, for example when building very
minimal images without package documentation. In these cases, the `firmware`
variable will be left empty and the subsequent calls to `curl` will return
large 404 HTML content from GitHub.

Instead, simply check if the changelog file exists before using it.
2019-04-25 10:28:48 +01:00
Hugo Hromic
407663a57f Silence shellcheck warnings (#279)
* SC1091: the `config` file might not be present, which is normal.
* SC2086: Double quote to prevent globbing and word splitting.

Tested clean output using: `find -name "*.sh" -exec shellcheck -x {} \;`
2019-04-25 10:11:57 +01:00
Serge Schneider
042f769edb Add new changelog entry 2019-04-17 12:49:08 +01:00
Serge Schneider
e910bf55ac Update release notes 2019-04-02 18:58:30 +01:00
Serge Schneider
ee11b802b5 stage2: ethtool 2019-04-01 13:05:30 +01:00
XECDesign
3e9b176fab
stage2: install rng-tools
https://github.com/raspberrypi/linux/issues/2799
2019-03-29 19:45:31 +00:00
Andrew Scheller
30a1528ae1 Switch to using parted's machine parseable output (#270) 2019-03-18 14:49:18 +00:00
Serge Schneider
fb23b8ba92 Replace pxz with xz -T0 2019-03-11 11:49:04 +00:00
XECDesign
91bc38d510
Update Dockerfile 2019-03-11 11:14:04 +00:00
Serge Schneider
67241b9626 Handle cases where binfmt_misc is built into the kernel
Fixes #264
2019-03-06 16:25:42 +00:00
samtygier
b7812278a8 Warn early if proxy not reachable (#262)
Avoids a later failure with a less informative message. See #248
2019-02-18 23:41:41 +00:00
Hugo Hromic
564f8ef1b8 Silence shellcheck warnings (#255)
* Made more specific shellcheck disables
* Fixed variable quoting (SC2086,SC2064)
* Use `$*` expansion instead of `$@` when not using arrays (SC2124)
* Use cleaner `$()` syntax instead of back quotes (SC2006)
* Improved comparator (SC2166)
* Minor improvements in coding style

Tested clean output using: `find -name "*.sh" | xargs -n1 shellcheck -x`.
2019-02-18 12:54:15 +00:00
Sam Tygier
7068086c94 Make sure unmount_image finds stale loop devices
Fixes #257 #104 #193

Instead of searching by full path, which is prone to fail, read full list and grep on filename.
2019-02-18 12:01:00 +00:00
Sam Tygier
9d38bfac23 README.md: Add more info on Docker 2019-02-18 09:45:10 +00:00
Sam Tygier
82bcfa427a Use different rsync options for boot and root
When copying files to boot, options that are not supported on fat32 can cause errors. For example owner, group and xattrs.
2019-02-18 09:45:10 +00:00
Sam Tygier
a8eb03a5e4 Check binfmt_misc module is loaded
Give a friendly error message early.
2019-02-18 09:45:10 +00:00
Sam Tygier
c147df99bc Ensure extra config file is passed to docker
Fixes #253

Rather than use --env-file, which gets overwritten by the regular config file, pass the any arguments to build-docker.sh through to build.sh.
2019-02-18 09:30:23 +00:00
Hugo Hromic
9e6af47045 Improve update_issue() function in common script
* Allow to customise pi-gen script name and repository in the generated issue file
* Preserve compatibility with existing function calls
2019-02-18 09:21:10 +00:00
Hugo Hromic
3b90b7ffed Improve bootstrap() function in common script
* Tidy up and simplify function code
* Allow to pass extra arguments to debootstrap, e.g. `--variant minbase`
* Preserve compatibility with existing function calls
2019-02-18 09:21:10 +00:00
Louis Matthijssen
3961bff8a4 Decrease zerofree verbosity
Fixes #251
2019-01-30 20:49:45 +00:00
Louis Matthijssen
61a994c88c Add a DEPLOY_ZIP setting 2019-01-30 19:05:22 +00:00
XECDesign
d945d422d4
Update 00-run.sh
Fix typo
2019-01-23 15:32:08 +00:00
Sam Tygier
c72f0b47ff Quote wpa wifi variables
Allows essid and passwords with special characters.
2019-01-22 17:44:28 +10:00
Sam Tygier
9714a11204 Add username validation
Check that the username is valid before doing any work. Use the default regex from debian's adduser.conf. Will also avoid risk of special characters causing issues.
2019-01-22 17:44:28 +10:00
Błażej Sowa
d88f536536 IMG_SUFFIX evaluation in export image (fix #241) 2019-01-22 17:33:18 +10:00
Hereath
21aeca1b0c fixeb package realpath (via coreutils) 2019-01-21 19:42:08 +10:00
gudata
640027d5df build script is build.sh
build script is build.sh
2019-01-21 19:29:17 +10:00
Mike Roberts
3b1d05144f Fixed another hard reference to the 'pi' user name 2019-01-15 21:16:02 +10:00
rkubes
189b8f0400 Fixed a hard reference to the 'pi' user name 2019-01-15 12:16:42 +10:00
Sam Tygier
d7ef46b06a Allow custom stages
STAGE_LIST can be specified in the config file to run additional build stages.
2019-01-07 12:49:45 +10:00
Błażej Sowa
d7ca8e8f14 Allow custom deploy zip filename 2018-12-21 04:11:13 +00:00
Błażej Sowa
08405eb792 Allow custom image filename 2018-12-21 04:11:13 +00:00
Sam Tygier
7fbfdda31e Add commandline argument for config file
A config file can be specified when running build, e.g.:

  ./build.sh myconfig
2018-12-21 04:09:47 +00:00
Sam Tygier
cc6605695d Allow enabling ssh server from config
Add ENABLE_SSH option
2018-12-21 04:09:47 +00:00
Sam Tygier
f4dc2dcce6 Allow setting up wifi from config
Add WPA_ESSID, WPA_PASSWORD and WPA_COUNTRY options to config.
2018-12-21 04:09:47 +00:00
Sam Tygier
d07096ebb5 Allow setting user name and password from config
Add FIRST_USER_NAME and FIRST_USER_PASS variables that can be set
in the config (or enviroment). Defaults to the standard pi and
raspberry.
2018-12-21 04:09:47 +00:00
Serge Schneider
d1b747747c Add PINN restore support 2018-12-11 15:12:40 +00:00
Serge Schneider
980bdb961b Update release notes 2018-11-14 15:27:58 +00:00
Serge Schneider
7e0c786c64 stage4: add vlc 2018-11-08 12:26:07 +00:00