Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General | Drop Jessie support and handling from code #2963

Merged
merged 27 commits into from
Jul 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .conf/dps_114/nginx.nextcloud.conf
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ location ^~ /nextcloud {
fastcgi_param front_controller_active true;
fastcgi_pass php;
fastcgi_intercept_errors on;
# Disable on Jessie, because Jessie Nginx does not support this directive
#fastcgi_request_buffering off;
fastcgi_request_buffering off;
}

location ~ ^\/nextcloud\/(?:updater|ocs-provider|ocm-provider)(?:$|\/) {
Expand Down
2 changes: 1 addition & 1 deletion .conf/dps_47/nginx.owncloud.conf
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ location ^~ /owncloud {
fastcgi_read_timeout 180; # increase default timeout e.g. for long running carddav/ caldav syncs with 1000+ entries
fastcgi_pass php;
fastcgi_intercept_errors on;
#fastcgi_request_buffering off; #Available since NGINX 1.7.11
fastcgi_request_buffering off;
}

location ~ ^/owncloud/(?:updater|ocs-provider)(?:$|/) {
Expand Down
28 changes: 0 additions & 28 deletions .conf/dps_6/xorg_c1.conf

This file was deleted.

3 changes: 3 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
v6.26
(XX/08/19)

Changes / Improvements / Optimisations:
- General | Support for Debian Jessie has now been fully dropped from DietPi code. Jessie systems are moved to the "jessie-support" Git branch and will stay on v6.25. Critical bugs, if reported, may still be fixed, but DietPi-Software related issues and new features will not be handled anymore by the DietPi code team. However, everyone is free to open related pull requests against the jessie-support branch: https://github.com/MichaIng/DietPi/tree/jessie-support

Bug Fixes:
- DietPi-Software | Gitea: Resolved an issue where install fails on ARMv7 systems. Many thanks to @maschiw for reporting this issue: https://github.com/MichaIng/DietPi/issues/2959

Expand Down
54 changes: 20 additions & 34 deletions PREP_SYSTEM_FOR_DIETPI.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
[[ -f '/etc/apt/sources.list.d/openmediavault.list' ]] && rm /etc/apt/sources.list.d/openmediavault.list

# Fixing sources.list due to Debian dropped Jessie support: https://github.com/MichaIng/DietPi/issues/2665
if grep -qi 'jessie' /etc/os-release && ! grep -qi 'raspbian' /etc/os-release; then
if grep -q 'jessie' /etc/os-release && ! grep -qi 'raspbian' /etc/os-release; then

if [[ $(uname -m) == 'aarch64' ]]; then

Expand Down Expand Up @@ -119,7 +119,7 @@
# Setup locale
# - Remove existing settings that could break dpkg-reconfigure locales
> /etc/environment
[[ -f /etc/default/locale ]] && rm /etc/default/locale
[[ -f '/etc/default/locale' ]] && rm /etc/default/locale

# - NB: DEV, any changes here must be also rolled into function '/DietPi/dietpi/func/dietpi-set_software locale', for future script use
echo 'en_GB.UTF-8 UTF-8' > /etc/locale.gen
Expand Down Expand Up @@ -153,8 +153,6 @@

)

grep -qi 'jessie' /etc/os-release && aWHIP_BRANCH+=( 'jessie-support' 'EOS') #REMOVE v6.24

if GITBRANCH=$(whiptail --title "$G_PROGRAM_NAME" --menu 'Please select the Git branch the installer should use:' --default-item 'master' --ok-button 'Ok' --cancel-button 'Exit' --backtitle "$G_PROGRAM_NAME" 12 80 3 "${aWHIP_BRANCH[@]}" 3>&1 1>&2 2>&3); then

unset aWHIP_BRANCH
Expand Down Expand Up @@ -259,7 +257,7 @@
((SETUP_STEP++))
G_DIETPI-NOTIFY 2 '-----------------------------------------------------------------------------------'
#------------------------------------------------------------------------------------------------
if [[ -d /DietPi/dietpi || -d /boot/dietpi ]]; then
if [[ -d '/DietPi/dietpi' || -d '/boot/dietpi' ]]; then

G_DIETPI-NOTIFY 2 'DietPi system found, removing the old files and stopping services. (pre-prep)'

Expand Down Expand Up @@ -395,19 +393,19 @@
'22' ': Generic device (unknown to DietPi)'
'' '●─ SBC─(Core devices, with GPU support) '
'52' ': ASUS Tinker Board'
'10' ': Odroid C1'
'12' ': Odroid C2'
'11' ': Odroid XU3/XU4/HC1/HC2'
'44' ': Pinebook 1080p'
'0' ': Raspberry Pi (All models)'
# '1' ': Raspberry Pi 1/Zero (512mb)'
# '2' ': Raspberry Pi 2'
# '3' ': Raspberry Pi 3/3+'
# '4' ': Raspberry Pi 4'
#'1' ': Raspberry Pi 1/Zero (512mb)'
#'2' ': Raspberry Pi 2'
#'3' ': Raspberry Pi 3/3+'
#'4' ': Raspberry Pi 4'
'' '●─ PC '
'21' ': x86_64 Native PC'
'20' ': x86_64 VMware/VirtualBox'
'20' ': x86_64 Virtual Machine'
'' '●─ SBC─(Limited support devices, no GPU support) '
'10' ': Odroid C1'
'53' ': BananaPi (sinovoip)'
'51' ': BananaPi Pro (Lemaker)'
'50' ': BananaPi M2+ (sinovoip)'
Expand Down Expand Up @@ -513,9 +511,8 @@
# Distro Selection
DISTRO_LIST_ARRAY=(

'3' ': jessie-support' #REMOVE v6.24
'4' ': Stretch (current stable release, recommended)'
'5' ': Buster (testing only, not officially supported)'
'5' ': Buster (next stable release)'

)

Expand Down Expand Up @@ -579,11 +576,7 @@

done

if (( $DISTRO_TARGET == 3 )); then #REMOVE v6.24

DISTRO_TARGET_NAME='jessie'

elif (( $DISTRO_TARGET == 4 )); then
if (( $DISTRO_TARGET == 4 )); then

DISTRO_TARGET_NAME='stretch'

Expand Down Expand Up @@ -616,7 +609,7 @@
l_message='Extracting DietPi sourcecode' G_RUN_CMD unzip package.zip
rm package.zip

[[ -d /boot ]] || l_message='Creating /boot' G_RUN_CMD mkdir -p /boot
[[ -d '/boot' ]] || l_message='Creating /boot' G_RUN_CMD mkdir -p /boot

G_DIETPI-NOTIFY 2 'Moving kernel and boot configuration to /boot'

Expand Down Expand Up @@ -948,18 +941,15 @@ _EOF_
# - Distro is now target (for APT purposes and G_AGX support due to installed binary, its here, instead of after G_AGUP)
G_DISTRO=$DISTRO_TARGET
G_DISTRO_NAME=$DISTRO_TARGET_NAME
unset DISTRO_TARGET DISTRO_TARGET_NAME

G_DIETPI-NOTIFY 2 'Installing core DietPi pre-req APT packages'

G_AGI ${aPACKAGES_REQUIRED_INSTALL[@]}

unset aPACKAGES_REQUIRED_INSTALL

G_AGA

# Reenable HTTPS for deb.debian.org, since system was dist-upgraded to Stretch+
(( $G_HW_MODEL > 9 )) && sed -i 's/http:/https:/g' /etc/apt/sources.list

#------------------------------------------------------------------------------------------------
echo ''
G_DIETPI-NOTIFY 2 '-----------------------------------------------------------------------------------'
Expand Down Expand Up @@ -1028,12 +1018,9 @@ _EOF_
for j in /etc/init.d/$i /{etc,lib,usr/lib}/systemd/system/$i.service{,.d}
do

if [[ -e $j ]]; then

[[ -f $j ]] && systemctl disable --now ${j##*/}
rm -R $j

fi
[[ -e $j ]] || continue
[[ -f $j ]] && systemctl disable --now ${j##*/}
rm -R $j

done

Expand Down Expand Up @@ -1356,8 +1343,7 @@ _EOF_
systemctl mask getty-static
# - logind features disabled by default. Usually not needed and all features besides auto getty creation are not available without libpam-systemd package.
# - It will be unmasked/enabled, automatically if libpam-systemd got installed during dietpi-software install, usually with desktops.
systemctl stop systemd-logind
systemctl disable systemd-logind &> /dev/null
systemctl disable --now systemd-logind &> /dev/null
systemctl mask systemd-logind

G_DIETPI-NOTIFY 2 'Configuring regional settings (TZdata):'
Expand Down Expand Up @@ -1512,12 +1498,12 @@ _EOF_
rm -f /etc/apt/preferences.d/meveric*
cat << _EOF_ > /etc/apt/preferences.d/dietpi-meveric-backports
Package: *
Pin: release a=jessie-backports
Pin: release a=stretch-backports
Pin: origin "fuzon.co.uk"
Pin-Priority: 99

Package: *
Pin: release a=jessie-backports
Pin: release a=stretch-backports
Pin: origin "oph.mdrjr.net"
Pin-Priority: 99
_EOF_
Expand Down Expand Up @@ -1568,7 +1554,7 @@ _EOF_
G_DIETPI-NOTIFY 2 'Resetting boot.ini, config.txt, cmdline.txt etc'

# - PineA64 - delete ethaddr from uEnv.txt file
(( $G_HW_MODEL == 40 )) && [[ -f /boot/uEnv.txt ]] && sed -i '/^ethaddr/ d' /boot/uEnv.txt
[[ $G_HW_MODEL == 40 && -f '/boot/uEnv.txt' ]] && sed -i '/^ethaddr/ d' /boot/uEnv.txt

# - Set Pi cmdline.txt back to normal
[[ -f '/boot/cmdline.txt' ]] && sed -i 's/ rootdelay=10//g' /boot/cmdline.txt
Expand Down
5 changes: 1 addition & 4 deletions dietpi/boot
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#////////////////////////////////////
#
# Info:
# - Filename: /DietPi/dietpi/boot
# - Filename: /{DietPi,boot}/dietpi/boot
# - Activates on boot from dietpi-boot.service
#////////////////////////////////////

Expand Down Expand Up @@ -62,9 +62,6 @@
command -v iw &> /dev/null && iw reg set "$(grep -m1 '^[[:blank:]]*CONFIG_WIFI_COUNTRY_CODE=' /DietPi/dietpi.txt | sed 's/^[^=]*=//')" &
#----------------------------------------------------------------
# Network failure workarounds
# - Jessie service fails to start: https://github.com/MichaIng/DietPi/issues/2075#issuecomment-424747579
(( $G_DISTRO == 3 )) && systemctl start networking

# - Failsafe, bring up interfaces, if somehow not done by networking.service. If those are up already, nothing will happen.
if grep -qiE '^[[:blank:]]*(allow-hotplug|auto)[[:blank:]]+wlan' /etc/network/interfaces; then

Expand Down
Loading