wireguard.lists.zx2c4.com archive mirror
 help / color / mirror / Atom feed
* upgrading raspberry pi required me to re install wireguard
@ 2019-02-19 19:47 Arpit Gupta
  2019-02-21 12:28 ` logcabin
  0 siblings, 1 reply; 9+ messages in thread
From: Arpit Gupta @ 2019-02-19 19:47 UTC (permalink / raw)
  To: wireguard


[-- Attachment #1.1: Type: text/plain, Size: 1206 bytes --]

Hi All

I am running raspberry pi v3 and ran apt-get update and upgrade commands to
get upto date. It also ended up updating the kernel i think. I should have
paid more attention to what all was getting updated.

After the update wireguard was not running and upon debugging i found that
the wireguard kernel module was no longer present. So i uninstalled all
wireguard packages and installed them again and the module showed up and on
reboot system was back to normal. What i was curious was how should one go
about doing os/kernel updates in future in order to avoid this issue?

I am running
Linux raspberrypi 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 armv7l
GNU/Linux
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 9.8 (stretch)
Release: 9.8
Codename: stretch

ii  wireguard                       0.0.20190123-1               all
  fast, modern, secure kernel VPN tunnel (metapackage)
ii  wireguard-dkms                  0.0.20190123-1               all
  fast, modern, secure kernel VPN tunnel (DKMS version)
ii  wireguard-tools                 0.0.20190123-1               armhf
  fast, modern, secure kernel VPN tunnel (userland utilities)

--
Arpit

[-- Attachment #1.2: Type: text/html, Size: 1827 bytes --]

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: upgrading raspberry pi required me to re install wireguard
  2019-02-19 19:47 upgrading raspberry pi required me to re install wireguard Arpit Gupta
@ 2019-02-21 12:28 ` logcabin
  2019-02-21 13:10   ` sch0rsch
  2019-02-21 22:57   ` Arpit Gupta
  0 siblings, 2 replies; 9+ messages in thread
From: logcabin @ 2019-02-21 12:28 UTC (permalink / raw)
  To: wireguard


