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 v7.7 #4840

Merged
merged 118 commits into from
Oct 16, 2021
Merged

Release v7.7 #4840

merged 118 commits into from
Oct 16, 2021

Conversation

MichaIng
Copy link
Owner

@MichaIng MichaIng commented Oct 14, 2021

DietPi v7.7

(2021-10-16)

Removed software

  • CouchPotato | Sadly, the CouchPotato project is not maintained anymore and has been abandoned. In turn we removed it from DietPi. The instance installed on your system will remain, but it cannot be installed, reinstalled or uninstalled anymore. We recommend to migrate to an alternative project, like Radarr, which can be found in DietPi-Software was well. Manual CouchPotato uninstall instructions: DietPi-Software | CouchPotato: Evaluating development status #4323 (comment)

Changes

  • General | The /boot/dietpi/func/obtain_network_details script has been removed, including the related /run/dietpi/.network file to obtain network details. All uses of these files have been replaced with the new DietPi-Globals G_GET_NET function (see below).
  • DietPi-Globals | A new global function G_GET_NET has been added to print network interface details. Most importantly it prints info for the main interface, by following the priorities of /boot/dietpi/func/obtain_network_details: default gateway => state UP => IP assigned, but allows to additionally filter by IP family, type, interface name or print the default gateway explicitly. It aims to be a replacement for /boot/dietpi/func/obtain_network_details with more flexibility and to allow deriving always up-to-date interface info instead of depending on the correctness of a cache file.
  • DietPi-Globals | G_GET_WAN_IP: We use our own GEO IP service now to show the systems WAN IP and location in the DietPi banner and DietPi-VPN. When Pi-hole was used, with a previous update, "freegeoip.app" was added to Pi-hole's whitlist, which is now not required anymore. You may hence remove that entry from the whitelist.
  • DietPi-Globals | The global functions G_DEV_1 and G_DEV_BENCH have been removed, which did exist for testing and development only but are not used in our current workflows.
  • DietPi-TimeSync | Use the same flag file that systemd-timesyncd itself uses since Buster, to skip an additional service restart and sync when it was done already.
  • DietPi-TimeSync | When our oneshot modes (boot only, hourly, daily) are selected, systemd-timesyncd is now "enabled" to be started by systemd earlier at boot, instead of on our script call. Especially since both now share the same flag file (on Buster and above), this has a chance to prevent an additional service restart if the time sync has finished already when PostBoot is reached.
  • DietPi-Boot | This script and service has been removed: Waiting for network is now done via DietPi-PostBoot "After=network-online.target", time sync is done in DietPi-PostBoot, but in background (mostly not required for service starts) and pre-installed image stage handling is as well done in PostBoot now.
  • DietPi-Update | A network connection and time sync check is now done before checking for updates, similar to how DietPi-Software does it on installs.
  • DietPi-Login | The DietPi banner on login won't be shown anymore if ~/.hushlogin exists, which is a common method to prevent the shell from printing /etc/motd on login and should hence be respected for the DietPi banner as well. Many thanks to @dnknth for doing this suggestion: .hushlogin has no effect #4786
  • DietPi-JustBoom | Added the ability to enforce an output channel count, or to not enforce an audio format value to preserve the input stream format or leave conversion up to ALSA, which is now the default when resetting settings. Similarly the audio output buffer can now be unset to keep the MPD default. Generally, if not required for a specific reason, it is recommended to not convert the audio stream and keep these settings unchanged/default.
  • DietPi-Software | Deluge: Logging is not done to /var/log/deluged/ anymore but to journal instead, accessible via "journalctl -u deluged -u deluge-web". This change only affects new installs and reinstalls of Deluge.
  • DietPi-Software | Deluge: On fresh installs, the web interface is now accessible as expected with the chosen global software password, stored hashed with a fresh random salt. Previously the password was hardcoded to "dietpi".
  • DietPi-Software | Kodi: On Debian Bullseye, with Kodi 19, GBM support is present by default, which means that Kodi can be started without a wrapping X server. This is now done by default when starting Kodi outside of a desktop session, including the dietpi-autostart option. This also means that an X server is not installed anymore as a dependency of Kodi, but only as a dependency of a deskop environment.
  • DietPi-Software | Kodi: It can now be installed on all devices. In some cases, video playback performance may be bad, depending on the GPU, whether good drivers are available, and on the video quality, of course. However, it should be our users who evaluate whether it's sufficient or not, instead of us. With Debian Bullseye, new Mesa drivers and Kodi 19 started via GBM, performance should be much better than it was with older Debian/package versions.
  • DietPi-Software | File Browser: The default network port has been changed to 8084 to resolve a conflict with HTPC Manager. This only affects new File Browser installs. Many thanks to @KamikazeePL for reporting this issue: https://dietpi.com/phpbb/viewtopic.php?t=9507

