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 v6.26 #3162

Merged
merged 280 commits into from
Oct 15, 2019
Merged

Release v6.26 #3162

merged 280 commits into from
Oct 15, 2019

Conversation

MichaIng
Copy link
Owner

v6.26

(15/10/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 pull requests against the jessie-support branch: https://github.com/MichaIng/DietPi/tree/jessie-support
  • General | Initial support and definitions for Debian Bullseye, the new Debian testing version, have been added to DietPi code. You can now create Bullseye systems via DietPi-PREP: Debian Bullseye | General testing #3009
  • General | DietPi scripts, i.e. dietpi-software, will not overwrite you custom permissions in /mnt/dietpi_userdata anymore. Instead required permissions are now only applied for individual software titles that are being installed. Besides saving you time to re-apply custom permission, this as well enhances security in some cases where software installers/archives apply/contain stricter per-file/dir permissions. Many thanks to @JJGO and @johnvick for suggesting this enhancement: DietPi-Software | Skip setting file permissions globally after each install #2641
  • General | On first boot, when DietPi-Software finishes the initial setup, it is now assured that all APT packages, including firmware, are upgraded by performing an "apt-get dist-upgrade"/"apt full-upgrade". Since it includes upgrades regardless of underlying dependency and conflict changes, which in rare cases can perform unwanted removals, we do not do this on regualar DietPi-Update/Software runs. But on first boot, without additional packages installed yet, it is safe. Many thanks to @cmessin1 for doing this request: DietPi-Software | Do APT full/dist-upgrade on firstrun installs #3098
  • Rochchip | Experimental GPU acceleration support for RK3399 SoCs and ASUS Tinker Board has been re-enabled.
  • RPi | The haveged daemon has been replaced with rng-tools, an alternative which does not work on all devices, but has been proven to work on RPi, is default on Raspbian and uses less RAM on idle.
  • RPi4 | The default CPU temperature limit (temp_limit) has been raised from 65°C to 75°C, since this device runs significantly hotter then previous RPi model. Many thanks to @trueaspects and @Trunkzeh for doing this suggestion: Buster Image - SCP not enabled by default #3019, DietPi- Config | Set ARM Temp Limit for RPI3 and RPI4 to 75c. Currently set at 65c #3151
  • DietPi-Globals | The environment variable $G_USER_INPUTS has been renamed to $G_INTERACTIVE, which describes better what it does. When setting this to "0", DietPi scripts will run non-interactively, i.e. all whiptail dialog prompts and other tasks that require manual user input are skipped. Note that this is not required when running scripts from cron jobs or systemd units, since those have no STDIN attached which makes DietPi scripts run non-interactively automatically. Scripts will stay backwards-compatible, thus respect $G_USER_INPUTS for a while, but please adjust your scripts or docs where you make use of it. Many thanks to @AtkLordOverAll for contributing this change: DietPi-Globals | Renamed G_USER_INPUTS to G_INTERACTIVE #3041
  • DietPi-PostBoot | /var/log/boottime is not created anymore. Please use "systemd-analyze" to get much more accurate and detailed boot information.
  • DietPi-PostBoot | The pre-login banner has been slightly adjusted: Default login credentials are now only shown on first boot, since the information is obsolete when user changed the password. As well an info has been added that one needs to hit to show the username input field.
  • DietPi-Banner/NordVPN: DietPi-NordVPN has a new input command to print the current VPN connection state: "dietpi-nordvpn status". This has been implemented as well into DietPi-Banner to optionally show NordVPN connection state on login automatically. Many thanks to @svh1985 for implementing this feature: NordVPN improvements | Change up and down script and add item to DietPi-Banner #3084
  • DietPi-NordVPN | Added options for connection up/down scripts, e.g. to implement killswitches, answer inbound connections from outside local network correctly, safe and track connection uptime, and similar tasks. Many thanks to @svh1985 for implementing this feature: Edit Up and Down scripts from dietpi-nordvpn #3047
  • DietPi-Config | Audio Options: Menu has been reworked. Audio capabilities (ALSA) can be enabled and disabled as a separate option. If enabled, generic sound card auto-detection has been added to the bottom of the list for all devices. This allows the selection of generic sound devices on all SBCs, e.g. if unknown to DietPi or if our hard-coded card/device IDs are wrong due to additional attached audio hardware.
  • DietPi-Config | Some /etc/modprobe.d/ configs are merged to less files and mostly prefixed with "dietpi-", to allow easier differentiation between Debian/pre-image and DietPi files.
  • DietPi-Config | RPi: Update certain config.txt settings to match new firmware version. WiFi and Bluetooth is now disabled via related dtoverlays, which should further reduce hardware and firmware loads.
  • DietPi-Config | Added overclocking profiles for RPi4. Many thanks to @aftensleuk for request and valuable suggestions: https://dietpi.com/phpbb/viewtopic.php?f=12&t=6225
  • DietPi-Config | RPi: Re-added previously removed options to adjust initial turbo for CPU frequency on boot and to lower the idle CPU frequency. The related firmware issues have been fixed with a recent update: RPi | Re-implement "initial_turbo" #3147
  • DietPi-Config | RPi: Removed the option to adjust CPU frequency limits. On RPi the dynamic CPU governors only jump between "arm_freq" and "arm_freq_min", hence those limits should be set via overclocking profile and the newly re-added "ARM Idle Frequency" option.
  • DietPi-Config | RPi1/Zero: OpenGL modes/drivers can now be successfully selected/installed from display resolution menu.
  • DietPi-Software | TightVPN: Since Stretch, TightVPN has been replaced by TigerVPN, thus the install option has now been removed from code.
  • DietPi-Software | SDL2: Since we ship a tailored build for Amiberry, the general install option for SDL2 has been removed, instead it will be installed/updated along with Amiberry. If you require SDL2 for any other purpose, please install the "libsdl2-2.0.0" package from APT repository: https://packages.debian.org/libsdl2
  • DietPi-Software | Pi-hole: Logging to /var/log/pihole.log is now disabled by default, since it is not required in usual cases. Query logs, shown in web UI, are stored in database. This might also resolve possible pihole-FTL crashes in combination with DietPi-RAMlog and DietPi-Logclear. Many thanks to @kuerious for reporting and @Mcat12 for providing helpful information on this topic: Service "pihole-FTL" keeps crashing/stopping; both as HW on RPi 2 Mod B+ & as VM pi-hole/FTL#614
  • DietPi-Software | Pi-hole: Webserver configs have been added to block public access to the blocking page, optionally as well to the admin panel and generally block access to dot files/dirs (.git*) inside the admin panel directory. Parts are inspired by the official Lighttpd config, provided by Pi-hole: https://github.com/pi-hole/pi-hole/blob/master/advanced/lighttpd.conf.debian
    Many thanks to @AtkLordOverAll for his effort to implement this for Lighttpd initially + the choice during install to block public admin panel access as well: DietPi-Software | Pi-hole: Block access to blocking page from web by default #3054
  • DietPi-Software | OpenVPN: Rsyslog is not installed anymore together with OpenVPN server. Logs are available via "journalctl -u openvpn", all system logs via "journalctl". If you require persistent logs, uninstall DietPi-RAMlog via dietpi-software and make the journal boot persistent via: mkdir /var/log/journal
  • DietPi-Software | Gogs: On ARMv7 and x86_64 now the latest version from GitHub is installed. Reinstalls will upgrade the version while preserving existing settings. Many thanks to @LazyLama for doing this suggestion: DietPi-Software | Gogs: Install latest version from GitHub #2999
  • DietPi-Software | Webmin: Install is now done via official APT repository to allow easier updates. To apply this to all systems, it is reinstalled on DietPi-Update to v6.26. Additionally the dependency on rsyslog has been removed. The Webmin logging panel still depends on rsyslog, but the overhead shall not be applied to all systems by default. Instead users can now decide themselves, whether they need to see system logs on Webmin, or not, and in case apply custom logging settings as well.
  • DietPi-Software | Amiberry: Enabled support for RPi4 and Odroid XU4. Thanks to @midwan for providing the binaries: DietPi-Software | Amiberry: Add support for Buster and RPi4 #3104
  • DietPi-Software | myMPD: Updated install steps to avoid deprecations of the current upstream version. As well the service will not run as primary group "dietpi" anymore, which is only required for software that creates media files. Many thanks to @jcorporation (developer of myMPD) for providing this information as well as a smooth build script that updates old instances gracefully: DietPi-Software | myMPD: Update install steps to avoid deprecations #3097
  • DietPi-Software | WiFi Hotspot: Since on some systems, a hostapd service mask was found, it is now unmasked on install. As well our custom compiled binaries are now only installed on RTL8188C* devices where no special Realtek hostapd package is available. Many thanks to @symbios24 for reporting the service mask issue: DietPi-Software | WiFi-Hotspot: Unmask service on install and on RPi only overwrite binary for RTL8818CU* chips #2962
  • DietPi-Software | Fail2Ban is not handled by DietPi-Services anymore, since the brute-force protection shall stay active during updates, installs, backups etc. The service is now started by systemd on boot and stays active until shutdown. Additionally on fresh installs the default jail.conf is optimised for the set "route" ban action: "blackhole" is now the route type, which does not send any respond to blocked requests.
  • DietPi-Software | WireGuard: Support for RPi1 + RPi Zero (ARMv6 models) has been enabled by switching to Bullseye as source repo, which is available for Raspbian as well. Additionally on RPi, the WireGuard kernel module is now rebuilt automatically after kernel package upgrades. Many thanks to @johnnyt83 for suggestion RPi1/Zero support and his efforts to test the source build: DietPi-Software | WireGuard: Enable for RPi ARMv6 via Bullseye repo #2997
  • DietPi-Software | Gitea: Version 1.9.4 will be shipped from now on. Many thanks to @msongz and @minhphuc429 for implementing this update: update gitea to 1.9.3 #3138, Ready | DietPi-Software | update gitea to 1.9.4 #3154
  • DietPi-Software | Aria2: Runs now as it's own user "aria2" and group "dietpi" with home dir and config file moved to /mnt/dietpi_userdata/aria2/. Besides satisfying security standards, this allows other download and media related software, provided by dietpi-software, direct access to Aria2 downloads without the need for custom permission changes. Additionally the current session (download states) are saved on service stop and every 60 seconds, to prevent current tasks from being lost on reboot or power loss. Aria2 will be reinstalled with v6.26 to apply these changes. Many thanks to @msongz for implementing and testing the session feature: DietPi-Software | Aria2: Installer rework #3139

Bug Fixes

Known/Outstanding Issues

MichaIng and others added 30 commits July 21, 2019 16:43
+ DietPi-Patch | OMV binary is present on our NanoPi NEO2 image as well. The reason is that those two files are not part of current OMV packages (e.g. binary got renamed), thus are not removed by purging them. As those are surely obsolete, remove them.
+ DietPi-PREP | Remove obsolete OMV binary as well. Both, cron job and binary, are not part of current OMV packages, thus are not removed by purging the packages.
+ CHANGELOG | Removed an obsolete OpenMediaVault cron job and binary that was leftover on at least one of our images
+ DietPi-Set_hardware | soundcard: Skip installing alsa-utils via input value "none"
+ DietPi-Set_hardware | soundcard: Reset current and persistent control state before applying new soundcard setting
+ DietPi-Set_hardware | soundcard: Skip applying amixer settings via boot script or service. alsa-restore.service (or alsa-state.service, in case daemon mode enabled) safes and restores them automatically
+ DietPi-Set_hardware | soundcard: Store control states once and force alsa-restore.service restart, to assure it is active (states preserved) for next reboot
+ DietPi-Set_hardware | soundcard: Fix I2S on RPi which is a dtparam and no dtoverlay
+ DietPi-Set_hardware | soundcard: Skip dtoverlay=i2s-mmap on RPi which is not available since kernel 4.9 but enabled by default with I2S.
+ DietPi-Set_hardware | soundcard: Split RPi onboard options: HDMI, 3.5mm and auto
+ DietPi-Set_hardware | soundcard: Coding: Merge simple dtoverlay options on RPi
+ DietPi-Set_hardware | soundcard: Remove "pine64-analogue" which is not available anymore in DietPi-Config. Re-add when users can verify correct method to enable 3.5mm on new ARMbian-based Pine64 image.
+ DietPi-Set_hardware | soundcard: Enable all dtoverlays, kernel modules, services and scripts immediately to allow skipping reboot from DietPi-Config
+ DietPi-Set_hardware | soundcard: When USB DAC auto detection fails, inform user that it is reverted to "none" and skip creating asound.conf.
+ DietPi-Set_hardware | Coding: Use "systemctl enable/disable --now" (available since Stretch) to include start/stop into the same call. Skip "systemctl daemon-reload" after removing a unit, which has no relevant effect.
+ DietPi-Set_hardware | serialconsole: Remove obsolete block for Odroid C1 Jessie (kernel 3.x)
+ DietPi-Set_hardware | Minor coding
+ DietPi-Config | Audio: Split disabling audio capabilities as a separate menu entry, hide all other options when disabled. Install alsa-utils when enabling, as well mark as installed for DietPi-Software, purge when disabling.
+ DietPi-Config | Audio on RPi: Remove obsolete rpi-bcm2835-ultrahq entries and doubled allo-boss-dac-pcm512x-audio. Add additional available HifiBerry and IQaudio soundcard dtoverlay.
+ DietPi-Config | Audio: Coding: Sort all soundcard options into a single $G_HW_* if-then-elif statement to grant a better overview of options per device. Add default=HDMI entry only to those devices, where we explicitly configure it like that within DietPi-Set_hardware. Do not show any "default" entry on other devices.
+ DietPi-Config | Audio: Add generic /proc/asound based detection to the bottom of the list for all devices
+ DietPi-Config | Audio: Add Intel SST DSP as a separate option to all Intel CPU devices, instead of installing the related firmware by default. Most user will never need it.
+ DietPi-JustBoom | Minor coding and merge ALSA + soundcard check into single exit prompt. Either installing ALSA via DietPi-Software or selecting a soundcard via DietPi-Config works.
+ DietPi-Software | ALSA: Enable default soundcard for all devices, if set to "none". Last fallback for this will be hw:0,0. On RPi use newly added "rpi-bcm2835-auto" which replaces "rpi-bcm2835-ultrahq" to enable onboard sound which uses HDMI if plugged, else 3.5mm automatically.
+ DietPi-Software | ALSA: Rely on DietPi-Set_hardware to install "alsa-utils"
+ DietPi-PREP | alsa-utils and firmware-intel-sound is not installed anymore by "dietpi-set_hardware soundcard none", thus does not need to be purged anymore.
+ DietPi-PREP | Do not reduce subversion by 1 anymore. Due to RC versions this is not required anymore, which is always increased before doing stable release.
+ DietPi-PREP | Coding: Remove some empty lines between G_DIETPI-NOTIFY() calls and related singe commands, to optically merge code that belongs together
+ DietPi-Patch | Remove obsolete/invalid audio related services/scripts/settings
+ DietPi-Patch | I2C baudrate fix was applied to wrong config file, whoopsie!
+ DietPi-Set_hardware | RPi Camera: Since kernel 4.19 all camera related kernel modules are loaded by default, regardless of start_x=1 (extended start file) being set or not. Thus we now need to add a blacklist for them when disabling the camera instead of adding them to /etc/modules when enabling the camera.
+ DietPi-PREP | Disable RPi camera to add modules blacklist
+ DietPi-Patch | RPi: Remove obsolete camera module entry, which is loaded by default since kernel 4.19, instead add a blacklist entry if camera is disabled.
master > dev to allow removing the master hotfixes via additional commit
+ DietPi-PREP | Remove v6.25 post-release fixes, not required and insecure on v6.26+ code
+ DietPi-Software | Node-RED: Only add user to "gpio" group, if it exists, otherwise useradd/usermod commands fail and user is not created or modified, e.g. on x86_64 with no GPIO.
+ DietPi-Software | Failsafe user creation: Add "-U" option to assure a same-named group is always created. This is default on fresh Raspbian/Debian but can be changed. Never use "-m" for users with "nologin" shell, to prevent unnecessary skeleton file creation (.profile/.bashrc). Instead use "-M" and pre-create home dir manually in case used by program.
+ CHANGELOG | Node-RED: Resolved an issue where user creation fails due to missing "gpio" group
+ CHANGELOG | Fix wrong Node-RED data dir issue reference
+ DietPi-PREP | On Buster+ x86_64 images, enable secure boot compatibility
+ Drive source: Run dd after partition and file system minimise has been done on source drive, to avoid copying the whole drive size. This implies that in case of hard failure, the source drive might need to be rewritten. However the current behaviour makes my usual schedule impossible and we should trust our script and the used commands to not destroy source drive data.
+ Check for existing output .img file after name has been chosen and allow to backup in case.
+ GPT error leads to parted hang, waiting for user input, before it's corrected by gdisk, thus run non-interactively via "-s"
+ Add visual space between dev name and space in menus
+ Add additional user notifications about what we're doing
+ DietPi-Globals | G_AGP: Convert installed packages list into one-liner via awk ORS=' '
+ DietPi-Globals | G_AGP: Print initial command as well if no matching packages are installed, to avoid confusion due to "none currently installed" message
+ DietPi-Set_hardware | RPi: Fix deprecated or renamed dtoverlays/params: raspberrypi/firmware@d36bde3#diff-32265084aeae5fd34fbaf894f22fb20f
+ DietPi-Set_hardware | RPi: Disable Onboard WiFi and Bluetooth via dtoverlay
+ DietPi-Set_hardware | Add "dietpi-" prefix to WiFi and Bluetooth blacklist files to show they are from us
+ DietPi-Set_hardware | wifimodules: Merge WiFi powersaving settings into a single file with "dietpi-" prefix, to simplify and show it's from us
+ DietPi-Set_hardware | wifimodules: Offer to purge WiFi APT packages on disable
+ DietPi-Set_hardware | wifimodules: Enable modules first, install APT packages afterwards, to allow possible auto-configuration
+ DietPi-Set_hardware | wifimodules: Do not exit immediately when APT installs fail, instead set $EXIT_CODE=1 to have .network file updated and print script failure for user info
+ DietPi-Config | Adjust RPi onboard WiFi state detection based on dtoverlay=disable_wifi
+ DietPi-Config | Adjust Bluetooth state detection based on renamed blacklist file
+ DietPi-Config | Minor coding wording and visual
+ DietPi-Patch | WiFi+BT config file renaming, method changes and config.txt fixes due to changes in recent firmware
+ DietPi-Software | EmonHub: Fix renamed dtoverlay to disable Bluetooth on install. Disable via DietPi-Set_hardware on all onboard WiFi/BT devices, although research/test on RPi4 required to verify Bluetooth blocks ttyAMA0 there as well.
+ DietPi-Software | EmonHub: Disable serial console only on ttyAMA0, else primary UART device will be disabled as well, which is ttyAMA0 on non-WiFi RPi models. Instead assure on non-WiFi RPi models that this UART device is enabled.
+ RPi | config.txt: Minor wording
+ DietPi-PREP | Remove additional users, groups and dirs, found on current NanoPi NEO2 image with OMV remains: #2994 (comment)
+ DietPi-Globals | G_DIETPI-NOTIFY -2: When calculating output lines, include $G_PROGRAM_NAME prefix if set
+ DietPi-Globals | G_DISTRO_NAME: Add initial Debian Bullseye recognition. Needs to be defined in DietPi-Obtain_HW_model as well!
+ DietPi-Globals | G_ERROR_HANDLER: Do not pre-declare any $G_ERROR_HANDLER_* variables to reduce variable count in shell sessions. Check those via [[ ]] against non-default value being set.
+ DietPi-Globals | Minor coding and wording
+ DietPi-Software | Docker: Remove RPi workarounds for now. Raspbian Buster stable packages are live, although containerd seems to be not yet ARMv6 compatible. We'll re-add a pin to working version if this is not resolved until v6.26 release.
+ DietPi-Software | Docker: Error handle installer
+ DietPi-Patch | Docker: Remove obsolete RPi workaround, since a new version has been released
+ DietPi-Globals | G_AGF: Allow to change held packages here as well, to be failsafe
+ DietPi-Globals | G_AG_CHECK_INSTALL_PREREQ: If packages need to be installed, as well update APT lists, to avoid outdated packages failing to fetch or if APT lists were moved to RAM and list update is outstanding after reboot.
+ DietPi-Globals | G_AG_CHECK_INSTALL_PREREQ: Minor coding and wording
+ CHANGELOG | Resolved an issue where install of required APT packages for certain scripts could fail if APT lists are outdated
+ RPi | Add commented "enable_tvout=1" to default config.txt for user info, since by default SDTV is disabled on RPi4: https://www.raspberrypi.org/documentation/configuration/config-txt/video.md
+ DietPi-Config | APT cache: Add "(default)" suffix to the default value of each setting for user info. Fixes #3011
+ DietPi-Obtain_HW_model | Add Debian Bullseye detection as new G_DISTRO=6
+ DietPi-Software | Add initial Debian Bullseye support
+ DietPi-Software | Dropbear: On Bullseye, "dropbear-run" has become a transitional dummy package for "dropbear" which does not include "dropbear-initramfs" anymore
+ DietPi-PREP | Add support for Debian Bullseye
+ DietPi-Set_software | APT mirror: On Debian Bullseye, the security repo directory structure has changed: https://deb.debian.org/debian-security/dists/
+ DietPi-PREP | Further Bullseye system recognition
+ DietPi-Set_hardware | Bluetooth: Do not touch /etc/modprobe.d/dietpi-disable_bluetooth.conf in case if invalid $INPUT_DEVICE_VALUE
+ DietPi-Set_hardware | Bluetooth: On RPi remove runtime loaded "disable-bt" dtoverlay as well, in case disabled and enabled within the same session.
+ DietPi-FirstBoot | Set default temp limit for RPi4 to 75°C as well, since in our benchmarks it even runs hotter than RPi3...
+ DietPi-Software | RPi: On first run setup, convert enabled "serial0" console to its actual symlink target (ttyS0 or ttyAMA0, depending on RPi model)
+ DietPi-Software | We are not in a function, thus skip "local", but unset those variables afterwards, to be failsafe
+ DietPi-Set_hardware | serialconsole: Skip non-existent glob match
+ DietPi-Patch | On RPi4 raise temp_limit from 65°C tp 75°C as new default value: #3151
+ CHANGELOG | RPi4 | The default CPU temperature limit (temp_limit) has been raised from 65°C to 75°C
+ DietPi-Software | Kodi: On RPi, pre-create /etc/polkit-1/localauthority/50-local.d which is required by Kodi postinst script on RPi but not necessarily present due to missing policykit1 dependency: #3031 (comment)
+ DietPi-Pre-patch | On RPi, if Kodi is currently installed, pre-create /etc/polkit-1/localauthority/50-local.d to prevent Kodi upgrade failure: #3031 (comment)
+ DietPi-Patch | Pre-create /etc/polkit-1/localauthority/50-local.d before installing new RPi Kodi, to prevent postinst script failure: #3031 (comment)
+ RC up
+ DietPi-Globals | Default RC up
Beta v6.26.3
+ CHANGELOG | Set release date and add known issue with MATE desktop root login
+ CHANGELOG | Set release date and add known issue with MATE desktop root login
@MichaIng MichaIng added this to the v6.26 milestone Oct 15, 2019
@MichaIng MichaIng requested a review from Fourdee October 15, 2019 17:00
+ CHANGELOG | Set release PR link
+ CHANGELOG | Set release PR link
@Fourdee
Copy link
Collaborator

Fourdee commented Oct 17, 2019

@MichaIng

Legend, massive release, great work 👍

REF Twitter: https://twitter.com/DietPi_/status/1184880053487919106

@johnnyt83
Copy link

johnnyt83 commented Oct 20, 2019

@MichaIng: congratulations. Great work. Just updated and noticed wireguard did not like the update. Is it possible wg had a pickup and needs a rebuild?!

"dietpi@DietPi:~$ sudo dpkg-reconfigure wireguard-dkms
dpkg-query: package 'wireguard-dkms' is not installed and no information is available"

@MichaIng
Copy link
Owner Author

@johnnyt83
Strange that the rebuild does not work and the package seems to be not installed.

Please paste the following:

apt update
apt policy wireguard-dkms
apt install wireguard
  • After updating to v6.26 this package should actually be migrated to Raspbian Buster version (on RPi).

So now it is known that on RPi, by default after kernel upgrade, the WireGuard module needs to be rebuild. I added an /etc/kernel/postinst.d/dietpi-wireguard script to do that automatically, however forgot to add executable permissions, so it was skipped... just added it.
But if that fails, then the kernel upgrade itself fails on postinst script as well, which is not nice.

@johnnyt83
Copy link

seems to be picky:

dietpi@DietPi:$ sudo apt policy wireguard-dkms
N: Unable to locate package wireguard-dkms
dietpi@DietPi:
$ sudo apt install wireguard
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package wireguard

@MichaIng
Copy link
Owner Author

@johnnyt83
You ran apt update?
Can you paste cat /etc/apt/sources.list.d/dietpi-wireguard.list?

@johnnyt83
Copy link

yes, updated a moment ago and restarted. you got mail!

@MichaIng
Copy link
Owner Author

@johnnyt83
Okay fixed it. I remember you installed WireGuard on ARMv6 manually, since this was not possible via packages before. Now, after Debian+Raspbian Buster release, WireGuard packages were "promoted" into testing branches, are thus available for Raspbian as well, ready for ARMv6 RPis 😃.

Since your custom build did not contain correct DKMS triggers, it was not rebuild automatically on kernel upgrade, however the newest Raspbian packages have that included. Thus from now on, whenever your kernel packages are upgraded, WireGuard modules will be rebuild automatically.

I enabled WireGuard for ARMv6 with DietPi v6.26, thus installed it the regular way now. You stored the previous sources in /etc/wireguard/WireGuard AFAIK, which are now obsolete and can be removed.

@johnnyt83
Copy link

Thanks, Michael. I already forgot my wg-setup was not officially installed. Thanks for fixing it. Will report after the next major update. DietPi is my favorite Pi OS.

@DutchFlash DutchFlash mentioned this pull request Nov 13, 2019
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.

DietPi-Software | Kodi not working on Odroid c2
8 participants