Skip to content

Commit

Permalink
v9.8
Browse files Browse the repository at this point in the history
- ROCK 4 | Resolved an issue where a false APT component was applied for your APT server, leading to errors and missing kernel/firmware upgrades. Many thanks to `@cdlenfert` for reporting this issue: https://dietpi.com/forum/t/20771
  • Loading branch information
MichaIng committed Oct 2, 2024
1 parent d9ae4ab commit 988c198
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 6 deletions.
24 changes: 24 additions & 0 deletions .update/pre-patches
Original file line number Diff line number Diff line change
Expand Up @@ -429,5 +429,29 @@ then
fi
fi

# v9.8
if (( $G_DIETPI_VERSION_CORE < 9 || ( $G_DIETPI_VERSION_CORE == 9 && $G_DIETPI_VERSION_SUB < 8 ) ))
then
# https://dietpi.com/forum/t/20771
if (( $G_HW_MODEL == 72 ))
then
G_DIETPI-NOTIFY 2 'Fix ROCK 4 APT component'
if dpkg-query -s 'linux-u-boot-rockpi-4b-current' &> /dev/null
then
all_components='rock4'

elif dpkg-query -s 'linux-u-boot-rock-4se-current' &> /dev/null
then
all_components='rock4se'

elif dpkg-query -s 'linux-u-boot-rockpi-4cplus-current' &> /dev/null
then
all_components='rock4cplus'
fi
G_EXEC sed -i '\|^deb https://dietpi.com/apt all |d' /etc/apt/sources.list.d/dietpi.list
G_EXEC eval "echo 'deb https://dietpi.com/apt all $all_components' >> /etc/apt/sources.list.d/dietpi.list"
fi
fi

exit 0
}
1 change: 1 addition & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Enhancements:
Bug fixes:
- NanoPi M3/T3 | Resolved an issue where our recent image did not boot because the bootloader did not define a default device tree path anymore. Many thanks to @rozcietrzewiacz for reporting this issue: https://github.com/MichaIng/DietPi/issues/2630#issuecomment-2322085507
- NanoPi R5S/R5C | Resolved an issue where the Ethernet LEDs did not work on systems upgraded from the legacy Linux 5.10 kernel. Many thanks to @innovodev for reporting this issue: https://dietpi.com/forum/t/21026
- ROCK 4 | Resolved an issue where a false APT component was applied for your APT server, leading to errors and missing kernel/firmware upgrades. Many thanks to @cdlenfert for reporting this issue: https://dietpi.com/forum/t/20771
- DietPi-Services | Resolved an issue where the nfs-kernel-server service did show mode "alias". "nfs-kernel-server" is indeed an alias for the actual service name "nfs-server", which is now used.
- DietPi-Config | Resolved an issue where username and password in proxy settings could not be cleared, since the inputbox kept asking for an non-empty input. Many thanks to @dipisoft for reporting this issue: https://github.com/MichaIng/DietPi/issues/7211
- DietPi-Software | NoMachine: Resolved an issue where the installation failed due to an outdated download URL. Many thanks to @tzvi208 for reporting this issue: https://github.com/MichaIng/DietPi/issues/7198
Expand Down
18 changes: 12 additions & 6 deletions dietpi/func/dietpi-set_software
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,18 @@ $FP_SCRIPT rpi_kernel_choice <empty> Supported on Debian Bookworm or newer on R
3) all_components='rock4cplus';;
*)
[[ -f '/etc/apt/sources.list.d/dietpi.list' ]] && all_components=$(sed -n '/ all /{s/^.* all //p;q}' /etc/apt/sources.list.d/dietpi.list)
[[ $all_components ]] || for i in rock{pi-4b,-4se,pi-4cplus}
do
dpkg-query -s "linux-u-boot-$i-current" &> /dev/null || continue
all_components=${i/-//}
break
done
[[ $all_components ]] || if dpkg-query -s 'linux-u-boot-rockpi-4b-current' &> /dev/null
then
all_components='rock4'

elif dpkg-query -s 'linux-u-boot-rock-4se-current' &> /dev/null
then
all_components='rock4se'

elif dpkg-query -s 'linux-u-boot-rockpi-4cplus-current' &> /dev/null
then
all_components='rock4cplus'
fi
;;
esac
;;
Expand Down

0 comments on commit 988c198

Please sign in to comment.