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

Beta v7.8.0 #4934

Merged
merged 87 commits into from
Nov 6, 2021
Merged

Beta v7.8.0 #4934

merged 87 commits into from
Nov 6, 2021

Conversation

MichaIng
Copy link
Owner

@MichaIng MichaIng commented Nov 6, 2021

Beta v7.8.0

(2021-10-13)

New SBC support

  • Radxa Zero | Initial support for this Raspberry Pi Zero form factored (but way more powerful) SBC has been added to DietPi with the hardware ID 74. Many thanks to @almirus and @dhry for helping with testing and debugging an early image: Image | Radxa Zero #4831
  • Raspberry Pi Zero 2 W | Initial support for this Raspberry Pi Zero/Zero W successor has been added, using hardware ID 3 for now (shared with RPi 3/3+), including overclocking profiles. Many thank to @CassTG for providing early hardware information and doing intensive overclocking tests: https://dietpi.com/phpbb/viewtopic.php?t=9599

New software

  • DietPi-Dashboard | Thanks to the great work of @ravenclaw900, we are proud to announce our own official DietPi web interface for monitoring and managing your DietPi system using your web browser. It is still in beta phase as we test and gradually implement more features. We would be happy if you would try it out via "dietpi-software install 200" and give us feedback: DietPi-Software | Web Dashboard for DietPi #448

Removed software

  • Subsonic | Since it is not developed anymore and due to shared library dependencies only compatible with Debian Stretch, we removed Subsonic from DietPi-Software. With Airsonic-Advanced, we'll provide a well maintained and Bullseye-compatible alternative. If you currently have Subsonic installed, it will remain. If you want to uninstall it, follow the instructions here: DietPi-Software | Remove Subsonic and emonHub #4895
  • emonHub | Since we do not have a single reported installation, we removed emonHub from DietPi-Software. If you currently have emonHub installed, it will remain. If you want to keep using and updating it, have a look at the official repository: https://github.com/openenergymonitor/emonhub. If you want to uninstall it, follow the instructions here: DietPi-Software | Remove Subsonic and emonHub #4895

Changes

  • Odroid N1 | Removed support: We don't have a single reported system, which makes sense as this model was never really released. Only a small number of developer samples are floating around, not worth to keep maintaining an image and dedicated code. If there is really an Odroid N1 DietPi system out there, it will be automatically migrated to the Generic Rockchip RK3399 device ID on DietPi update.
  • DietPi-Config | Overclocking profiles for most Raspberry Pi models have been updated to match the effective 100 MHz ARM/CPU frequency steps used by current firmware. Also an energy saving profile has been added to some models, which reduces minimum and maximum voltage a little, reducing energy consumption and heat emission a little on idle and on load.
  • DietPi-Config | The option to prefer IPv4 connections when IPv6 is enabled has been removed: This only worked for APT and wget, while e.g. cURL and ping were never affected by this setting, which meant an inconsistent behaviour. If one faces issues with IPv6 enabled, it should be simply disabled instead of preferring/forcing IPv4 only for specific tools.
  • DietPi-Backup | A feature has been added to enable daily system backup via cron job. Many thanks to @Lycidias93 for suggesting this feature: Automatic Backup schedule #3871
  • DietPi-Backup | Rsync/transfer logs are now done to "dietpi-backup.log" inside of the backup directory. This way they remain persistent even if DietPi-RAMlog is enabled and can be reviewed at a later time. This is helpful especially when daily backups via cron job are enabled, where the log obviously is not presented directly when the backup finished. A related option to review the last transfer log has been added to the dietpi-backup main menu. The old log file /var/log/dietpi-backup.log is moved to the new location if any backup exists during next DietPi update.
  • DietPi-Backup | When using an NFS mount as backup target, it is now verified that the NFS share supports UNIX permissions to prevent the creation of a broken system backup in the first place.
  • DietPi-Drive_Manager | When transferring the DietPi user data to a different drive, it is now ckecked whether the target location is located within a supported filesystem type, one with native symlink and UNIX permission support. The same is done when using the CLI script /boot/dietpi/func/dietpi-set_userdata.
  • DietPi-Drive_Manager | Transferring the root filesystem is now supported on Odroid C4/HC4 models.
  • DietPi-Drive_Manager | When transferring the root filesystem, further checks are performed: There needs to be a dedicated boot partition (required on Raspberry Pi and default on our current Odroid images), as this is what the transfer steps expect and the only reason for moving only the root filesystem instead of cloning the whole drive or flashing the DietPi image to an external drive in the first place. The expected boot/kernel configuration files need to be present so that the kernel can be instructed to mount the new root filesystem. The DietPi user data must not currently be located at the target partition as it would be formatted and all data hence lost.
  • DietPi-Drive_Manager | The option to transfer the root filesystem is now shown as well when the drive does not contain any filesystem. The process implies formatting with a supported filesystem anyway which makes any condition obsolete. Also it is not needed anymore to unmount the filesystem manually first, as this is done automatically before formatting. In the related format menu, only supported filesystems are listed, i.e. ext4 and additionally F2FS on Raspberry Pi. The input box to enter a custom mount point is omitted as it is only temporarily used anyway until the root filesystem transfer has finished. The swap file is not disabled anymore as it can be copied and reused as is on the new root filesystem without issues.
  • DietPi-Drive_Manager | On ext4 filesystems, the reserved blocks percentage is now shown and can be changed as well if the drive is not currently mounted.
  • DietPi-Software | Roon Server: Added support for the new .NET core based version, released on November 3rd, which is expected to have improved performance compared to the old Mono based version. To resolve an old issue with our Roon Server implementation (see below), a reinstall is done during the DietPi update, which pulls in the .NET core dependencies as well. But this will NOT update the Roon Server version to prevent issues with potentially required migration steps. After updating DietPi, use Roon's internal updater to benefit from the new version.

