@@ -200,6 +200,9 Install Xorg open-source X Window System. | |||||
200 | ##### `ENABLE_WM`="" |
|
200 | ##### `ENABLE_WM`="" | |
201 | Install a user defined window manager for the X Window System. To make sure all X related package dependencies are getting installed `ENABLE_XORG` will automatically get enabled if `ENABLE_WM` is used. The `rpi23-gen-image.sh` script has been tested with the following list of window managers: `blackbox`, `openbox`, `fluxbox`, `jwm`, `dwm`, `xfce4`, `awesome`. |
|
201 | Install a user defined window manager for the X Window System. To make sure all X related package dependencies are getting installed `ENABLE_XORG` will automatically get enabled if `ENABLE_WM` is used. The `rpi23-gen-image.sh` script has been tested with the following list of window managers: `blackbox`, `openbox`, `fluxbox`, `jwm`, `dwm`, `xfce4`, `awesome`. | |
202 |
|
202 | |||
|
203 | ##### `ENABLE_SYSVINIT`=false | |||
|
204 | Support for halt,init,poweroff,reboot,runlevel,shutdown,telinit commands | |||
|
205 | ||||
203 | --- |
|
206 | --- | |
204 |
|
207 | |||
205 | #### Advanced system features: |
|
208 | #### Advanced system features: |
@@ -7,7 +7,6 | |||||
7 |
|
7 | |||
8 | VARIANT="" |
|
8 | VARIANT="" | |
9 | COMPONENTS="main" |
|
9 | COMPONENTS="main" | |
10 | EXCLUDES="" |
|
|||
11 |
|
10 | |||
12 | # Use non-free Debian packages if needed |
|
11 | # Use non-free Debian packages if needed | |
13 | if [ "$ENABLE_NONFREE" = true ] ; then |
|
12 | if [ "$ENABLE_NONFREE" = true ] ; then | |
@@ -19,13 +18,8 if [ "$ENABLE_MINBASE" = true ] ; then | |||||
19 | VARIANT="--variant=minbase" |
|
18 | VARIANT="--variant=minbase" | |
20 | fi |
|
19 | fi | |
21 |
|
20 | |||
22 | # Exclude packages if required by Debian release |
|
|||
23 | if [ "$RELEASE" = "stretch" ] || [ "$RELEASE" = "buster" ] ; then |
|
|||
24 | EXCLUDES="--exclude=init,systemd-sysv" |
|
|||
25 | fi |
|
|||
26 |
|
||||
27 | # Base debootstrap (unpack only) |
|
21 | # Base debootstrap (unpack only) | |
28 | http_proxy=${APT_PROXY} debootstrap ${EXCLUDES} --arch="${RELEASE_ARCH}" --foreign ${VARIANT} --components="${COMPONENTS}" --include="${APT_INCLUDES}" "${RELEASE}" "${R}" "http://${APT_SERVER}/debian" |
|
22 | http_proxy=${APT_PROXY} debootstrap ${APT_EXCLUDES} --arch="${RELEASE_ARCH}" --foreign ${VARIANT} --components="${COMPONENTS}" --include="${APT_INCLUDES}" "${RELEASE}" "${R}" "http://${APT_SERVER}/debian" | |
29 |
|
23 | |||
30 | # Copy qemu emulator binary to chroot |
|
24 | # Copy qemu emulator binary to chroot | |
31 | install -m 755 -o root -g root "${QEMU_BINARY}" "${R}${QEMU_BINARY}" |
|
25 | install -m 755 -o root -g root "${QEMU_BINARY}" "${R}${QEMU_BINARY}" |
@@ -176,6 +176,7 ENABLE_USER=${ENABLE_USER:=true} | |||||
176 | USER_NAME=${USER_NAME:="pi"} |
|
176 | USER_NAME=${USER_NAME:="pi"} | |
177 | ENABLE_ROOT=${ENABLE_ROOT:=false} |
|
177 | ENABLE_ROOT=${ENABLE_ROOT:=false} | |
178 | ENABLE_QEMU=${ENABLE_QEMU:=false} |
|
178 | ENABLE_QEMU=${ENABLE_QEMU:=false} | |
|
179 | ENABLE_SYSVINIT=${ENABLE_SYSVINIT:=false} | |||
179 |
|
180 | |||
180 | # SSH settings |
|
181 | # SSH settings | |
181 | SSH_ENABLE_ROOT=${SSH_ENABLE_ROOT:=false} |
|
182 | SSH_ENABLE_ROOT=${SSH_ENABLE_ROOT:=false} | |
@@ -244,6 +245,9 CHROOT_SCRIPTS=${CHROOT_SCRIPTS:=""} | |||||
244 | APT_INCLUDES=${APT_INCLUDES:=""} |
|
245 | APT_INCLUDES=${APT_INCLUDES:=""} | |
245 | APT_INCLUDES="${APT_INCLUDES},apt-transport-https,apt-utils,ca-certificates,debian-archive-keyring,dialog,sudo,systemd,sysvinit-utils" |
|
246 | APT_INCLUDES="${APT_INCLUDES},apt-transport-https,apt-utils,ca-certificates,debian-archive-keyring,dialog,sudo,systemd,sysvinit-utils" | |
246 |
|
247 | |||
|
248 | #Packages to exclude from chroot build environment | |||
|
249 | APT_EXCLUDES=${APT_EXCLUDES:=""} | |||
|
250 | ||||
247 | # Packages required for bootstrapping |
|
251 | # Packages required for bootstrapping | |
248 | REQUIRED_PACKAGES="debootstrap debian-archive-keyring qemu-user-static binfmt-support dosfstools rsync bmap-tools whois git bc psmisc dbus sudo" |
|
252 | REQUIRED_PACKAGES="debootstrap debian-archive-keyring qemu-user-static binfmt-support dosfstools rsync bmap-tools whois git bc psmisc dbus sudo" | |
249 | MISSING_PACKAGES="" |
|
253 | MISSING_PACKAGES="" | |
@@ -253,6 +257,11 COMPILER_PACKAGES="" | |||||
253 |
|
257 | |||
254 | set +x |
|
258 | set +x | |
255 |
|
259 | |||
|
260 | #If init and systemd-sysv are wanted e.g. halt/reboot/shutdown scripts | |||
|
261 | if [ "$ENABLE_SYSVINIT" = false ] ; then | |||
|
262 | APT_EXCLUDES="--exclude=${APT_EXCLUDES},init,systemd-sysv" | |||
|
263 | fi | |||
|
264 | ||||
256 | # Set Raspberry Pi model specific configuration |
|
265 | # Set Raspberry Pi model specific configuration | |
257 | if [ "$RPI_MODEL" = 0 ] ; then |
|
266 | if [ "$RPI_MODEL" = 0 ] ; then | |
258 | DTB_FILE=${RPI0_DTB_FILE} |
|
267 | DTB_FILE=${RPI0_DTB_FILE} |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant