diff --git a/export-image/01-set-sources/00-patches/0-sources.diff b/export-image/01-set-sources/00-patches/0-sources.diff index d46afe6..17badff 100644 --- a/export-image/01-set-sources/00-patches/0-sources.diff +++ b/export-image/01-set-sources/00-patches/0-sources.diff @@ -3,7 +3,7 @@ Index: export-jessie/rootfs/etc/apt/sources.list.d/raspi.list --- export-jessie.orig/rootfs/etc/apt/sources.list.d/raspi.list +++ export-jessie/rootfs/etc/apt/sources.list.d/raspi.list @@ -1,3 +1,3 @@ --deb http://archive.raspberrypi.org/debian/ jessie main ui staging -+deb http://archive.raspberrypi.org/debian/ jessie main ui +-deb http://archive.raspberrypi.org/debian/ stretch main ui staging ++deb http://archive.raspberrypi.org/debian/ stretch main ui # Uncomment line below then 'apt-get update' to enable 'apt-get source' - #deb-src http://archive.raspberrypi.org/debian/ jessie main ui + #deb-src http://archive.raspberrypi.org/debian/ stretch main ui diff --git a/export-noobs/00-release/files/os.json b/export-noobs/00-release/files/os.json index 46e1634..b2c578d 100644 --- a/export-noobs/00-release/files/os.json +++ b/export-noobs/00-release/files/os.json @@ -14,5 +14,5 @@ ], "url": "http://www.raspbian.org/", "username": "pi", - "version": "jessie" + "version": "stretch" } diff --git a/stage0/00-configure-apt/files/raspi.list b/stage0/00-configure-apt/files/raspi.list index e1f3b41..656ab48 100644 --- a/stage0/00-configure-apt/files/raspi.list +++ b/stage0/00-configure-apt/files/raspi.list @@ -1,3 +1,3 @@ -deb http://archive.raspberrypi.org/debian/ jessie main ui staging +deb http://archive.raspberrypi.org/debian/ stretch main ui staging # Uncomment line below then 'apt-get update' to enable 'apt-get source' -#deb-src http://archive.raspberrypi.org/debian/ jessie main ui +#deb-src http://archive.raspberrypi.org/debian/ stretch main ui diff --git a/stage0/00-configure-apt/files/sources.list b/stage0/00-configure-apt/files/sources.list index 014f732..f13c50c 100644 --- a/stage0/00-configure-apt/files/sources.list +++ b/stage0/00-configure-apt/files/sources.list @@ -1,3 +1,3 @@ -deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi +deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi # Uncomment line below then 'apt-get update' to enable 'apt-get source' -#deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi +#deb-src http://archive.raspbian.org/raspbian/ stretch main contrib non-free rpi diff --git a/stage0/prerun.sh b/stage0/prerun.sh index 74ec2a0..14c09c3 100755 --- a/stage0/prerun.sh +++ b/stage0/prerun.sh @@ -1,5 +1,5 @@ #!/bin/bash -e if [ ! -d ${ROOTFS_DIR} ]; then - bootstrap jessie ${ROOTFS_DIR} http://mirrordirector.raspbian.org/raspbian/ + bootstrap stretch ${ROOTFS_DIR} http://mirrordirector.raspbian.org/raspbian/ fi diff --git a/stage1/02-net-tweaks/00-patches/02-persistant-net.diff b/stage1/02-net-tweaks/00-patches/02-persistant-net.diff deleted file mode 100644 index 1e6a975..0000000 --- a/stage1/02-net-tweaks/00-patches/02-persistant-net.diff +++ /dev/null @@ -1,13 +0,0 @@ -Index: jessie-stage1/rootfs/lib/udev/rules.d/75-persistent-net-generator.rules -=================================================================== ---- jessie-stage1.orig/rootfs/lib/udev/rules.d/75-persistent-net-generator.rules -+++ jessie-stage1/rootfs/lib/udev/rules.d/75-persistent-net-generator.rules -@@ -22,7 +22,7 @@ IMPORT{cmdline}="net.ifnames" - ENV{net.ifnames}=="1", GOTO="persistent_net_generator_end" - - # device name whitelist --KERNEL!="eth*|ath*|wlan*[0-9]|msh*|ra*|sta*|ctc*|lcs*|hsi*", \ -+KERNEL!="ath*|msh*|ra*|sta*|ctc*|lcs*|hsi*", \ - GOTO="persistent_net_generator_end" - - # ignore Xen virtual interfaces diff --git a/stage1/02-net-tweaks/00-patches/series b/stage1/02-net-tweaks/00-patches/series index 5299ca1..3dc19a2 100644 --- a/stage1/02-net-tweaks/00-patches/series +++ b/stage1/02-net-tweaks/00-patches/series @@ -1,2 +1 @@ 01-hosts.diff -02-persistant-net.diff diff --git a/stage1/02-net-tweaks/00-run.sh b/stage1/02-net-tweaks/00-run.sh index 85b528f..8d3b131 100755 --- a/stage1/02-net-tweaks/00-run.sh +++ b/stage1/02-net-tweaks/00-run.sh @@ -1,7 +1,6 @@ #!/bin/bash -e install -m 644 files/ipv6.conf ${ROOTFS_DIR}/etc/modprobe.d/ipv6.conf -install -m 644 files/interfaces ${ROOTFS_DIR}/etc/network/interfaces install -m 644 files/hostname ${ROOTFS_DIR}/etc/hostname on_chroot << EOF diff --git a/stage2/01-sys-tweaks/00-packages b/stage2/01-sys-tweaks/00-packages index 1f26b57..8b6173f 100644 --- a/stage2/01-sys-tweaks/00-packages +++ b/stage2/01-sys-tweaks/00-packages @@ -1,4 +1,4 @@ -ssh less fbset sudo psmisc strace module-init-tools ed ncdu crda +ssh less fbset sudo psmisc strace ed ncdu crda console-setup keyboard-configuration debconf-utils parted unzip build-essential manpages-dev python bash-completion gdb pkg-config python-rpi.gpio v4l-utils diff --git a/stage2/01-sys-tweaks/00-patches/series b/stage2/01-sys-tweaks/00-patches/series index 8273f0c..aee0402 100644 --- a/stage2/01-sys-tweaks/00-patches/series +++ b/stage2/01-sys-tweaks/00-patches/series @@ -2,5 +2,4 @@ 02-swap.diff 04-inputrc.diff 05-path.diff -06-rc_local.diff 07-resize-init.diff diff --git a/stage2/01-sys-tweaks/01-run.sh b/stage2/01-sys-tweaks/01-run.sh index c10705c..e92ceff 100755 --- a/stage2/01-sys-tweaks/01-run.sh +++ b/stage2/01-sys-tweaks/01-run.sh @@ -11,6 +11,8 @@ install -m 644 files/50raspi ${ROOTFS_DIR}/etc/apt/apt.conf.d/ install -m 644 files/console-setup ${ROOTFS_DIR}/etc/default/ +install -m 755 files/rc.local ${ROOTFS_DIR}/etc/ + on_chroot << EOF systemctl disable hwclock.sh systemctl disable nfs-common diff --git a/stage2/01-sys-tweaks/files/rc.local b/stage2/01-sys-tweaks/files/rc.local new file mode 100755 index 0000000..7d39ed7 --- /dev/null +++ b/stage2/01-sys-tweaks/files/rc.local @@ -0,0 +1,20 @@ +#!/bin/sh -e +# +# rc.local +# +# This script is executed at the end of each multiuser runlevel. +# Make sure that the script will "exit 0" on success or any other +# value on error. +# +# In order to enable or disable this script just change the execution +# bits. +# +# 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 diff --git a/stage2/EXPORT_NOOBS b/stage2/EXPORT_NOOBS index cc925cd..b741334 100644 --- a/stage2/EXPORT_NOOBS +++ b/stage2/EXPORT_NOOBS @@ -1,2 +1,2 @@ NOOBS_NAME="Raspbian Lite" -NOOBS_DESCRIPTION="A port of Debian jessie for the Raspberry Pi (minimal version)" +NOOBS_DESCRIPTION="A port of Debian Stretch for the Raspberry Pi (minimal version)" diff --git a/stage4/00-install-packages/00-packages b/stage4/00-install-packages/00-packages index e84df51..f88c549 100644 --- a/stage4/00-install-packages/00-packages +++ b/stage4/00-install-packages/00-packages @@ -8,11 +8,10 @@ python-serial python3-serial python-picamera python3-picamera debian-reference-en dillo x2x raspberrypi-net-mods raspberrypi-ui-mods -smartsim penguinspuzzle +smartsim python-pip python3-pip python3-numpy pypy -python3-pifacecommon python3-pifacedigitalio python3-pifacedigital-scratch-handler python-pifacecommon python-pifacedigitalio minecraft-pi python-minecraftpi alacarte rc-gui sense-hat claws-mail @@ -30,7 +29,6 @@ python-twython python3-twython python-smbus python3-smbus python-flask python3-flask python-picraft python3-picraft -python3-codebug-tether python3-codebug-i2c-tether python-sense-emu python3-sense-emu sense-emu-tools python-sense-emu-doc pprompt scratch2 diff --git a/stage5/EXPORT_NOOBS b/stage5/EXPORT_NOOBS index 908acc8..4823501 100644 --- a/stage5/EXPORT_NOOBS +++ b/stage5/EXPORT_NOOBS @@ -1,2 +1,2 @@ NOOBS_NAME="Raspbian" -NOOBS_DESCRIPTION="A port of Debian jessie for the Raspberry Pi (full desktop version)" +NOOBS_DESCRIPTION="A port of Debian Stretch for the Raspberry Pi (full desktop version)"