Github messages for voidlinux
 help / color / mirror / Atom feed
From: LaszloGombos <LaszloGombos@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] dracut: patch dracut-network
Date: Wed, 18 Jan 2023 19:48:25 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41720@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 451 bytes --]

There is a new pull request by LaszloGombos against master on the void-packages repository

https://github.com/LaszloGombos/void-packages network
https://github.com/void-linux/void-packages/pull/41720

dracut: patch dracut-network
only network-legacy is supported by dracut-network

#### Testing the changes
- I tested the changes in this PR: **briefly**


A patch file from https://github.com/void-linux/void-packages/pull/41720.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-network-41720.patch --]
[-- Type: text/x-diff, Size: 1669 bytes --]

From c845320db9736a14055ca51ad85a757c4ec499ea Mon Sep 17 00:00:00 2001
From: Laszlo Gombos <laszlo.gombos@gmail.com>
Date: Wed, 18 Jan 2023 18:46:21 +0000
Subject: [PATCH] dracut: patch dracut-network

only network-legacy is supported by dracut-network
---
 srcpkgs/dracut/patches/network.patch | 29 ++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 srcpkgs/dracut/patches/network.patch

diff --git a/srcpkgs/dracut/patches/network.patch b/srcpkgs/dracut/patches/network.patch
new file mode 100644
index 000000000000..3d5db25cb0ae
--- /dev/null
+++ b/srcpkgs/dracut/patches/network.patch
@@ -0,0 +1,29 @@
+From 5443396f3cb591f2589888b25e07f21f03989057 Mon Sep 17 00:00:00 2001
+From: Laszlo Gombos <laszlo.gombos@gmail.com>
+Date: Sat, 24 Dec 2022 01:48:04 +0000
+Subject: [PATCH] When no systemd then only network-legacy is supported
+
+Bug: https://github.com/dracutdevs/dracut/issues/1756
+---
+ modules.d/40network/module-setup.sh | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/modules.d/40network/module-setup.sh b/modules.d/40network/module-setup.sh
+index 1ab13ef..da49947 100755
+--- a/modules.d/40network/module-setup.sh
++++ b/modules.d/40network/module-setup.sh
+@@ -16,6 +16,11 @@ depends() {
+         fi
+     done
+ 
++    # When systemd is not available only network-legacy is supported
++    if [ -z "$network_handler" ] && ! find_binary systemctl > /dev/null; then
++        network_handler="network-legacy"
++    fi
++
+     if [ -z "$network_handler" ]; then
+         if [[ -e $dracutsysrootdir$systemdsystemunitdir/wicked.service ]]; then
+             network_handler="network-wicked"
+-- 
+2.34.1
+

             reply	other threads:[~2023-01-18 18:48 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-18 18:48 LaszloGombos [this message]
2023-01-18 19:01 ` ahesford
2023-01-18 19:44 ` LaszloGombos
2023-01-18 19:44 ` LaszloGombos
2023-01-18 19:47 ` LaszloGombos
2023-01-18 20:07 ` [PR PATCH] [Updated] " LaszloGombos
2023-01-18 20:15 ` LaszloGombos
2023-01-18 20:28 ` LaszloGombos
2023-01-18 20:32 ` [PR PATCH] [Updated] " LaszloGombos
2023-01-18 20:32 ` LaszloGombos
2023-01-18 20:51 ` [PR PATCH] [Updated] " LaszloGombos
2023-01-18 21:07 ` LaszloGombos
2023-01-18 23:37 ` classabbyamp
2023-01-18 23:37 ` [PR PATCH] [Merged]: " classabbyamp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41720@inbox.vuxu.org \
    --to=laszlogombos@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).