Fixes

  • DietPi-Drive_Manager | Resolved an issue where resizing F2FS filesystems failed when currently mounted. Contradicting the docs and error output, mounting the filesystem read-only is not sufficnet, but it needs to be unmounted instead, which is not done automatically before the resize and remounted afterwards.
  • DietPi-Drive_Manager | Resolved an issue where resizing ext4 filesystems could have failed when not currently mounted. Especially if the drive is newly attached, a full fsck needs to be done once before it can be resized. This is now done automatically, allowing to resolve filesystem errors interactively, before resizing an offline ext4 filesystem.
  • DietPi-Config | Resolved an issue where Raspberry Pi 4 overclocking profiles were offered on Raspberry Pi 400. A new set of profiles have now been added dedicated for the Raspberry Pi 400.
  • DietPi-Software | IceCast: Resolved an issue where a new install failed due to an attempted operation on a non-existing file. Many thanks to @killtux for reporting this issue: darkice installation fails, chmod cannot access /etc/darkice.cfg #4858
  • DietPi-Software | Logitech Media Server: Resolved an issue where the uninstall failed as the package postinst script tried to remove the service user before the service was stopped.
  • DietPi-Software | Roon Server: Resolved an issue where the internal updater purged all Roon Server data and configs, since the data directory was located within the install directory. Roon Server will now be installed to /opt/roonserver while the data directory remains at /mnt/dietpi_userdata/roonserver. This change will be applied via DietPi update as well, your data and configs will remain untouched. Many thanks to @JanKoudijs for reporting this issue and providing a solution: Have Roon database in separate directory when installing Roon Server #4897
  • DietPi-Software | LXDE: Resolved an issue where on some cases on first desktop start, desktop icons were missing and another issue on Bullseye systems, where a "No session for pid" error message popped up on desktop start. Many thanks to @kerryland for reporting these issues: "Catch 22" in DietPi-Software for Browser and Desktop #4914
  • DietPi-Software | LXDE: Resolved an issue where the Firefox browser panel icon was present even if no Firefox was installed. In this case now either Chromium or the text editor is added as replacement.

