Skip to content

Commit bd078c1

Browse files
committed
Merge branch 'devel'
2 parents 94bb377 + ae82068 commit bd078c1

File tree

8 files changed

+519
-349
lines changed

8 files changed

+519
-349
lines changed

.codeclimate.yml

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ engines:
22
shellcheck:
33
enabled: true
44
checks:
5+
SC1090:
6+
enabled: false
57
SC1091:
68
enabled: false
79
markdownlint:
@@ -13,6 +15,8 @@ engines:
1315
enabled: false
1416
MD036:
1517
enabled: false
18+
exclude_fingerprints:
19+
- e7978957ce6c2ad804a97bc400e25ae8
1620
ratings:
1721
paths:
1822
- "**.sh"

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
/build.conf
12
/bootfs/
23
/config/
34
!/config/apt/custom_sources.txt
45
!/config/boot/custom_config.txt
56
!/config/files/custom_files.txt
67
/res/initramfs/boot/config.txt
78
/packages/
9+
/build_dir/
810
/raspberrypi-ua-netinst-*.zip
911
/raspberrypi-ua-netinst-*.img
1012
/raspberrypi-ua-netinst-*.img.xz

BUILD.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ To create an image yourself, you need to have various packages installed on the
55
On a Debian system those are the following, excluding packages with priority essential and required:
66

77
- git
8-
- curl
8+
- wget
99
- bzip2
1010
- zip
1111
- xz-utils
@@ -27,3 +27,8 @@ The following scripts are used to build the raspberrypi-ua-netinst installer, li
2727
- `update.sh` - Downloads latest Raspbian packages that will be used to build the installer.
2828
- `build.sh` - Builds the installer initramfs and .zip package for Windows/Mac SD card extraction method. Transfer the .zip package to a Windows/Mac computer, then simply unzip it and copy the files onto a FAT formatted SD card.
2929
- `buildroot.sh` - Builds the installer SD card image, it requires root privileges and it makes some assumptions like not having any other loop devices in use. You only need to execute this script if you need more than a .zip package. The script produces an .img package and also its bzip2 and xz compressed versions.
30+
31+
To set build options, create a file named `build.conf`, which contains the appropriate variable settings. Supported variables are:
32+
33+
- `mirror_raspbian_cache` - Sets a apt caching proxy for the raspbian.org repository. (e.g. "192.168.0.1:3142")
34+
- `mirror_raspberrypi_cache` - Sets a apt caching proxy for the raspberrypi.org repository. (e.g. "192.168.0.1:3142")

build.sh

+271-253
Large diffs are not rendered by default.

config/apt/custom_configuration.txt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Custom APT configuration:
2+
# To add a configuration file:
3+
# Place a file with the extension ".conf" in this folder containing the APT configuration.
4+
# It will be placed in "/etc/apt/apt.conf.d/" by the installer.
5+
# If you use the string "__RELEASE__" in this file, it will be replaced with the content of the "release" option.

doc/INSTALL_CUSTOM.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
## Package
1414

1515
| Parameter | Default | Options | Description |
16-
|-------------------|---------|---------------------------|------------------------------------------------------------------------------------------------------|
16+
|---------------------|--------------------------------------------------|-------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
1717
| `preset` | `server` | `base`/ `minimal`/ `server` | The current packages that are installed by default are listed below. |
1818
| `packages` | | | Install this additional packages (comma separated and quoted). (e.g. "pi-bluetooth,cifs-utils,curl") |
1919
| `firmware_packages` | `0` | `0`/`1` | Set to "1" to install common firmware packages (Atheros, Broadcom, Libertas, Ralink and Realtek) |
20-
| `mirror` | `http://mirrordirector.raspbian.org/raspbian/` | | |
20+
| `mirror` | `http:// mirrordirector.raspbian.org/ raspbian/` | | |
21+
| `mirror_cache` | | | Set address and port for HTTP apt-cacher or apt-cacher-ng (e.g. "192.168.0.1:3142"). If set, the cacher will be used to cache packages during installation downloaded from the repository set in `mirror` as well as "http://archive.raspberrypi.org/debian". |
2122
| `release` | `jessie` | | |
2223

2324
### Description: Presets
@@ -31,13 +32,14 @@
3132
## Device / peripheral
3233