Fixes

  • General | Since the Armbian repository router does not reliably preserves HTTPS on redirects yet, APT by times fails when detecting a downgrade from HTTPS to HTTP. We hence change the armbian.list to use plain HTTP until the issues with the router have been resolved.
  • General | Worked around an issue on Debian Stretch where "systemctl enable/disable --now" does not start/stop the service in certain circumstances. This is solved within our error handler "G_EXEC", hence when manually calling systemctl you may still face this: Stretch | systemctl --now flag has no effect in two cases #4815
  • General | Applied a workaround on Bullseye systems with older Linux versions (v4.14 and below) which do not sufficiently support the new "unified cgroup hierarchy" (a.k.a. cgroups-v2). Since the newer systemd tries to use it automatically, Docker and similar software which make use of cgroups fail. For devices with known boot configuration file, the kernel command line arguments are applied to force the legacy cgroups hierarchy usage.
  • DietPi-Backup | Resolved an issue where clearing the PATH cache via "hash" command did not work as of a wrong command line argument: DietPi-Backup | error message during restore #4800
  • DietPi-LetsEncrypt | Resolved an issue where the script failed when ownCloud or Nextcloud are were installed. Many thanks to @billouetaudrey for reporting this issue: DietPi-LetsEncrypt error when trying renew certificate ( sed -e ... ) #4752
  • DietPi-JustBoom | Resolved an issue where applying some MPD settings did not work. Many thanks to @elevader for reporting this issue: https://dietpi.com/phpbb/viewtopic.php?t=9426
  • DietPi-Config | Resolved an issue where the WiFi connection state could have been obtained falsely as accidentally the Ethernet interface index was used to derive it.
  • DietPi-Config | Resolved an issue on NanoPi NEO (and likely other Allwinner H3 SBCs) where selecting a sound card failed as an invalid control was tried to be set. Many thanks to @VS-X for reporting this issue: Incorrect ALSA control name for H3 devices (e.g. NanoPi Neo) #4833
  • DietPi-Software | Resolved an issue where software services failed with a cryptic error message, when an expected directory was not present. This was especially reported with Sonarr and Radarr, if their log directory was missing for some reason. When directories are missing, which are explicitly listed to be read-writeable within the systemd service, systemd prints "Failed at step NAMESPACE spawning", while Sonarr and Radarr themselves would print a clearer error message about the missing log directory. Many thanks to @stevewitz for reporting this issue: https://dietpi.com/phpbb/viewtopic.php?t=9463
  • DietPi-Software | Lighttpd: Resolved an issue where the upgrade from Buster to Bullseye, following our guide, fails if HTTPS was enabled via DietPi-LetsEncrypt before. Many thanks to @fhals for reporting this issue: https://dietpi.com/phpbb/viewtopic.php?t=9477
  • DietPi-Software | Kodi: Resolved an issue on RPi ARMv8/64-bit systems where Kodi fails to start when it was installed without a desktop. Many thanks to @Klola for reporting this issue: https://dietpi.com/phpbb/viewtopic.php?p=38079#p38079
  • DietPi-Software | Deluge: Resolved an issue on Bullseye where the web interface service did not start as a new command line flag "-d" is required to keep it in foregound. Many thanks to @quyentruong for reporting this issue: Deluge 2.0.3 failed on Bullseye #4785
  • DietPi-Software | Home Assistant: The Python version compiled with Home Assistant has been bumped to v3.9.7, which resolves and issue with installs on 32-bit ARM systems. Many thanks to @Przemek for reporting this issue: Cant install HomeAssistant with DietPi-Software on RPi 2 Model B (armv7l) #4372 (comment)
  • DietPi-Software | Home Assistant: Resolved an issue where Home Assistant did not start on ARM systems due to newly required runtime libraries.
  • DietPi-Software | Chromium: Resolved an issue where the autostart option didn't work if Chromium was installed without a desktop. Many thanks to @jowelboy for reporting this issue: https://dietpi.com/phpbb/viewtopic.php?t=9531
  • DietPi-Software | Chromium: Resolved an issue on RPi where starting Chromium failed if no desktop was installed, due to a missing dependency. Many thanks to @Loader23 for reporting this issue: Chromium Kiosk broken #4782
  • DietPi-Software | X.Org X Server: Resolved an issue with Odroid N2 and C4 models where the installation failed because of a typo. Many thanks to @wiml for reporting this issue: Cannot install kodi (or lxde) due to missing/misspelled xorg-xserver-video-fbdev #4830
  • DietPi-Software | Airsonic: Since the project has been archived and does not support Java 17, it has been disabled on Bullseye. We're watching a fork (https://github.com/airsonic-advanced/airsonic-advanced) which is actively developed and where at least the web interface works with Java 17. Playing audio however failed on local tests, hence we'll wait until it becomes more stable to be a drop-in replacement for Airsonic in general and supported on Bullseye with Java 17 as well. Many thanks to @Andaloup for reporting this issue: DietPi-Software | Airsonic: Bullseye/Java 17 support and active fork #4847
  • DietPi-Software | FreshRSS: Resolved an issue where on reinstalls nested /opt/FreshRSS/FreshRSS-master and /opt/FreshRSS/p/p were created. Since FreshRSS has an internal updater, reinstalls won't download and install the new version as long as /opt/FreshRSS is present already. The nested directory and link is removed on next DietPi update, when present. Many thanks to @kinoushe for reporting this issue: FreshRSS - infinite child 'p' folders after Buster to Bullseye upgrade #4775

