Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 87FE7782DED for <~alpine/users@lists.alpinelinux.org>; Mon, 24 Feb 2020 17:14:11 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id e8so11314163wrm.5 for <~alpine/users@lists.alpinelinux.org>; Mon, 24 Feb 2020 09:14:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=parhamer-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:mime-version :content-transfer-encoding; bh=xdU3HOiWyms/KSCHU3ZF6ZFyyILso+K+7Nwo40QtF98=; b=mFiHsp18Gp5HCKo18FGq0YLCg2Xx9YWLO8tb1XwdzDsgGzJlN30xDMGCZw5qav/Dcn pFN87zNruGA24whBBQpjhBJd10zjiySFdlz/snKq7rL8b+u512O1H+pDWa/7X+fP80Sa rRHnSIcr7+T127xBA0c/aOnR0yqxHD5I5mtuIEU38uO6B7WHnzN5AS/rr7FzWds7+sxx TCkFdnW6wvkhot9Cy1gnRI8YOI+SjFLa17DxwjMh7ZBsILluC6R/E+L3n9asAZF+iwcR PP/go45GKwaFYpFW/yHCQsNeEeA4Ic+tGRM07wr4uuYbWcNTF08b45eS9EubMJ1TZXZj r8tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=xdU3HOiWyms/KSCHU3ZF6ZFyyILso+K+7Nwo40QtF98=; b=dEpr2dI/b+oFzJFjI3fb3XOsB8+BWJ9h8Z+r8bguxfuTPfor+cTWmzHVSh9FcGkUew ODs5/oQnH2MqpxMZNcwa6fi+PLPm79LvZwMBAWKRpDUQz4VlCG2Qdff1QGF9fISUiE78 oCP7OIuWObpAyXHdT3nlXVEPmGD7ixq5rg6UGz8Ll3yF4CjrharPFVNDjk6W6EtDI2oV 2g0jUF5glw2LyK30IL3hDULlsRNbMW1ZZJSnPPE0fdCvUcoMoOR4/Wx4v7AlM9xlfHfn g9P+BS4Bikjlfibrskdlgv8K2P2gKPduYc1hQpNG7T41h+6QEfAGw9osEiL2RFSXsdFC hnLg== X-Gm-Message-State: APjAAAUZ6OoMb0shBhDZMi4G256Ujb9KsHykQH2ouON3s9oN/b5lvl+0 5s9mZBEy1jrJqnWqpRUpDpVPTw== X-Google-Smtp-Source: APXvYqx2f3NKe86qPi14fqtCrKTR0t/1Jkt9mBhsCSZk9uke9cOAU1cGOPN50agxeOAOr5QfEiNPiQ== X-Received: by 2002:adf:fac7:: with SMTP id a7mr39999640wrs.299.1582564450348; Mon, 24 Feb 2020 09:14:10 -0800 (PST) Received: from keys.haschek.at ([91.112.19.98]) by smtp.gmail.com with ESMTPSA id e8sm12964643wrr.69.2020.02.24.09.14.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Feb 2020 09:14:09 -0800 (PST) Message-ID: Subject: Re: Installing package with kernel module fails on diskless mode? (wireguard-rpi) From: Christian Haschek To: Davy Landman , ~alpine/users@lists.alpinelinux.org Date: Mon, 24 Feb 2020 18:14:08 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit I'm having the same problems and I have tested so far with - PXE Booted Alpine (using https://blog.haschek.at/2019/build-your-own-datacenter-with-pxe-and-alpine.html ) - RasPi 3 and 4 (using https://wiki.alpinelinux.org/wiki/Raspberry_Pi#Installation) - USB booted (using https://wiki.alpinelinux.org/wiki/Create_a_Bootable_USB) - Full disk install on a Server Only the last method allowed me to install the wireguard packages. I went to the IRC a few days ago and someone said they're preparing a method that will allow diskless setups to install these modules but I didn't get a hold of the guy in charge. Does anyone have any updates on this matter? Am Montag, den 10.02.2020, 10:44 +0100 schrieb Davy Landman: > I'm loving alpine, but I'm running into a problem that I do not know > how to solve, and no amount of googling has helped me. > > I'm on v3.11.3 on a rpi1, just downloaded the release and unpacked it > onto a fresh fat32 sd card. It boots-up and stuff just works. Regular > package installation works, but when I wanted to add wireguard, it > fails and I think I understand what is happening, but I cannot seem > to figure out to solve it. > > Here is the full log: > > (1/1) Installing wireguard-rpi (5.4.12-r0) > ERROR: Failed to create lib/modules/5.4.12-0-rpi/extra/wireguard.ko: > No such file or directory > ERROR: wireguard-rpi-5.4.12-r0: failed to rename lib/modules/5.4.12- > 0-rpi/extra/.apk.6b9f5d1b725356e84556fbab4f1ce19495578693bf92d01e to > lib/modules/5.4.12-0-rpi/extra/wireguard.ko. > Executing busybox-1.31.1-r9.trigger > Executing kmod-26-r0.trigger > depmod: ERROR: openat(/lib/modules/5.4.12-0-rpi, > modules.dep.2636.32472.1581276993, 301, 644): Read-only file system > depmod: ERROR: openat(/lib/modules/5.4.12-0-rpi, > modules.dep.bin.2636.32472.1581276993, 301, 644): Read-only file > system > depmod: ERROR: openat(/lib/modules/5.4.12-0-rpi, > modules.alias.2636.32472.1581276993, 301, 644): Read-only file system > depmod: ERROR: openat(/lib/modules/5.4.12-0-rpi, > modules.alias.bin.2636.32472.1581276993, 301, 644): Read-only file > system > depmod: ERROR: openat(/lib/modules/5.4.12-0-rpi, > modules.softdep.2636.32472.1581276993, 301, 644): Read-only file > system > depmod: ERROR: openat(/lib/modules/5.4.12-0-rpi, > modules.symbols.2636.32472.1581276993, 301, 644): Read-only file > system > depmod: ERROR: openat(/lib/modules/5.4.12-0-rpi, > modules.symbols.bin.2636.32472.1581276993, 301, 644): Read-only file > system > depmod: ERROR: openat(/lib/modules/5.4.12-0-rpi, > modules.builtin.bin.2636.32472.1581276993, 301, 644): Read-only file > system > depmod: ERROR: openat(/lib/modules/5.4.12-0-rpi, > modules.devname.2636.32472.1581276993, 301, 644): Read-only file > system > 1 error; 135 MiB in 57 packages > > > if I understand correctly, it wants to add a kernel module but fails > since the kernel is on a read-only side of the system. I've tried > remounting the whole disk as rw, but that didn't solve it. > > I'm hoping someone can help me or maybe there is a wiki page I > missed, but it looks like this should work, is the plain alpine-rpi > install and the plain precompiled wireguard-rpi package. > > Thanks, > Davy