Compare commits
15
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
496e41575e | ||
|
|
e7e04fcde3 | ||
|
|
5024709d70 | ||
|
|
727db0ed63 | ||
|
|
e64ea5bce4 | ||
|
|
63c312d1fe | ||
|
|
2f032b1d19 | ||
|
|
05b31b287d | ||
|
|
b8c94731c5 | ||
|
|
c0513c547a | ||
|
|
dc0fb57fb9 | ||
|
|
fcb8cca6ce | ||
|
|
ce46fac1d4 | ||
|
|
3cc13f2aa2 | ||
|
|
4dc1e1670e |
+3
-1
@@ -1,10 +1,12 @@
|
||||
FROM debian:stretch
|
||||
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
|
||||
RUN apt-get -y update && \
|
||||
apt-get -y install \
|
||||
git vim parted \
|
||||
quilt realpath qemu-user-static debootstrap zerofree pxz zip dosfstools \
|
||||
bsdtar libcap2-bin rsync grep udev xz-utils \
|
||||
bsdtar libcap2-bin rsync grep udev xz-utils curl xxd \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY . /pi-gen/
|
||||
|
||||
@@ -166,7 +166,7 @@ from `./stage2` (if building a minimal system).
|
||||
# Example for building a lite system
|
||||
echo "IMG_NAME='Raspbian'" > config
|
||||
touch ./stage3/SKIP ./stage4/SKIP ./stage5/SKIP
|
||||
rm stage4/EXPORT*
|
||||
rm stage4/EXPORT* stage5/EXPORT*
|
||||
sudo ./build.sh # or ./build-docker.sh
|
||||
```
|
||||
|
||||
|
||||
+5
-5
@@ -13,7 +13,6 @@ if ! $DOCKER ps >/dev/null; then
|
||||
fi
|
||||
set -e
|
||||
|
||||
|
||||
config_mount=()
|
||||
if [ -f config ]; then
|
||||
config_mount=("-v" "$(pwd)/config:/pi-gen/config:ro")
|
||||
@@ -47,13 +46,13 @@ fi
|
||||
if [ "$CONTAINER_EXISTS" != "" ] && [ "$CONTINUE" != "1" ]; then
|
||||
echo "Container $CONTAINER_NAME already exists and you did not specify CONTINUE=1. Aborting."
|
||||
echo "You can delete the existing container like this:"
|
||||
echo " docker rm -v $CONTAINER_NAME"
|
||||
echo " $DOCKER rm -v $CONTAINER_NAME"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
$DOCKER build -t pi-gen .
|
||||
if [ "$CONTAINER_EXISTS" != "" ]; then
|
||||
trap "echo 'got CTRL+C... please wait 5s';docker stop -t 5 ${CONTAINER_NAME}_cont" SIGINT SIGTERM
|
||||
trap "echo 'got CTRL+C... please wait 5s'; $DOCKER stop -t 5 ${CONTAINER_NAME}_cont" SIGINT SIGTERM
|
||||
time $DOCKER run --rm --privileged \
|
||||
--volumes-from="${CONTAINER_NAME}" --name "${CONTAINER_NAME}_cont" \
|
||||
-e IMG_NAME=${IMG_NAME}\
|
||||
@@ -63,8 +62,8 @@ if [ "$CONTAINER_EXISTS" != "" ]; then
|
||||
rsync -av work/*/build.log deploy/" &
|
||||
wait
|
||||
else
|
||||
trap "echo 'got CTRL+C... please wait 5s'; docker stop -t 5 ${CONTAINER_NAME}" SIGINT SIGTERM
|
||||
$DOCKER run --name "${CONTAINER_NAME}" --privileged \
|
||||
trap "echo 'got CTRL+C... please wait 5s'; $DOCKER stop -t 5 ${CONTAINER_NAME}" SIGINT SIGTERM
|
||||
time $DOCKER run --name "${CONTAINER_NAME}" --privileged \
|
||||
-e IMG_NAME=${IMG_NAME}\
|
||||
-v "$(pwd)/deploy:/pi-gen/deploy" \
|
||||
"${config_mount[@]}" \
|
||||
@@ -73,5 +72,6 @@ else
|
||||
cd /pi-gen; ./build.sh &&
|
||||
rsync -av work/*/build.log deploy/" &
|
||||
wait
|
||||
$DOCKER rm -v $CONTAINER_NAME
|
||||
fi
|
||||
echo "Done! Your image(s) should be in deploy/"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
IMG_FILE="${STAGE_WORK_DIR}/${IMG_DATE}-${IMG_NAME}${IMG_SUFFIX}.img"
|
||||
|
||||
IMGID="$(fdisk -l ${IMG_FILE} | sed -n 's/Disk identifier: 0x\([^ ]*\)/\1/p')"
|
||||
IMGID="$(dd if=${IMG_FILE} skip=440 bs=1 count=4 2>/dev/null | xxd -e | cut -f 2 -d' ')"
|
||||
|
||||
BOOT_PARTUUID="${IMGID}-01"
|
||||
ROOT_PARTUUID="${IMGID}-02"
|
||||
|
||||
@@ -1,4 +1,14 @@
|
||||
UNRELEASED:
|
||||
* Disable predictable network interface names for Ethernet devices
|
||||
* Bug fix for keyboard settings dialog in Raspberry Pi Configuration
|
||||
* Bug fix for crash on some videos and animations in Chromium
|
||||
* Bug fix for taskbar crash when running RealVNC server
|
||||
* Bug fix for reloading projects with extensions in Scratch 2
|
||||
* Bug fix for MAC address problem in Bluetooth
|
||||
* Simple mode and new icons in Thonny
|
||||
* New Japanese translations in Raspberry Pi Configuration
|
||||
* Install fonts-droid-fallback for international fonts
|
||||
2017-08-16:
|
||||
* Based on Raspbian Stretch (Debian version 9)
|
||||
* Version 60 of Chromium browser included
|
||||
* Version 3.0.1 of Sonic Pi included
|
||||
@@ -9,6 +19,7 @@ UNRELEASED:
|
||||
* Various desktop applications modified to prompt for sudo password if needed
|
||||
* lxinput control options for mouse speed simplified
|
||||
* lxpanel plugins moved into separate packages
|
||||
* Wireless firmware for Pi 3 and Pi 0W modified to address Broadpwn exploit
|
||||
* Latest kernel and firmware
|
||||
* Various small tweaks, bug fixes and theme modifications
|
||||
2017-07-05:
|
||||
|
||||
@@ -33,8 +33,8 @@ mount $BOOT_DEV ${STAGE_WORK_DIR}/rootfs/boot
|
||||
|
||||
ln -sv "/lib/systemd/system/apply_noobs_os_config.service" "$ROOTFS_DIR/etc/systemd/system/multi-user.target.wants/apply_noobs_os_config.service"
|
||||
|
||||
bsdtar --format gnutar --use-compress-program pxz -C ${STAGE_WORK_DIR}/rootfs/boot -cpf ${NOOBS_DIR}/boot.tar.xz .
|
||||
bsdtar --numeric-owner --format gnutar --use-compress-program pxz -C ${STAGE_WORK_DIR}/rootfs/boot -cpf ${NOOBS_DIR}/boot.tar.xz .
|
||||
umount ${STAGE_WORK_DIR}/rootfs/boot
|
||||
bsdtar --format gnutar --use-compress-program pxz -C ${STAGE_WORK_DIR}/rootfs --one-file-system -cpf ${NOOBS_DIR}/root.tar.xz .
|
||||
bsdtar --numeric-owner --format gnutar --use-compress-program pxz -C ${STAGE_WORK_DIR}/rootfs --one-file-system -cpf ${NOOBS_DIR}/root.tar.xz .
|
||||
|
||||
unmount_image ${IMG_FILE}
|
||||
|
||||
@@ -3,6 +3,4 @@
|
||||
install -m 644 files/ipv6.conf ${ROOTFS_DIR}/etc/modprobe.d/ipv6.conf
|
||||
install -m 644 files/hostname ${ROOTFS_DIR}/etc/hostname
|
||||
|
||||
on_chroot << EOF
|
||||
dpkg-divert --add --local /lib/udev/rules.d/75-persistent-net-generator.rules
|
||||
EOF
|
||||
ln -sf /dev/null ${ROOTFS_DIR}/etc/systemd/network/99-default.link
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
wpasupplicant wireless-tools firmware-atheros firmware-brcm80211 firmware-libertas firmware-misc-nonfree firmware-realtek
|
||||
raspberrypi-net-mods
|
||||
dhcpcd5
|
||||
net-tools
|
||||
|
||||
@@ -9,3 +9,4 @@ gvfs
|
||||
rfkill
|
||||
chromium-browser rpi-chromium-mods
|
||||
gldriver-test
|
||||
fonts-droid-fallback
|
||||
|
||||
Reference in New Issue
Block a user