+ META | Backwards merge
+ DietPi-Live_patches | Reset live patches
+ DietPi-LetsEncrypt | Fix syntax when applying ownCloud/Nextcloud CLI URL
+ CHANGELOG | DietPi-LetsEncrypt: Resolved an issue where the script failed when ownCloud or Nextcloud are were installed. Many thanks to @billouetaudrey for reporting this issue: #4752
+ DietPi-Software | Resolved an issue where software services failed with a cryptic error message, when an expected directory was not present. This was especially reported with Sonarr and Radarr, if their log directory was missing for some reason. When directories are missing, which are explicitly listed to be read-writeable within the systemd service, systemd prints "Failed at step NAMESPACE spawning", while Sonarr and Radarr themselves would print a clearer error message about the missing log directory. Many thanks to `@stevewitz` for reporting this issue: https://dietpi.com/phpbb/viewtopic.php?t=9463
+ DietPi-Software | Audiophonics PI-SPC: Merge and cleanup install and config code blocks. Add code comments to clarify that using the device tree overlays is an alternative (superior) method, compared to running the shutdown script. But before changing the methods, someone with a PI-SPC modules needs to test it. The prior comments had the pins switched and false syntax in gpio-poweroff, which may be the reason it didn't work, or not well, when this was attempted the first time.
+ DietPi-PREP | Access Armbian repository via HTTP until the router issues are solved which lead to forbidden HTTPS => HTTP redirects
+ DietPi-Software | Lighttpd: Fix false attempt to enable the OpenSSL module on systems upgraded from Buster to Bullseye
+ CHANGELOG | Lighttpd: Resolved an issue where the upgrade from Buster to Bullseye, following our guide, fails if HTTPS was enabled via DietPi-LetsEncrypt before
+ DietPi-Software | Kodi: The ARMv8/64-bit image for RPi uses the Debian Kodi package, which requires an X server
+ CHANGELOG | Kodi: Resolved an issue on RPi ARMv8/64-bit systems where Kodi fails to start when it was installed without a desktop
+ CHANGELOG | Fix  bug report reference
+ Odroid N2 | Print boot messages to HDMI as well, which seems to be NOT done automatically
+ CHANGELOG | Spelling corrections
+ DietPi-Software | CouchPotato: Sadly, the CouchPotato project is not maintained anymore and has been abandoned. In turn we removed it from DietPi. The instance installed on your system will remain, but it cannot be installed, reinstalled or uninstalled anymore. We recommend to migrate to an alternative project, like Radarr, which can be found in DietPi-Software was well. Manual CouchPotato uninstall instructions: #4323 (comment)
+ META | Spelling
+ DietPi-Login | Hide DietPi banner when ~/.hushlogin exists, which is a common method to prevent the shell from printing /etc/motd on login and should hence be respected for the DietPi banner as well: #4786
+ CHANGELOG | DietPi-Login: The DietPi banner on login won't be shown anymore if ~/.hushlogin exists, which is a common method to prevent the shell from printing /etc/motd on login and should hence be respected for the DietPi banner as well. Many thanks to @dnknth for doing this suggestion: #4786
+ DietPi-Software | Deluge: Fix web interface service on Bullseye as now the "-d" flag is required to keep the process in foreground
+ DietPi-Patches | Fix Deluge web interface service on Bullseye: #4785
+ DietPi-Patches | Syntax
+ DietPi-Patches | Fix Deluge software ID
+ DietPi-PREP | On x86_64, if /boot is on a FAT partition, create a kernel upgrade hook script to remove existing files first: #4785
+ DietPi-Pre-patch | On x86_64 with /boot FAT partition, create kernel upgrade hook to remove existing files from /boot before installing the new files: #4785
+ DietPi-Pre-patches | Syntax
+ DietPi-Pre-patches | Fix issue URL
+ DietPi-PREP | Fix issue URL
+ DietPi-Pre-patch | Connecting to apt.armbian.com via plain HTTP until their router handles HTTPS redirects reliably
+ DietPi-Pre-patch | Re-apply suite change patch on Buster, since it is not accepted by default on "apt" package versions below 1.8.2.3 by default. Use the "-o" option now which allows automated acceptance as well on Stretch.
+ DietPi-Patches | Satisfy shellcheck
+ DietPi-Software | Amiberry: Assure that libraspberrypi0 is installed on RPi
+ DietPi-Software | Amiberry: Merge install and config code blocks
+ README | Add notes about wait for network and time sync changes
+ RC up
+ CHANGELOG | Set release PR URL
@MichaIng MichaIng marked this pull request as ready for review October 16, 2021 00:43
+ DietPi-TimeSync | Do not restart but only start systemd-timesyncd. This way a potentially pending sync is not aborted. It needs to be monitored, whether a running daemon has any chance to be stuck and requires a restart to trigger a new sync.
+ General | Applied a workaround on Bullseye systems with older Linux versions (v4.14 and below) which do not support the new "unified cgroup hierarchy" (a.k.a. cgroups-v2). Since the newer systemd tries to use it automatically, Docker and similar software which make use of cgroups fail. Where known, kernel command line arguments are applied to force the legacy cgroups hierarchy usage, else on update users are informed that either a kernel upgrade or applying those kernel command line arguments is required to re-enable mentioned software to run.
+ DietPi-Patches | Inform and offer to re-apply the ssh.dietpi.com host key if missing: #4844
+ General | Fix flag for "systemd.legacy_systemd_cgroup_controller": Without an argument or 1/true, the legacy cgroupv1 hierarchy is used, which is what we want.
+ General | Force cgroups v1 depending on kernel version, as it is usually generally supported, but not the BPF based device access permissions, which cannot be easily+reliable checked. Apply workaround on ROCK Pi 4 as well, which requires u-boot-tools to compile the U-Boot config. Not not force legacy systemd cgroups-v2 hierarchy but allow hybrid mode, which seems to not break anything and was default on Debian Buster.
+ CHANGELOG | Update cgroups related entry
+ DietPi-Set_hardware | soundcard: Remove setting an invalid control value. The 3.5mm output is not muted by default and it shouldn't cause any issues when HDMI audio output is forced via card index.
+ DietPi-Software | vaultwarden: Set minimum memory requirement to 3 GiB on single-core systems and 4 GiB on multi-core to solve aborted builds, e.g. found on ARMv8. Make it a single case and always run all all processors to potentially speed up the build.
+ RC up
+ DietPi-Software | Airsonic: Since the project has been archived and does not support Java 17, it has been disabled on Bullseye. We're watching a fork (https://github.com/airsonic-advanced/airsonic-advanced) which is actively developed and where at least the web interface works with Java 17. Playing audio however failed on local tests, hence we'll wait until it becomes more stable to be a drop-in replacement for Airsonic in general and supported on Bullseye with Java 17 as well. Many thanks to @Andaloup for reporting this issue: #4847
+ DietPi-Software | FreshRSS: Resolved an issue where on reinstalls nested /opt/FreshRSS/FreshRSS-master and /opt/FreshRSS/p/p were created. Since FreshRSS has an internal updater, reinstalls won't download and install the new version as long as /opt/FreshRSS is present already. The nested directory and link is removed on next DietPi update, when present. Many thanks to @kinoushe for reporting this issue: #4775
+ DietPi-Patches | Syntax
+ DietPi-Patches | Fix condition for disabling dietpi-boot.service
+ Syntax
+ DietPi-Set_software | Fix boot wait for network
+ DietPi-Config | Fix Boot wait for network state detection and do not apply translation patch on update a second time
+ DietPi-Set_software | Further fixes
+ CHANGELOG | Spelling
+ CHANGELOG | Spelling
@MichaIng MichaIng merged commit 0400752 into master Oct 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Open Beta v7.7 | Please help testing and hardening the upcoming release
3 participants