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

Release v8.1 #5229

Merged
merged 101 commits into from
Feb 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
f3c8144
v8.1
MichaIng Jan 9, 2022
481744b
Init v8.1
MichaIng Jan 9, 2022
7f4ba1c
v8.1
MichaIng Jan 10, 2022
5918e5f
v8.0
MichaIng Jan 10, 2022
93b6a27
v8.1
MichaIng Jan 14, 2022
deaeb1e
v8.1
MichaIng Jan 14, 2022
41e1572
v8.1
MichaIng Jan 14, 2022
7551570
v8.1
MichaIng Jan 14, 2022
ef6219c
v8.1
MichaIng Jan 16, 2022
355a5c3
v8.1
MichaIng Jan 16, 2022
a98adda
v8.1
MichaIng Jan 16, 2022
a96877a
v8.1
MichaIng Jan 16, 2022
b67d6b2
v8.1
MichaIng Jan 17, 2022
39a9d6f
v8.1
MichaIng Jan 17, 2022
36d35e9
v8.1
MichaIng Jan 18, 2022
f2c11c9
v8.1 (#5176)
laddde Jan 18, 2022
7bac70c
v8.1
MichaIng Jan 18, 2022
209648f
v8.1
MichaIng Jan 19, 2022
058a1f9
v8.1
MichaIng Jan 19, 2022
2df5ca9
v8.1
MichaIng Jan 19, 2022
bffc995
v8.1
MichaIng Jan 20, 2022
05f3895
v8.1
MichaIng Jan 20, 2022
be3f685
v8.1
MichaIng Jan 20, 2022
1bb1eb0
v8.1
MichaIng Jan 21, 2022
f53a9bf
v8.1 (#5193)
MichaIng Jan 21, 2022
ae056a0
v8.1
MichaIng Jan 22, 2022
ce79957
v8.1
MichaIng Jan 22, 2022
0845e16
v8.1
MichaIng Jan 22, 2022
936e364
v8.1
MichaIng Jan 23, 2022
6512665
v8.1
MichaIng Jan 24, 2022
a097895
v8.1
MichaIng Jan 25, 2022
747a37b
v8.1
MichaIng Jan 25, 2022
bb127ba
v8.1
MichaIng Jan 25, 2022
540e8e0
v8.1
MichaIng Jan 25, 2022
5d37711
v8.1
MichaIng Jan 25, 2022
2455c52
v8.1
MichaIng Jan 25, 2022
f70b2f5
v8.1
MichaIng Jan 25, 2022
cd3bd5f
v8.1
MichaIng Jan 25, 2022
5d07ab0
v8.1
MichaIng Jan 26, 2022
bc9164a
v8.1
MichaIng Jan 26, 2022
0b32ce7
v8.1
MichaIng Jan 26, 2022
41b3764
v8.1
MichaIng Jan 26, 2022
51d3fed
v8.1
MichaIng Jan 27, 2022
bca964e
v8.1
MichaIng Jan 27, 2022
8f606c4
v8.1
MichaIng Jan 27, 2022
c4ffb67
v8.1
MichaIng Jan 27, 2022
ff9e6bd
v8.1
MichaIng Jan 27, 2022
8305ad5
v8.1
MichaIng Jan 28, 2022
c2295bc
v8.1 (#5194)
MichaIng Jan 28, 2022
fa1c70c
v8.1
MichaIng Jan 28, 2022
b575b52
v8.1
MichaIng Jan 28, 2022
53dd398
v8.1 (#5216)
MichaIng Jan 28, 2022
fce5ee7
v8.1
MichaIng Jan 29, 2022
21b45e5
v8.1
MichaIng Jan 29, 2022
2f0c3f0
v8.1
MichaIng Jan 29, 2022
dd209ef
v8.1
MichaIng Jan 29, 2022
6171f56
v8.1
MichaIng Jan 29, 2022
f0dbdc8
v8.1
MichaIng Jan 29, 2022
831d7f9
v8.1
MichaIng Jan 29, 2022
57fc8ff
v8.1
MichaIng Jan 29, 2022
7c58bf1
v8.1 (#5205)
Joulinar Jan 29, 2022
27bdfb6
v8.1
MichaIng Jan 29, 2022
9788bb1
v8.1
MichaIng Jan 29, 2022
daa027e
v8.1
MichaIng Jan 29, 2022
75a49bc
v8.1
MichaIng Jan 29, 2022
ef98f8a
v8.1
MichaIng Jan 29, 2022
69cad97
v8.1
MichaIng Jan 29, 2022
fa396c4
Beta v8.1.0 (#5215)
MichaIng Jan 29, 2022
76eff67
v8.1
MichaIng Jan 30, 2022
db3016e
v8.1 (#5220)
Joulinar Jan 30, 2022
79447c5
v8.1
MichaIng Jan 30, 2022
be52263
v8.1
MichaIng Jan 30, 2022
7aeb1fa
v8.1
MichaIng Jan 30, 2022
a4d639c
v8.1
MichaIng Jan 31, 2022
503b8a2
v8.1 (#5222)
MichaIng Jan 31, 2022
a6340fa
v8.1
MichaIng Feb 1, 2022
e983c80
v8.1
MichaIng Feb 1, 2022
36a1856
v8.1
MichaIng Feb 1, 2022
2e63997
v8.1
MichaIng Feb 2, 2022
d1edb12
v8.1
MichaIng Feb 2, 2022
e6cf4c4
Beta v8.1.1 (#5226)
MichaIng Feb 2, 2022
e80e806
v8.1
MichaIng Feb 2, 2022
f5edbfd
v8.1
MichaIng Feb 2, 2022
419ff79
v8.1
MichaIng Feb 2, 2022
ce4fbba
v8.1 (#5232)
Joulinar Feb 3, 2022
65bc31c
v8.1 (#5231)
JanKoudijs Feb 3, 2022
a3e37fa
v8.1
MichaIng Feb 3, 2022
ad6dbde
v8.1
MichaIng Feb 3, 2022
4c86d87
v8.1
MichaIng Feb 3, 2022
4fb93c6
v8.1
MichaIng Feb 4, 2022
6466d5f
v8.1
MichaIng Feb 5, 2022
bb3e6b0
v8.1
MichaIng Feb 5, 2022
824ffa5
v8.1
MichaIng Feb 5, 2022
523d2e9
v8.1
MichaIng Feb 5, 2022
caada23
v8.1
MichaIng Feb 5, 2022
1df9643
v8.1
MichaIng Feb 5, 2022
ac45a2d
v8.1
MichaIng Feb 5, 2022
d4dc959
v8.1
MichaIng Feb 5, 2022
2992dfe
v8.1
MichaIng Feb 5, 2022
9e2f6cb
v8.1
MichaIng Feb 5, 2022
481e0fd
Beta v8.1.2 (#5230)
MichaIng Feb 5, 2022
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
5 changes: 5 additions & 0 deletions .build/images/U-Boot/99-dietpi-uboot
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/dash
echo 'update-initramfs: Converting to U-Boot format'
mkimage -A arm64 -O linux -T ramdisk -C gzip -n uInitrd -d "$2" "/boot/uInitrd-$1"
ln -sf "uInitrd-$1" /boot/uInitrd
exit 0
79 changes: 79 additions & 0 deletions .build/images/U-Boot/boot.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# DO NOT EDIT THIS FILE
#
# Please edit /boot/dietpiEnv.txt to set supported parameters
#
# If you must edit this file, recompile with:
# mkimage -C none -A arm64 -T script -d /boot/boot.cmd /boot/boot.scr

# Default values
setenv rootdev "/dev/mmcblk0p1"
setenv rootfstype "ext4"
setenv consoleargs "console=tty1"
setenv verbosity "4"
setenv docker_optimizations "off"
setenv overlay_path "amlogic"
setenv overlay_prefix "meson"

# Load addresses
setenv load_addr "0x32000000"
setenv kernel_addr_r "0x34000000"
setenv fdt_addr_r "0x4080000"
setenv overlay_error "false"

# Load dietpiEnv.txt
if test -e ${devtype} ${devnum} ${prefix}dietpiEnv.txt; then
load ${devtype} ${devnum} ${load_addr} ${prefix}dietpiEnv.txt
env import -t ${load_addr} ${filesize}
fi

# Get PARTUUID of first partition on SD/eMMC it was loaded from
# mmc 0 is always mapped to device u-boot (2016.09+) was loaded from
if test "${devtype}" = "mmc"; then part uuid mmc ${devnum}:1 partuuid; fi

# Define kernel command-line arguments
setenv bootargs "root=${rootdev} rootfstype=${rootfstype} rootwait ${consoleargs} loglevel=${verbosity} consoleblank=0 coherent_pool=2M ubootpart=${partuuid} libata.force=noncq usb-storage.quirks=${usbstoragequirks} ${extraargs} ${extraboardargs}"

# Add bootargs for Docker
if test "${docker_optimizations}" = "on"; then setenv bootargs "${bootargs} cgroup_enable=memory swapaccount=1"; fi

# Load kernel, initramfs and device tree
load ${devtype} ${devnum} ${kernel_addr_r} ${prefix}Image
load ${devtype} ${devnum} ${ramdisk_addr_r} ${prefix}uInitrd
load ${devtype} ${devnum} ${fdt_addr_r} ${prefix}dtb/${fdtfile}
fdt addr ${fdt_addr_r}

# Apply DT overlays
if test -n "${overlays}" || test -n "${user_overlays}"; then
fdt resize 65536
for overlay_file in ${overlays}; do
if load ${devtype} ${devnum} ${load_addr} ${prefix}dtb/${overlay_path}/overlay/${overlay_prefix}-${overlay_file}.dtbo; then
echo "Applying kernel provided DT overlay ${overlay_prefix}-${overlay_file}.dtbo"
fdt apply ${load_addr} || setenv overlay_error "true"
fi
done

for overlay_file in ${user_overlays}; do
if load ${devtype} ${devnum} ${load_addr} ${prefix}overlay-user/${overlay_file}.dtbo; then
echo "Applying user provided DT overlay ${overlay_file}.dtbo"
fdt apply ${load_addr} || setenv overlay_error "true"
fi
done

if test "${overlay_error}" = "true"; then
echo "Error applying DT overlays, restoring original DT"
load ${devtype} ${devnum} ${fdt_addr_r} ${prefix}dtb/${fdtfile}
else
if load ${devtype} ${devnum} ${load_addr} ${prefix}dtb/${overlay_path}/overlay/${overlay_prefix}-fixup.scr; then
echo "Applying kernel provided DT fixup script (${overlay_prefix}-fixup.scr)"
source ${load_addr}
fi
if test -e ${devtype} ${devnum} ${prefix}fixup.scr; then
load ${devtype} ${devnum} ${load_addr} ${prefix}fixup.scr
echo "Applying user provided fixup script (fixup.scr)"
source ${load_addr}
fi
fi
fi

# Boot
booti ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}
24 changes: 24 additions & 0 deletions .build/images/U-Boot/dietpi-initramfs_cleanup
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/dash

# Skip if initramfs-tools is not installed
[ -x '/usr/sbin/update-initramfs' ] || exit 0

# Passing the kernel version is required
version="$1"
if [ -z "$version" ]
then
echo "W: initramfs-tools: ${DPKG_MAINTSCRIPT_PACKAGE:-kernel package} did not pass a version number" >&2
exit 0
fi

# Avoid running multiple times
if [ "$DEB_MAINT_PARAMS" ]
then
eval set -- "$DEB_MAINT_PARAMS"
[ "$1" = 'upgrade' ] || exit 0
fi

# Delete unused initrd images
find /boot -name 'initrd.img-*' -o -name 'uInitrd-*' ! -name "*-$version" -printf 'Removing obsolete file %f\n' -delete

exit 0
12 changes: 12 additions & 0 deletions .build/images/U-Boot/dietpiEnv.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
rootdev=UUID=3ccf3790-5e80-44b9-83be-17e3b21083d9
rootfstype=ext4
# The init system logs to the console defined last.
consoleargs=console=ttyAML0,115200 console=tty1
verbosity=4
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u
extraargs=net.ifnames=0
docker_optimizations=off
overlay_path=amlogic
overlay_prefix=meson
overlays=
user_overlays=
33 changes: 12 additions & 21 deletions .meta/dietpi-build → .build/images/dietpi-build
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ G_EXIT_CUSTOM(){
# Inputs
HW_MODEL=
HW_ARCH=
DISTRO=6 # 6=Bulleye, 7=Bookworm
DISTRO=6 # 6=Bullseye, 7=Bookworm
PTTYPE='msdos'
FSTYPE='ext4'
ITYPE=
VMTYPE=
GITBRANCH='master'
while (( $# ))
do
case $1 in
Expand All @@ -34,6 +35,7 @@ do
'-f') shift; FSTYPE=$1;;
'-i') ITYPE='Installer';;
'-v') shift; VMTYPE=$1;;
'-b') shift; GITBRANCH=$1;;
*) G_DIETPI-NOTIFY 1 "Invalid input \"$1\", aborting..."; exit 1;;
esac
shift
Expand All @@ -48,6 +50,7 @@ root_size=1023
CLONING_TOOL='dd'
case $HW_MODEL in
0) iname='RPi' partition_start=4 boot_size=128 root_size=892;;
15) iname='OdroidN2' partition_start=4 root_size=768;;
20) iname='VM' WIFI_REQUIRED=0 VMTYPE=${VMTYPE:-raw};;
21) iname='NativePC-BIOS' HW_ARCH=10 root_size=1215;;
*) G_DIETPI-NOTIFY 1 "Invalid hardware model \"$HW_MODEL\" passed, aborting..."; exit 1;;
Expand Down Expand Up @@ -91,6 +94,8 @@ case $FSTYPE in
*) G_DIETPI-NOTIFY 1 "Invalid filesystem type \"$FSTYPE\" passed, aborting..."; exit 1;;
esac

G_CHECK_URL "https://github.com/MichaIng/DietPi/tree/$GITBRANCH" || { G_DIETPI-NOTIFY 1 "Failed to access Git branch \"$GITBRANCH\", aborting..."; exit 1; }

# Image name
OUTPUT_IMG_NAME="DietPi_$iname-$iarch-${distro^}"
[[ $ITYPE ]] && OUTPUT_IMG_NAME+="_$ITYPE"
Expand Down Expand Up @@ -198,25 +203,14 @@ _EOF_
fi

# Create rc.local to automate DietPi-PREP
cat << '_EOF_' > rootfs/etc/rc.local
cat << _EOF_ > rootfs/etc/rc.local
#!/bin/dash
{
_EOF_
G_EXEC chmod +x rootfs/etc/rc.local

# - RPi: https://github.com/RPi-Distro/repo/issues/253
[[ $HW_MODEL == 0 ]] && cat << '_EOF_' >> rootfs/etc/rc.local
echo '[ INFO ] Installing Raspberry Pi repository keyring...'
curl -sSfLO 'https://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-archive-keyring/raspberrypi-archive-keyring_2016.10.31_all.deb' || exit 1
dpkg -i raspberrypi-archive-keyring_2016.10.31_all.deb || exit 1
rm raspberrypi-archive-keyring_2016.10.31_all.deb || exit 1
_EOF_

cat << _EOF_ >> rootfs/etc/rc.local
echo '[ INFO ] Running DietPi-PREP...'
export GITBRANCH='master' HW_MODEL='$HW_MODEL' IMAGE_CREATOR=0 PREIMAGE_INFO='from scratch' WIFI_REQUIRED=$WIFI_REQUIRED DISTRO_TARGET=$DISTRO
export GITBRANCH='$GITBRANCH' HW_MODEL='$HW_MODEL' IMAGE_CREATOR=0 PREIMAGE_INFO='from scratch' WIFI_REQUIRED=$WIFI_REQUIRED DISTRO_TARGET=$DISTRO
bash -c "\$(curl -sSfL 'https://raw.githubusercontent.com/$G_GITOWNER/DietPi/$G_GITBRANCH/PREP_SYSTEM_FOR_DIETPI.sh')"
_EOF_
G_EXEC chmod +x rootfs/etc/rc.local

# - VM: Generate tiny-initramfs with explicit kernel modules, as auto-detection doesn't work correctly within container and loop devices
[[ $HW_MODEL == 20 ]] && cat << _EOF_ >> rootfs/etc/rc.local
Expand All @@ -242,12 +236,9 @@ G_EXEC rm -Rf rootfs/var/{cache/apt,lib/apt/lists}/*
# Start container
# - dbus required for container spawn
mask_dbus=0
if [[ $(readlink /etc/systemd/system/dbus.socket) == '/dev/null' ]]
then
mask_dbus=1
G_EXEC systemctl unmask dbus.socket dbus
G_EXEC systemctl start dbus.socket dbus
fi
[[ $(readlink /etc/systemd/system/dbus.socket) == '/dev/null' ]] && mask_dbus=1
G_EXEC systemctl unmask dbus.socket dbus
G_EXEC systemctl start dbus.socket dbus
# - Bind mounts required to allow container reading its own drive info, /dev/disk for GRUB and probably other tools to detect UUIDs
abind=()
[[ -b '/dev/loop0p2' ]] && abind=('--bind=/dev/loop0p2')
Expand Down
3 changes: 1 addition & 2 deletions .conf/dps_47/nginx.owncloud.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Based on: https://github.com/owncloud/docs/blob/deda107004c35ccfc4927e4aab32a337bc2bb380/modules/admin_manual/examples/installation/nginx/subdirectory-configuration.conf
# Based on: https://github.com/owncloud/docs/blob/deda107/modules/admin_manual/examples/installation/nginx/subdirectory-configuration.conf

location ^~ /owncloud {

Expand Down Expand Up @@ -73,7 +73,6 @@ location ^~ /owncloud {
try_files $uri /owncloud/index.php$uri$is_args$args;
add_header Cache-Control "max-age=15778463" always;
# Add headers to serve security related headers (It is intended to have those duplicated to the ones above)
#add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always;
add_header X-Content-Type-Options nosniff always;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-XSS-Protection "1; mode=block" always;
Expand Down
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
name: Bug report
about: Create a report to help us improve

---

### Creating a bug report/issue
Expand All @@ -12,7 +11,7 @@ about: Create a report to help us improve
- Kernel version | `uname -a`
- SBC model | `echo $G_HW_MODEL_NAME` or (EG: RPi3)
- Power supply used | (EG: 5V 1A RAVpower)
- SDcard used | (EG: SanDisk ultra)
- SD card used | (EG: SanDisk ultra)

#### Additional Information (if applicable)
- Software title | (EG: Nextcloud)
Expand Down
4 changes: 0 additions & 4 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
name: Feature request
about: Suggest an idea for this project

---

### Creating a feature request
Expand All @@ -21,6 +20,3 @@ about: Suggest an idea for this project
#### Additional context
<!-- Add any other context or screenshots about the feature request here.-->
- ...

#### Vote for this feature on FeatHub: https://feathub.com/MichaIng/DietPi/
<!-- Optional: Add your request to our FeatHub page as well and replace the above link accordinly.-->
6 changes: 1 addition & 5 deletions .github/ISSUE_TEMPLATE/image_request.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
name: Image request
about: Suggest a new SBC to be added to the offial support and image list of DietPi

about: Suggest a new SBC to be added to the official support and image list of DietPi
---

### Creating an image request
Expand All @@ -21,6 +20,3 @@ about: Suggest a new SBC to be added to the offial support and image list of Die
#### If not, are there install instructions for Debian available?
<!-- EG: https://github.com/drtyhlpr/rpi23-gen-image/https://github.com/Debian/raspi3-image-spec -->
- ...

#### Vote for this image on FeatHub: https://feathub.com/MichaIng/DietPi/
<!-- Optional: Add your request to our FeatHub page as well and replace the above link accordinly.-->
6 changes: 1 addition & 5 deletions .github/ISSUE_TEMPLATE/software_request.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
name: Software request
about: Suggest a software title to be added to DietPi-Software

---

### Creating a software request
Expand Down Expand Up @@ -33,8 +32,5 @@ about: Suggest a software title to be added to DietPi-Software
1. ...

#### Are you willing to help maintaining the software installation, e.g. in case of needed setup changes due to updates etc.? This is not needed, but could speed up our decision to implement it, as man power is always a topic :wink:.
<!-- EG: Yes, I could help out with this, e.g. if I experience issues. / Sorry, I am totally unexperienced in bash coding. -->
<!-- EG: Yes, I could help out with this, e.g. if I experience issues. / Sorry, I am totally inexperienced in bash coding. -->
- ...

#### Vote for this software on FeatHub: https://feathub.com/MichaIng/DietPi/
<!-- Optional: Add your request to our FeatHub page as well and replace the above link accordinly.-->
13 changes: 0 additions & 13 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,3 @@ Before submitting a pull request:
- Please ensure the target branch is "dev" (active development): https://github.com/MichaIng/DietPi/tree/dev
- Please ensure changes have been tested and verified functional.
-->
**Status**: WIP | Testing | Ready | ?
- [ ] Example task 1

**Reference**: https://github.com/MichaIng/DietPi/issues/XXXX

**Commit list/description**:
<!--
- DietPi-Config | Add "Fan control" option to "Performance Options"
![Screenshot](https://xxx.github.com/images/xxx.png)
- DietPi-Config | Add "Fan control" support for Odroid C2
- DietPi-Config | Syntax fix
-->
- ...
4 changes: 4 additions & 0 deletions .meta/dietpi-cloud-migration
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ run_backup(){
! rsync -aHp --delete "$fp_datadir/" "$2" && echo -e '[\e[31mFAILED\e[0m] "rsync" failed, please check for error reasons and try again.' && exit 1
echo -e "[\e[32m OK \e[0m] Successfully synced data directory to: $2"

# Remove old backups when sync was successful @StephanStS
echo "[ INFO ] Removing backups from $fp_datadir/ after successful sync to $2..."
rm -R "$fp_datadir/dietpi-$1-database-backup.sql" "$fp_datadir/dietpi-$1-installation-backup"

else

echo '[ INFO ] You did not provide an additional backup location. We assume your data directory is already on an external drive, ready for migration? If not, move it there, or, rerun this script with the desired external backup path as argument.'
Expand Down
Empty file modified .meta/dietpi-fan_control
100644 → 100755
Empty file.
6 changes: 4 additions & 2 deletions .meta/dietpi-survey_report
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -579,17 +579,19 @@ shopt -s extglob
unset -v 'aSOFTWARE_NAME7_8[99]' # emonHub
aSOFTWARE_NAME7_8[200]='DietPi-Dashboard'

# v7.9 + v8.0
# v7.9 + v8.0 + v8.1
aSOFTWARE_NAME7_9=()
aSOFTWARE_NAME8_0=()
aSOFTWARE_NAME8_1=()
for i in "${!aSOFTWARE_NAME7_8[@]}"
do
aSOFTWARE_NAME7_9[$i]=${aSOFTWARE_NAME7_8[$i]}
aSOFTWARE_NAME8_0[$i]=${aSOFTWARE_NAME7_9[$i]}
aSOFTWARE_NAME8_1[$i]=${aSOFTWARE_NAME8_0[$i]}
done

# Pre-create software counter array so that we can see also software (available in newest version) with 0 installs
for i in "${aSOFTWARE_NAME8_0[@]}"
for i in "${aSOFTWARE_NAME8_1[@]}"
do
aSOFTWARE["$i"]=0
done
Expand Down
27 changes: 27 additions & 0 deletions .update/patches
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,33 @@ Patch_8_0()
[[ -f '/etc/systemd/system/blynkserver.service' ]] && ! grep -q '\-Dlog4j2.formatMsgNoLookups=true' /etc/systemd/system/blynkserver.service && G_EXEC sed -i 's/java -jar/java -Dlog4j2.formatMsgNoLookups=true -jar/' /etc/systemd/system/blynkserver.service
}

Patch_8_1()
{
# DietPi-Services cleanup: https://dietpi.com/phpbb/viewtopic.php?p=42027#p42027
[[ -f '/dietpi-process_tool.conf' ]] && G_EXEC rm /dietpi-process_tool.conf
[[ -f '/dietpi-services_edit.conf' ]] && G_EXEC rm /dietpi-services_edit.conf

# RPi: Remove obsolete VCSM overlay since the device node has been removed
if (( $G_HW_MODEL < 10 ))
then
grep -q 'dtoverlay=dietpi-disable_vcsm' /boot/config.txt && G_EXEC sed -i '/dtoverlay=dietpi-disable_vcsm/d' /boot/config.txt
[[ -f '/boot/overlays/dietpi-disable_vcsm.dtbo' ]] && G_EXEC rm /boot/overlays/dietpi-disable_vcsm.dtbo
fi

# RPi: Fix MATE install: https://github.com/MichaIng/DietPi/issues/5214
[[ $G_HW_MODEL -le 9 && -f '/etc/apt/preferences.d/dietpi-lxde' ]] && cat << '_EOF_' > /etc/apt/preferences.d/dietpi-lxde
Package: openbox* obconf* libob* pcmanfm* libfm* gtk-* libgtk* libgail* gir1.2-gtk-3.0 lx*
Pin: origin archive.raspberrypi.org
Pin-Priority: -1
_EOF_

# Odroid C2 mainline image: Remove obsolete IRQ affinity: https://github.com/MichaIng/DietPi/issues/5235
[[ $G_HW_MODEL == 12 && -f '/var/lib/dietpi/postboot.d/c2_smp.sh' ]] && ! grep -q '^[[:blank:]]*63:.*dwc_otg' /proc/interrupts && G_EXEC rm /var/lib/dietpi/postboot.d/c2_smp.sh

# Fix Home Assistant restart: https://dietpi.com/phpbb/viewtopic.php?t=10025
[[ -f '/etc/systemd/system/home-assistant.service' ]] && G_CONFIG_INJECT 'RestartForceExitStatus=100' 'RestartForceExitStatus=100' /etc/systemd/system/home-assistant.service '\[Service\]'
}

# v6.35 => v7 migration
if (( $G_DIETPI_VERSION_CORE == 6 && $G_DIETPI_VERSION_SUB > 34 ))
then
Expand Down
Empty file modified .update/pre-patches
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion .update/version
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Available DietPi version
G_REMOTE_VERSION_CORE=8
G_REMOTE_VERSION_SUB=0
G_REMOTE_VERSION_SUB=1
G_REMOTE_VERSION_RC=2
# Minimum DietPi version to allow update
G_MIN_VERSION_CORE=6
Expand Down
Loading