From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE,MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 09D4EC43381 for ; Thu, 21 Feb 2019 23:29:51 +0000 (UTC) Received: from krantz.zx2c4.com (krantz.zx2c4.com [192.95.5.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 94BA0207E0 for ; Thu, 21 Feb 2019 23:29:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 94BA0207E0 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=pallas.us Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=wireguard-bounces@lists.zx2c4.com Received: from krantz.zx2c4.com (localhost [IPv6:::1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id b1612887; Thu, 21 Feb 2019 23:20:47 +0000 (UTC) Received: from krantz.zx2c4.com (localhost [127.0.0.1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 94488336 for ; Thu, 21 Feb 2019 23:20:43 +0000 (UTC) Received: from telperion.info (2600:3c01::f03c:91ff:fe96:a052 [IPv6:2600:3c01::f03c:91ff:fe96:a052]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id ae53f8d1 for ; Thu, 21 Feb 2019 23:20:43 +0000 (UTC) Received: from [10.16.57.126] (1piece.static.monkeybrains.net [::ffff:208.90.213.83]) (AUTH: LOGIN pallas, SSL: TLS1.2,128bits,ECDHE_RSA_AES_128_GCM_SHA256) by telperion.info with ESMTPSA; Thu, 21 Feb 2019 15:32:19 -0800 id 000000000004912D.000000005C6F3503.000019F3 Subject: Re: upgrading raspberry pi required me to re install wireguard To: wireguard@lists.zx2c4.com References: From: Derrick Lyndon Pallas Message-ID: <9e6f49da-bf09-ab90-dba7-ac5587863a31@pallas.us> Date: Thu, 21 Feb 2019 15:29:02 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-BeenThere: wireguard@lists.zx2c4.com X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0717463657181765331==" Errors-To: wireguard-bounces@lists.zx2c4.com Sender: "WireGuard" This is a multi-part message in MIME format. --===============0717463657181765331== Content-Type: multipart/alternative; boundary="------------5EB7EED026685A9450DC173A" Content-Language: en-US This is a multi-part message in MIME format. --------------5EB7EED026685A9450DC173A Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 > 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 --------------5EB7EED026685A9450DC173A Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

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 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
--------------5EB7EED026685A9450DC173A-- --===============0717463657181765331== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ WireGuard mailing list WireGuard@lists.zx2c4.com https://lists.zx2c4.com/mailman/listinfo/wireguard --===============0717463657181765331==--