+ META | Backwards merge: master > dev
+ General | Init v7.8 development cycle
+ DietPi-Patches | Fix applying boot wait for network migration
+ DietPi-Patches | Fix applying boot wait for network migration
+ DietPi-Software | IceCast: Resolved an issue where a new install failed due to an attempted operation on a non-existing file. Many thanks to @killtux for reporting this issue: #4858
+ DietPi-PREP | Do not try to enable removed DietPi-Boot service
+ DietPi-PREP | Add support for older Bullseye images where it was still the "testing" version
+ DietPi-PREP | Do not try to enable the removed dietpi-boot.service
+ DietPi-Imager | Upload archive automatically if there is an upload.sh in the same directory
+ DietPi-FirstBoot | Update service to start before dietpi-postboot.service instead of before removed dietpi-boot.service
+ DietPi-Survey_report | Be more verbose about why a survey upload was found to be invalid
+ DietPi-FirstBoot | Mute error messages when obtaining an interface for a non-existing type
+ DietPi-Globals | G_GET_NET: Print errors as error messages to STDERR
+ DietPi-PREP | Temporary fix for invalid interfaces at DietPi-FirstBoot
+ DietPi-PREP | Temporary fix for invalid interfaces at DietPi-FirstBoot
+ DietPi-PREP | Assure sufficiently large /tmp tmpfs mount. Running PREP in an ARMv7 Raspberry Pi somehow leads to a 98 MiB  /tmp mount, for a currently unknown reason since on the host system the default for tmpfs is ~512 MiB.
+ DietPi-PREP | Add U-Boot package auto-detection for generic images
+ DietPi-PREP | Wait for network at boot by default
+ DietPi-Login | Remove trailing tabs
+ DietPi-PREP | Fix boot wait for network script call
+ DietPi-Software | Jellyfin: The meta package depends on jellyfin-ffmpeg now, hence it doesn't need to be installed explicitly.
+ DietPi-PREP | Remove old dpkg cache before the script ends: At least the old status file is re-created. Skip the identical removals done earlier in the script.
+ DietPi-Survey_report | Add support fore new foreground+login autostart option
+ DietPi-Software | Deluge: Fix failing services
+ DietPi-Software | Deluge: Resolve first web UI service startup on Bullseye by pre-creating a localclient API login with a random 40 hex char password: The same is done by deluged, but written to the file only on first service stop, so that the web service cannot read it yet.
+ DietPi-Software | Deluge: Tiny
+ DietPi-Live-patches | Patch 0: Deluge services fail on fresh installs
+ Odroid N1 | Removed support: We don't have a single reported system, which makes sense as this model was never really released. Only a small number of developer samples are floating around, not worth to keep maintaining an image and dedicated code. If there is really an Odroid N1 DietPi system out there, it will be automatically migrated to the Generic Rockchip RK3399 device ID on DietPi update.
+ DietPi-PREP | Add additional cleanup for Armbian based images
MichaIng and others added 14 commits November 1, 2021 22:48
+ DietPi-Config | Add overclocking profiles for Raspberry Pi Zero, freshly tested and stress test proven. More is unlikely to be achievable, especially since on Raspberry Pi Zero the over_voltage cannot be raised as the absolute limit of 1.4V is the default with over_voltage=0 already.
+ DietPi-Config | Adjust Raspberry Pi 2 overclocking profiles according to the fact that over_voltage=2 is the maximum due to the 1.4V cap. The same should be true on Raspberry Pi 3 and Zero 2, but this should be tested, including the over_voltage required for the individual profiles.
+ DietPi-Config | Do not show a dedicated overclocking warning on every higher profile selection. Instead of a warning once when entering the overclocking menu. Also make clear that all profiles won't void the warranty and are practically assured to not cause hardware damage due to automatic throttling and capping in case of thermal or voltage issues. To void the warranty, force_turbo=1 would need to be set.
+ DietPi-Software | LXDE: Wallpaper and desktop icon text shadows are now set via global config file instead of applying this via first session script and doing the fragile PCManFM restart.
+ DietPi-Software | LXDE: Resolve "No session for pid" error prompt on desktop start
+ DietPi-Software | LXDE: Remove our own Openbox and PCManFM configs and instead apply the settings we want to add/change to the Debian package default. Only for the lxpanel we use our own, as it contains much customisations. However, align the format of the lxpanel config as much as possible with the Debian package's one for better comparison.
+ DietPi-Software | LXDE: Adjust Firefox app icon if it is not installed, use Chromium or the always installed text editor instead
+ DietPi-Patches | LXDE: Fixing the "No session for pid" error prompt on desktop start
+ General | Whenever calling "ping", prevent reverse DNS resolving if IPs in output, as we never want to test reverse DNS capabilities but at most forward DNS resolving when pinging a hostname. This potentially reduces lags during connectivity tests quite significantly.
+ DietPi-FirstBoot | RPi: Always apply commented default overclocking settings, but do this only for the definitely untouched ones with the hash at the beginning of the line. Aside of temperature limit, preserve existing settings when applying new ones. It is then important that e.g. over_voltage is set only when the CPU frequency is set as expected. That way config.txt shows the correct defaults for all overclocking values that have not been set manually by the user before the first boot or actively by us as a reasonably default change.
+ DietPi-Software | Single File PHP Gallery: Download newest version from official website
+ DietPi-Software | Single File PHP Gallery: Remove cache dir on reinstalls
+ DietPi-Software | Single File PHP Gallery: Assign random 30 alphanumerical character security phrase, just like the script itself would try it when unset. We could leave it out, but then PHP required write access to the script, so it is safer to preset it.
+ DietPi-Backup | Add the option to enable daily system backups via cron job
+ DietPi-Cron | Assure that whiptail dialogues are skipped, even when the script is called manually, since STDOUT is redirected
+ DietPi-Backup | Log transfer details to the backup location form now on to assure they are persistent and can be reviewed at a later time and that they remain associated to the individual backup location. This is especially helpful when doing daily backups via cron job, as in this case the log file is not shown directly when the backup finished.
+ DietPi-Backup | Add an option to the menu to review the last backup/restore log, if present, which is now persistent
+ DietPi-Patches | Move the DietPi backup log from old /var/log/dietpi-backup.log to the new backup location. Remove it if no backup location exists.
+ DietPi-Sync | Add short desciptions to menu options
+ DietPi-Patches | Do not move dietpi-backup.log if the target directory from settings does not exist
+ META | Backwards merge master > dev
+ DietPi-Live_patches | Drop v7.7 live patch for v7.8
+ DietPi-Software | Mopidy: Merge install and config code blocks
+ DietPi-Software | Merge all install and config code blocks
+ DietPi-Software | Further cleanup and coding enhancements
@MichaIng MichaIng added the Beta 🧪 Issues specific to the Beta branch testing label Nov 6, 2021
@MichaIng MichaIng added this to the v7.8 milestone Nov 6, 2021
+ DietPi-Config | That RPi Zero 2 W currently runs with max 1.4V by default is a bug and current rpi-update firmware sets this to 1.35V to align with most other models. This means that for the high overclocking profile we apply over_voltage=2 to assure that 1.4V is kept. It is unlikely that this profile runs stable with only 1.35V.
@Joulinar
Copy link
Collaborator

Joulinar commented Nov 6, 2021

ok let's go for first beta. Quite some changes 😃

Joulinar
Joulinar previously approved these changes Nov 6, 2021
+ DietPi-Pre-patches | If an APT key expired already, it shows "expired: <date>" instead of "expires: <date>". To be failsafe, accept both: It is definitely the expired key when expiration date is in 2021.
ravenclaw900 and others added 2 commits November 6, 2021 23:36
+ DietPi-Software | DietPi-Dashboard: Thanks to the great work of @ravenclaw900, we are proud to announce our own official DietPi web interface for monitoring and managing your DietPi system using your web browser. It is still in beta phase as we test and gradually implement more features. We would be happy if you would try it out via "dietpi-software install 200" and give us feedback: #448
+ DietPi-Services | When printing the status, instead of removing a hardcoded number of 11 characters from the start of the line, remove the first field and delimiter. The number of leading spaces has changed with Bullseye, so that the colon of "Active:" was shown unintentionally.
+ RC up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Beta 🧪 Issues specific to the Beta branch testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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