[-- Attachment #1.1: Type: text/plain, Size: 1626 bytes --]

Yes, the kernel did get updated, causing the wg module dependencies to get out of sync. A reboot after the update should solve this, otherwise you may need to run the package's preinst script to get the modules back in sync. Should be no need to reinstall the wg packages.

On Thu, Feb 21, 2019, at 2:14 AM, Arpit Gupta wrote:
> Hi All
> 
> I am running raspberry pi v3 and ran apt-get update and upgrade commands to get upto date. It also ended up updating the kernel i think. I should have paid more attention to what all was getting updated.
> 
> After the update wireguard was not running and upon debugging i found that the wireguard kernel module was no longer present. So i uninstalled all wireguard packages and installed them again and the module showed up and on reboot system was back to normal. What i was curious was how should one go about doing os/kernel updates in future in order to avoid this issue?
> 
> I am running
> Linux raspberrypi 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 armv7l GNU/Linux
> No LSB modules are available.
> Distributor ID: Raspbian
> Description: Raspbian GNU/Linux 9.8 (stretch)
> Release: 9.8
> Codename: stretch
> 
> ii wireguard 0.0.20190123-1 all fast, modern, secure kernel VPN tunnel (metapackage)
> ii wireguard-dkms 0.0.20190123-1 all fast, modern, secure kernel VPN tunnel (DKMS version)
> ii wireguard-tools 0.0.20190123-1 armhf fast, modern, secure kernel VPN tunnel (userland utilities)
> 
> --
> Arpit
> _______________________________________________
> WireGuard mailing list
> WireGuard@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard
> 

[-- Attachment #1.2: Type: text/html, Size: 3170 bytes --]

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: upgrading raspberry pi required me to re install wireguard
  2019-02-21 12:28 ` logcabin
@ 2019-02-21 13:10   ` sch0rsch
  2019-02-21 22:57   ` Arpit Gupta
  1 sibling, 0 replies; 9+ messages in thread
From: sch0rsch @ 2019-02-21 13:10 UTC (permalink / raw)
  To: wireguard

In case of WireGuard DPKG package being installed, just run: 
dpkg-reconfigure wireguard-dkms

This will rebuild the module for the current and latest installed 
kernel+headers.

In some cases, kernel package updates even automatically trigger the 
rebuild, e.g. on Debian x86 with linux-image-amd64/linux-headers-amd64, 
AFAIK. But this is up to the package maintainers and depend on the 
OS/package system.

Best regards

Am 21.02.2019 um 13:28 schrieb logcabin@fastmail.net:
> Yes, the kernel did get updated, causing the wg module dependencies to 
> get out of sync. A reboot after the update should solve this, otherwise 
> you may need to run the package's preinst script to get the modules back 
> in sync. Should be no need to reinstall the wg packages.
> 
> On Thu, Feb 21, 2019, at 2:14 AM, Arpit Gupta wrote:
>> Hi All
>>
>> I am running raspberry pi v3 and ran apt-get update and upgrade 
>> commands to get upto date. It also ended up updating the kernel i 
>> think. I should have paid more attention to what all was getting updated.
>>
>> After the update wireguard was not running and upon debugging i found 
>> that the wireguard kernel module was no longer present. So i 
>> uninstalled all wireguard packages and installed them again and the 
>> module showed up and on reboot system was back to normal. What i was 
>> curious was how should one go about doing os/kernel updates in future 
>> in order to avoid this issue?
>>
>> I am running
>> Linux raspberrypi 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 
>> armv7l GNU/Linux
>> No LSB modules are available.
>> Distributor ID:Raspbian
>> Description:Raspbian GNU/Linux 9.8 (stretch)
>> Release:9.8
>> Codename:stretch
>>
>> ii  wireguard                       0.0.20190123-1               all  
>>         fast, modern, secure kernel VPN tunnel (metapackage)
>> ii  wireguard-dkms                  0.0.20190123-1               all  
>>         fast, modern, secure kernel VPN tunnel (DKMS version)
>> ii  wireguard-tools                 0.0.20190123-1              
>>  armhf        fast, modern, secure kernel VPN tunnel (userland utilities)
>>
>> --
>> Arpit
>> _______________________________________________
>> WireGuard mailing list
>> WireGuard@lists.zx2c4.com
>> https://lists.zx2c4.com/mailman/listinfo/wireguard
>>
> 
> 
> _______________________________________________
> WireGuard mailing list
> WireGuard@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard
> 
_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: upgrading raspberry pi required me to re install wireguard
  2019-02-21 12:28 ` logcabin
  2019-02-21 13:10   ` sch0rsch
@ 2019-02-21 22:57   ` Arpit Gupta
  2019-02-21 23:29     ` Derrick Lyndon Pallas
  1 sibling, 1 reply; 9+ messages in thread
From: Arpit Gupta @ 2019-02-21 22:57 UTC (permalink / raw)
  To: logcabin; +Cc: wireguard


[-- Attachment #1.1: Type: text/plain, Size: 2353 bytes --]

Ya reboot did not solve this for me. I will read up on how I can execute
package pre/post install scripts.

Curious to know if the rebuild the module is the responsibility of the os
or the package after a kernel upgrade?

I will try to remember this next time there is a kernel upgrade 😁.


--
Arpit

On Thu, Feb 21, 2019, 4:30 AM <logcabin@fastmail.net> wrote:

> Yes, the kernel did get updated, causing the wg module dependencies to get
> out of sync. A reboot after the update should solve this, otherwise you may
> need to run the package's preinst script to get the modules back in sync.
> Should be no need to reinstall the wg packages.
>
> On Thu, Feb 21, 2019, at 2:14 AM, Arpit Gupta wrote:
>
> Hi All
>
> I am running raspberry pi v3 and ran apt-get update and upgrade commands
> to get upto date. It also ended up updating the kernel i think. I should
> have paid more attention to what all was getting updated.
>
> After the update wireguard was not running and upon debugging i found that
> the wireguard kernel module was no longer present. So i uninstalled all
> wireguard packages and installed them again and the module showed up and on
> reboot system was back to normal. What i was curious was how should one go
> about doing os/kernel updates in future in order to avoid this issue?
>
> I am running
> Linux raspberrypi 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019
> armv7l GNU/Linux
> No LSB modules are available.
> Distributor ID: Raspbian
> Description: Raspbian GNU/Linux 9.8 (stretch)
> Release: 9.8
> Codename: stretch
>
> ii  wireguard                       0.0.20190123-1               all
>     fast, modern, secure kernel VPN tunnel (metapackage)
> ii  wireguard-dkms                  0.0.20190123-1               all
>     fast, modern, secure kernel VPN tunnel (DKMS version)
> ii  wireguard-tools                 0.0.20190123-1               armhf
>     fast, modern, secure kernel VPN tunnel (userland utilities)
>
> --
> Arpit
> _______________________________________________
> WireGuard mailing list
> WireGuard@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard
>
>
> _______________________________________________
> WireGuard mailing list
> WireGuard@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard
>

[-- Attachment #1.2: Type: text/html, Size: 4150 bytes --]

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: upgrading raspberry pi required me to re install wireguard
  2019-02-21 22:57   ` Arpit Gupta
@ 2019-02-21 23:29     ` Derrick Lyndon Pallas
  2019-02-22  0:23       ` logcabin
  2019-02-22 12:35       ` Emanuele Bernardi
  0 siblings, 2 replies; 9+ messages in thread
From: Derrick Lyndon Pallas @ 2019-02-21 23:29 UTC (permalink / raw)
  To: wireguard


[-- Attachment #1.1: Type: text/plain, Size: 2970 bytes --]

I just use DKMS to do it. Check out WireGuard to /usr/src, ln -s 
WireGuard/src WireGuard-0, dkms add WireGuard/0. If it's not auto 
building, have you tried dkms install WireGuard/0? ~D


On 2/21/19 2:57 PM, Arpit Gupta wrote:
> Ya reboot did not solve this for me. I will read up on how I can 
> execute package pre/post install scripts.
>
> Curious to know if the rebuild the module is the responsibility of the 
> os or the package after a kernel upgrade?
>
> I will try to remember this next time there is a kernel upgrade 😁.
>
>
> --
> Arpit
>
> On Thu, Feb 21, 2019, 4:30 AM <logcabin@fastmail.net 
> <mailto:logcabin@fastmail.net>> wrote:
>
>     Yes, the kernel did get updated, causing the wg module
>     dependencies to get out of sync. A reboot after the update should
>     solve this, otherwise you may need to run the package's preinst
>     script to get the modules back in sync. Should be no need to
>     reinstall the wg packages.
>
>     On Thu, Feb 21, 2019, at 2:14 AM, Arpit Gupta wrote:
>>     Hi All
>>
>>     I am running raspberry pi v3 and ran apt-get update and upgrade
>>     commands to get upto date. It also ended up updating the kernel i
>>     think. I should have paid more attention to what all was getting
>>     updated.
>>
>>     After the update wireguard was not running and upon debugging i
>>     found that the wireguard kernel module was no longer present. So
>>     i uninstalled all wireguard packages and installed them again and
>>     the module showed up and on reboot system was back to normal.
>>     What i was curious was how should one go about doing os/kernel
>>     updates in future in order to avoid this issue?
>>
>>     I am running
>>     Linux raspberrypi 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT
>>     2019 armv7l GNU/Linux
>>     No LSB modules are available.
>>     Distributor ID:Raspbian
>>     Description:Raspbian GNU/Linux 9.8 (stretch)
>>     Release:9.8
>>     Codename:stretch
>>
>>     ii  wireguard  0.0.20190123-1               all fast, modern,
>>     secure kernel VPN tunnel (metapackage)
>>     ii  wireguard-dkms 0.0.20190123-1               all fast, modern,
>>     secure kernel VPN tunnel (DKMS version)
>>     ii  wireguard-tools  0.0.20190123-1               armhf fast,
>>     modern, secure kernel VPN tunnel (userland utilities)
>>
>>     --
>>     Arpit
>>     _______________________________________________
>>     WireGuard mailing list
>>     WireGuard@lists.zx2c4.com <mailto:WireGuard@lists.zx2c4.com>
>>     https://lists.zx2c4.com/mailman/listinfo/wireguard
>>
>
>     _______________________________________________
>     WireGuard mailing list
>     WireGuard@lists.zx2c4.com <mailto:WireGuard@lists.zx2c4.com>
>     https://lists.zx2c4.com/mailman/listinfo/wireguard
>
>
> _______________________________________________
> WireGuard mailing list
> WireGuard@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard

[-- Attachment #1.2: Type: text/html, Size: 8238 bytes --]

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: upgrading raspberry pi required me to re install wireguard
  2019-02-21 23:29     ` Derrick Lyndon Pallas
@ 2019-02-22  0:23       ` logcabin
  2019-02-22  0:27         ` Arpit Gupta
  2019-02-22 12:35       ` Emanuele Bernardi
  1 sibling, 1 reply; 9+ messages in thread
From: logcabin @ 2019-02-22  0:23 UTC (permalink / raw)
  To: wireguard


[-- Attachment #1.1: Type: text/plain, Size: 3586 bytes --]

If you want to build/install wg from source, you can do what I do (automation is easy):

Download the source xz file and unpack it using xzcat and tar. Navigate to the src directory and build the module and tools using the "make" command. Then use "sudo make install" to get the wg .ko file replaced with the latest one and install any updates to the tools and wg executable. If you do this after a kernel upgrade, you'll need to reboot the pi before you install the wg kernel module, otherwise it won't find the right kernel headers. 

A simple shell script can be made to do all this stuff for you. 

On Thu, Feb 21, 2019, at 6:30 PM, Derrick Lyndon Pallas wrote:
> I just use DKMS to do it. Check out WireGuard to /usr/src, ln -s WireGuard/src WireGuard-0, dkms add WireGuard/0. If it's not auto building, have you tried dkms install WireGuard/0? ~D


> 


> On 2/21/19 2:57 PM, Arpit Gupta wrote:
>> Ya reboot did not solve this for me. I will read up on how I can execute package pre/post install scripts. 
>> 
>> Curious to know if the rebuild the module is the responsibility of the os or the package after a kernel upgrade?
>> 
>> I will try to remember this next time there is a kernel upgrade 😁.
>>  
>>  
>> 
>> --
>>  Arpit
>> 
>> On Thu, Feb 21, 2019, 4:30 AM <logcabin@fastmail.net> wrote:
>>> Yes, the kernel did get updated, causing the wg module dependencies to get out of sync. A reboot after the update should solve this, otherwise you may need to run the package's preinst script to get the modules back in sync. Should be no need to reinstall the wg packages.
>>> 
>>> On Thu, Feb 21, 2019, at 2:14 AM, Arpit Gupta wrote:
>>>> Hi All
>>>> 
>>>> I am running raspberry pi v3 and ran apt-get update and upgrade commands to get upto date. It also ended up updating the kernel i think. I should have paid more attention to what all was getting updated.
>>>> 
>>>> After the update wireguard was not running and upon debugging i found that the wireguard kernel module was no longer present. So i uninstalled all wireguard packages and installed them again and the module showed up and on reboot system was back to normal. What i was curious was how should one go about doing os/kernel updates in future in order to avoid this issue?
>>>> 
>>>> I am running
>>>> Linux raspberrypi 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 armv7l GNU/Linux
>>>> No LSB modules are available.
>>>> Distributor ID: Raspbian
>>>> Description: Raspbian GNU/Linux 9.8 (stretch)
>>>> Release: 9.8
>>>> Codename: stretch
>>>> 
>>>> ii wireguard 0.0.20190123-1 all fast, modern, secure kernel VPN tunnel (metapackage)
>>>> ii wireguard-dkms 0.0.20190123-1 all fast, modern, secure kernel VPN tunnel (DKMS version)
>>>> ii wireguard-tools 0.0.20190123-1 armhf fast, modern, secure kernel VPN tunnel (userland utilities)
>>>> 
>>>> --
>>>> Arpit
>>>> _______________________________________________
>>>> WireGuard mailing list
>>>> WireGuard@lists.zx2c4.com
>>>> https://lists.zx2c4.com/mailman/listinfo/wireguard
>>>> 
>>> 
>>> _______________________________________________
>>>  WireGuard mailing list
>>>  WireGuard@lists.zx2c4.com
>>>  https://lists.zx2c4.com/mailman/listinfo/wireguard
>> 
>> _______________________________________________
WireGuard mailing list
>> WireGuard@lists.zx2c4.com
>> https://lists.zx2c4.com/mailman/listinfo/wireguard
>> 
> _______________________________________________
> WireGuard mailing list
> WireGuard@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard
> 

[-- Attachment #1.2: Type: text/html, Size: 8051 bytes --]

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: upgrading raspberry pi required me to re install wireguard
  2019-02-22  0:23       ` logcabin
@ 2019-02-22  0:27         ` Arpit Gupta
  0 siblings, 0 replies; 9+ messages in thread
From: Arpit Gupta @ 2019-02-22  0:27 UTC (permalink / raw)
  To: logcabin; +Cc: wireguard


[-- Attachment #1.1: Type: text/plain, Size: 4207 bytes --]

Not looking to build manually at this time. Since there are packages
available in raspberry pi repos I use them.

I was just curious as to what the expected behavior is when kernel gets
upgraded when there is an existing wireguard installation and if it's
something that the package scripts should address.
--
Arpit

On Thu, Feb 21, 2019, 4:24 PM <logcabin@fastmail.net> wrote:

> If you want to build/install wg from source, you can do what I do
> (automation is easy):
>
> Download the source xz file and unpack it using xzcat and tar.  Navigate
> to the src directory and build the module and tools using the "make"
> command. Then use "sudo make install" to get the wg .ko file replaced with
> the latest one and install any updates to the tools and wg executable. If
> you do this after a kernel upgrade, you'll need to reboot the pi before you
> install the wg kernel module, otherwise it won't find the right kernel
> headers.
>
> A simple shell script can be made to do all this stuff for you.
>
> On Thu, Feb 21, 2019, at 6:30 PM, Derrick Lyndon Pallas wrote:
>
> I just use DKMS to do it. Check out WireGuard to /usr/src, ln -s
> WireGuard/src WireGuard-0, dkms add WireGuard/0. If it's not auto building,
> have you tried dkms install WireGuard/0? ~D
>
>
> On 2/21/19 2:57 PM, Arpit Gupta wrote:
>
> Ya reboot did not solve this for me. I will read up on how I can execute
> package pre/post install scripts.
>
> Curious to know if the rebuild the module is the responsibility of the os
> or the package after a kernel upgrade?
>
> I will try to remember this next time there is a kernel upgrade 😁.
>
>
>
> --
> Arpit
>
> On Thu, Feb 21, 2019, 4:30 AM <logcabin@fastmail.net> wrote:
>
> Yes, the kernel did get updated, causing the wg module dependencies to get
> out of sync. A reboot after the update should solve this, otherwise you may
> need to run the package's preinst script to get the modules back in sync.
> Should be no need to reinstall the wg packages.
>
> On Thu, Feb 21, 2019, at 2:14 AM, Arpit Gupta wrote:
>
> Hi All
>
> I am running raspberry pi v3 and ran apt-get update and upgrade commands
> to get upto date. It also ended up updating the kernel i think. I should
> have paid more attention to what all was getting updated.
>
> After the update wireguard was not running and upon debugging i found that
> the wireguard kernel module was no longer present. So i uninstalled all
> wireguard packages and installed them again and the module showed up and on
> reboot system was back to normal. What i was curious was how should one go
> about doing os/kernel updates in future in order to avoid this issue?
>
> I am running
> Linux raspberrypi 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019
> armv7l GNU/Linux
> No LSB modules are available.
> Distributor ID: Raspbian
> Description: Raspbian GNU/Linux 9.8 (stretch)
> Release: 9.8
> Codename: stretch
>
> ii  wireguard                       0.0.20190123-1               all
>     fast, modern, secure kernel VPN tunnel (metapackage)
> ii  wireguard-dkms                  0.0.20190123-1               all
>     fast, modern, secure kernel VPN tunnel (DKMS version)
> ii  wireguard-tools                 0.0.20190123-1               armhf
>     fast, modern, secure kernel VPN tunnel (userland utilities)
>
> --
> Arpit
> _______________________________________________
> WireGuard mailing list
> WireGuard@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard
>
>
> _______________________________________________
> WireGuard mailing list
> WireGuard@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard
>
>
> _______________________________________________
> WireGuard mailing listWireGuard@lists.zx2c4.comhttps://lists.zx2c4.com/mailman/listinfo/wireguard
>
> _______________________________________________
> WireGuard mailing list
> WireGuard@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard
>
>
> _______________________________________________
> WireGuard mailing list
> WireGuard@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard
>

[-- Attachment #1.2: Type: text/html, Size: 9216 bytes --]

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: upgrading raspberry pi required me to re install wireguard
  2019-02-21 23:29     ` Derrick Lyndon Pallas
  2019-02-22  0:23       ` logcabin
@ 2019-02-22 12:35       ` Emanuele Bernardi
  2019-02-22 23:04         ` Mike O'Connor
  1 sibling, 1 reply; 9+ messages in thread
From: Emanuele Bernardi @ 2019-02-22 12:35 UTC (permalink / raw)
  To: wireguard


[-- Attachment #1.1: Type: text/plain, Size: 3488 bytes --]

I'm very interesting about make it work with dkms, could you please
explain the process? thanks
Emanuele

On 22/02/19 00:29, Derrick Lyndon Pallas wrote:
>
> I just use DKMS to do it. Check out WireGuard to /usr/src, ln -s
> WireGuard/src WireGuard-0, dkms add WireGuard/0. If it's not auto
> building, have you tried dkms install WireGuard/0? ~D
>
>
> On 2/21/19 2:57 PM, Arpit Gupta wrote:
>> Ya reboot did not solve this for me. I will read up on how I can
>> execute package pre/post install scripts.
>>
>> Curious to know if the rebuild the module is the responsibility of
>> the os or the package after a kernel upgrade?
>>
>> I will try to remember this next time there is a kernel upgrade 😁.
>>
>>
>> --
>> Arpit
>>
>> On Thu, Feb 21, 2019, 4:30 AM <logcabin@fastmail.net
>> <mailto:logcabin@fastmail.net>> wrote:
>>
>>     Yes, the kernel did get updated, causing the wg module
>>     dependencies to get out of sync. A reboot after the update should
>>     solve this, otherwise you may need to run the package's preinst
>>     script to get the modules back in sync. Should be no need to
>>     reinstall the wg packages.
>>
>>     On Thu, Feb 21, 2019, at 2:14 AM, Arpit Gupta wrote:
>>>     Hi All
>>>
>>>     I am running raspberry pi v3 and ran apt-get update and upgrade
>>>     commands to get upto date. It also ended up updating the kernel
>>>     i think. I should have paid more attention to what all was
>>>     getting updated.
>>>
>>>     After the update wireguard was not running and upon debugging i
>>>     found that the wireguard kernel module was no longer present. So
>>>     i uninstalled all wireguard packages and installed them again
>>>     and the module showed up and on reboot system was back to
>>>     normal. What i was curious was how should one go about doing
>>>     os/kernel updates in future in order to avoid this issue?
>>>
>>>     I am running
>>>     Linux raspberrypi 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT
>>>     2019 armv7l GNU/Linux
>>>     No LSB modules are available.
>>>     Distributor ID:Raspbian
>>>     Description:Raspbian GNU/Linux 9.8 (stretch)
>>>     Release:9.8
>>>     Codename:stretch
>>>
>>>     ii  wireguard                       0.0.20190123-1             
>>>      all          fast, modern, secure kernel VPN tunnel (metapackage)
>>>     ii  wireguard-dkms                  0.0.20190123-1             
>>>      all          fast, modern, secure kernel VPN tunnel (DKMS version)
>>>     ii  wireguard-tools                 0.0.20190123-1             
>>>      armhf        fast, modern, secure kernel VPN tunnel (userland
>>>     utilities)
>>>
>>>     --
>>>     Arpit
>>>     _______________________________________________
>>>     WireGuard mailing list
>>>     WireGuard@lists.zx2c4.com <mailto:WireGuard@lists.zx2c4.com>
>>>     https://lists.zx2c4.com/mailman/listinfo/wireguard
>>>
>>
>>     _______________________________________________
>>     WireGuard mailing list
>>     WireGuard@lists.zx2c4.com <mailto:WireGuard@lists.zx2c4.com>
>>     https://lists.zx2c4.com/mailman/listinfo/wireguard
>>
>>
>> _______________________________________________
>> WireGuard mailing list
>> WireGuard@lists.zx2c4.com
>> https://lists.zx2c4.com/mailman/listinfo/wireguard
>
> _______________________________________________
> WireGuard mailing list
> WireGuard@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard


[-- Attachment #1.2: Type: text/html, Size: 9599 bytes --]

[-- Attachment #2: Type: text/plain, Size: 148 bytes --]

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: upgrading raspberry pi required me to re install wireguard
  2019-02-22 12:35       ` Emanuele Bernardi
@ 2019-02-22 23:04         ` Mike O'Connor
  0 siblings, 0 replies; 9+ messages in thread
From: Mike O'Connor @ 2019-02-22 23:04 UTC (permalink / raw)
  To: Emanuele Bernardi, wireguard

On 22/2/19 11:05 pm, Emanuele Bernardi wrote:
> I'm very interesting about make it work with dkms, could you please
> explain the process? thanks
> Emanuele
>
> On 22/02/19 00:29, Derrick Lyndon Pallas wrote:
>>
>> I just use DKMS to do it. Check out WireGuard to /usr/src, ln -s
>> WireGuard/src WireGuard-0, dkms add WireGuard/0. If it's not auto
>> building, have you tried dkms install WireGuard/0? ~D
>>
The Wireguard source on github has a file in the src directory called
dkms.conf, this when configured using dkms cli tool will automatically
build a new Wireguard kernel module each time the package management
installs a new kernel.

https://help.ubuntu.com/community/DKMS


Cheers

Mike

_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-03-01 10:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-19 19:47 upgrading raspberry pi required me to re install wireguard Arpit Gupta
2019-02-21 12:28 ` logcabin
2019-02-21 13:10   ` sch0rsch
2019-02-21 22:57   ` Arpit Gupta
2019-02-21 23:29     ` Derrick Lyndon Pallas
2019-02-22  0:23       ` logcabin
2019-02-22  0:27         ` Arpit Gupta
2019-02-22 12:35       ` Emanuele Bernardi
2019-02-22 23:04         ` Mike O'Connor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).