diff --git a/Dockerfile b/Dockerfile index 4e4264f..22797d5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ 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 curl xxd \ + bsdtar libcap2-bin rsync grep udev xz-utils curl xxd file \ && rm -rf /var/lib/apt/lists/* COPY . /pi-gen/ diff --git a/README.md b/README.md index 7a9b6ff..977d102 100755 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ To install the required dependencies for pi-gen you should run: ```bash apt-get install quilt parted realpath qemu-user-static debootstrap zerofree pxz zip \ -dosfstools bsdtar libcap2-bin grep rsync xz-utils +dosfstools bsdtar libcap2-bin grep rsync xz-utils file git ``` The file `depends` contains a list of tools needed. The format of this @@ -265,3 +265,26 @@ follows: * Once you're happy with the image you can remove the SKIP_IMAGES files and export your image to test +# Troubleshooting + +## `binfmt_misc` + +Linux is able execute binaries from other architectures, meaning that it should be +possible to make use of `pi-gen` on an x86_64 system, even though it will be running +ARM binaries. This requires support from the [`binfmt_misc`](https://en.wikipedia.org/wiki/Binfmt_misc) +kernel module. + +You may see the following error: + +``` +update-binfmts: warning: Couldn't load the binfmt_misc module. +``` + +To resolve this, ensure that the following files are available (install them if necessary): + +``` +/lib/modules/$(uname -r)/kernel/fs/binfmt_misc.ko +/usr/bin/qemu-arm-static +``` + +You may also need to load the module by hand - run `modprobe binfmt_misc`. diff --git a/depends b/depends index d516533..80db669 100644 --- a/depends +++ b/depends @@ -13,3 +13,5 @@ rsync xz:xz-utils curl xxd +file +git diff --git a/export-image/04-finalise/01-run.sh b/export-image/04-finalise/01-run.sh index e8662a0..cd284ac 100755 --- a/export-image/04-finalise/01-run.sh +++ b/export-image/04-finalise/01-run.sh @@ -22,6 +22,8 @@ rm -f "${ROOTFS_DIR}/etc/passwd-" rm -f "${ROOTFS_DIR}/etc/group-" rm -f "${ROOTFS_DIR}/etc/shadow-" rm -f "${ROOTFS_DIR}/etc/gshadow-" +rm -f "${ROOTFS_DIR}/etc/subuid-" +rm -f "${ROOTFS_DIR}/etc/subgid-" rm -f "${ROOTFS_DIR}"/var/cache/debconf/*-old rm -f "${ROOTFS_DIR}"/var/lib/dpkg/*-old diff --git a/export-noobs/00-release/files/release_notes.txt b/export-noobs/00-release/files/release_notes.txt index 1fee949..398bb25 100644 --- a/export-noobs/00-release/files/release_notes.txt +++ b/export-noobs/00-release/files/release_notes.txt @@ -1,4 +1,33 @@ UNRELEASED: + * Add libav-tools + * Add English localisation packages +2018-06-27: + * New first-boot configuration wizard added + * Recommended Software installer added + * Bluej, Greenfoot, NodeRED, Claws Mail, VNC Viewer removed from image - can now be installed from Recommended Applications + * Qpdfview PDF viewer installed instead of Xpdf + * Version 65.0 of Chromium browser included, with latest Flash player + * Volume up / down keys now change by 5% increments and affect currently-selected output device rather than internal device only + * Network plugin now remembers previously-entered WiFi network passwords when prompting for reconnection + * Serial port and serial console can now be switched separately in Raspberry Pi Configuration + * Lxkeymap keyboard language setting application removed - replaced with dialog within Raspberry Pi Configuration + * Wifi country and keyboard language setting dialogs in Raspberry Pi Configuration now callable from other applications + * New version of Piboto font included to render with correct weight under some rogue applications + * Reconnection to Bluetooth audio devices on reboot improved + * Disable click-to-rename behaviour in file manager if single-click selection enabled + * Appearance Settings dialog makes config changes to some Qt files to match selected theme + * MIME file type associations improved + * Multiple desktop management options removed from mouse middle-click menu + * Menu shortcuts to Raspberry Pi website amended + * Python 2 IDLE menu link removed + * Sample Magpi PDF installed in /home/pi/MagPi + * Various minor tweaks, bug fixes and appearance changes + * Bluetooth updates + - Firmware with Bluetooth 4.2 features + - SCO profile suppot added via bthelper.service + * Linux kernel 4.14.50+ + * Raspberry Pi firmware 748fb17992426bb29d99224b93cb962fefbdc833 +2018-04-18: * Fixed race between wifi-country.service and raspberrypi-net-mods.service * Linux kernel 4.14.34+ * Raspberry Pi firmware 5db8e4e1c63178e200d6fbea23ed4a9bf4656658 diff --git a/stage0/02-firmware/01-packages b/stage0/02-firmware/01-packages index 008e9b3..b166aa8 100644 --- a/stage0/02-firmware/01-packages +++ b/stage0/02-firmware/01-packages @@ -1 +1,2 @@ raspberrypi-bootloader +raspberrypi-kernel diff --git a/stage1/02-net-tweaks/00-packages b/stage1/02-net-tweaks/00-packages new file mode 100644 index 0000000..3e09fe9 --- /dev/null +++ b/stage1/02-net-tweaks/00-packages @@ -0,0 +1 @@ +netbase diff --git a/stage2/01-sys-tweaks/00-patches/06-rc_local.diff b/stage2/01-sys-tweaks/00-patches/06-rc_local.diff deleted file mode 100644 index 98b44b8..0000000 --- a/stage2/01-sys-tweaks/00-patches/06-rc_local.diff +++ /dev/null @@ -1,15 +0,0 @@ -Index: jessie-stage2/rootfs/etc/rc.local -=================================================================== ---- jessie-stage2.orig/rootfs/etc/rc.local -+++ jessie-stage2/rootfs/etc/rc.local -@@ -11,4 +11,10 @@ - # - # By default this script does nothing. - -+# Print the IP address -+_IP=$(hostname -I) || true -+if [ "$_IP" ]; then -+ printf "My IP address is %s\n" "$_IP" -+fi -+ - exit 0