3334
| Parameter | Default | Options | Description |
34-
|----------------------|---------|---------|------------------------------------------------------------------------------------------------------------------------------------------------------|
35+
|----------------------|---------|----------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|
3536
| `spi_enable` | `0` | `0`/`1` | Set to "1" to enable the SPI interface. |
3637
| `i2c_enable` | `0` | `0`/`1` | Set to "1" to enable the I²C (I2C) interface. |
3738
| `i2c_baudrate` | | | Specifies the I²C baudrate in bit/s. If not defined, the bootloader sets it to 100000 bit/s. The option `i2c_enable=1` has to be set to take effect. |
3839
| `sound_enable` | `0` | `0`/`1` | Set to "1" to enable the onboard audio. |
3940
| `camera_enable` | `0` | `0`/`1` | Set to "1" to enable the camera module. This sets all needed parameters in config.txt. |
4041
| `camera_disable_led` | `0` | `0`/`1` | Disables the camera led. The option `camera_enable=1` has to be set to take effect. |
42+
| `rtc` | | `ds1307`/ `ds1339`/ `ds3231`/ `mcp7940x`/ `mcp7941x`/ `pcf2127`/ `pcf8523`/ `pcf8563` | Select an RTC if it is connected via I²C. |
4143

4244
## SSH
4345

@@ -51,14 +53,13 @@
5153
## User
5254

5355
| Parameter | Default | Options | Description |
54-
|-------------------|----------|---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
56+
|-----------------|----------|---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
5557
| `username` | | | Username of the user to create |
5658
| `userpw` | | | Password to use for created user |
5759
| `usergpio` | | `0`/`1` | Set to 1 to give created user permissions to access GPIO pins. A new system group 'gpio' will be created automatically. |
5860
| `usergpu` | | `0`/`1` | Set to 1 to give created user GPU access permissions (e.g. to run vcgencmd without using sudo). |
5961
| `usergroups` | | | Add created user to this additional groups (comma separated and quoted). Non-existent groups will be created. (e.g. 'usergroups=family,friends') |
6062
| `usersysgroups` | | | Add created user to this additional groups (comma separated and quoted). Non-existent groups will be created as system groups. (e.g. 'usersysgroups=video,www-data') |
61-
| `user_ssh_pubkey` | | | Public SSH key for created user; the public SSH key must be on a single line, enclosed in quotes |
6263
| `user_is_admin` | | `0`/`1` | Set to 1 to install sudo and make the user a sudo user. |
6364
| `rootpw` | raspbian | | Sets password for root. To disable root completely, also set root_ssh_pubkey empty. |
6465

@@ -110,16 +111,16 @@
110111
## Advanced
111112

112113
| Parameter | Default | Options | Description |
113-
|--------------------------------|------------------------------------------------------------------------------------------------|--------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
114+
|--------------------------------|------------------------------------------------------------------------------------------------|--------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
114115
| `quiet_boot` | `0` | `0`/`1` | Disables most log messages on boot. |
115116
| `cleanup` | `0` | `0`/`1` | Remove installer files after success. To also remove log files, note the option below. |
116117
| `cleanup_logfiles` | `0` | `0`/`1` | Removes installer log files after success. |
117118
| `cmdline` | `"dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 elevator=deadline fsck.repair=yes"` | | |
118119
| `rootfs_install_mount_options` | | | |
119120
| `rootfs_mount_options` | | | |
120-
| `final_action` | `reboot` | `poweroff`/ `halt`/ `reboot` | Action at the end of install. |
121+
| `final_action` | `reboot` | `reboot`/ `poweroff`/ `halt`/ `console` | Action at the end of install. |
121122
| `hwrng_support` | `1` | `0`/`1` | Install support for the ARM hardware random number generator. The default is enabled (1) on all presets. Users requiring a `base` install are advised that `hwrng_support=0` must be added in `installer-config.txt` if HWRNG support is undesirable. |
122-
| `enable_watchdog` | `0` | `0`/`1` | loads up the hardware watchdog module and configures systemd to use it. Set to "1" to enable this functionality. |
123+
| `watchdog_enable` | `0` | `0`/`1` | Set to "1" to enable and use the hardware watchdog. |
123124
| `cdebootstrap_cmdline` | | | |
124125
| `rootfs_mkfs_options` | | | |
125126
| `rootsize` | | | / partition size in megabytes, provide it in the form '+\<number\>M' (without quotes), leave empty to use all free space |

0 commit comments

Comments
 (0)