-
-
Notifications
You must be signed in to change notification settings - Fork 506
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ Reboot required. EG: in case of Odroid headers do not match active kernel, thus fails to active module. https://github.com/Fourdee/DietPi/issues/2052#issuecomment-453690247
- Loading branch information
Daniel Knight
committed
Jan 12, 2019
1 parent
ddb317f
commit 5ecea64
Showing
1 changed file
with
15 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5ecea64
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Fourdee
modprobe wireguard
fails without reboot, if new kernel was installed, since it was build for the new (not yet active) kernel. But if we allowmodrpobe
to fail, the standard reboot afterdietpi-software
will solve it. WireGuard APT install activates the module automatically (after reboot).Instead of
--reinstall
,dpkg-reconfigure wireguard
should be used to rebuild the kernel package.We could handle all of this via:
This is only required, if on RPi and/or Odroid the module rebuild is not triggered automatically on kernel package upgrade. Otherwise everything will be done automatically by the APT packages.
5ecea64
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MichaIng
Yep, my concern is alot of our users use the
dietpi-software install
method. Won't work until after a reboot.However, we could add aG_WHIP_MSG
if modprobe failed, mentioning this ifdietpi-software install
was used.Although I like the
G_RUN_CMD modprobe
, which will fail and notify user if module install went wrong.Ideally we need a
REBOOT_REQUIRED
flag indietpi-software
, however, with so much software to go through and possible combinations, might be an impossible task to get it 100% right.