From patchwork Wed Aug 21 18:45:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adolf Belka X-Patchwork-Id: 8042 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) client-signature RSA-PSS (4096 bits)) (Client CN "mail01.haj.ipfire.org", Issuer "R11" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4WpwJG71Xpz3x41 for ; Wed, 21 Aug 2024 18:45:34 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature ECDSA (secp384r1)) (Client CN "mail02.haj.ipfire.org", Issuer "E5" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4WpwJ83hDnz68C; Wed, 21 Aug 2024 18:45:28 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4WpwJ839j4z3456; Wed, 21 Aug 2024 18:45:28 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) client-signature RSA-PSS (4096 bits)) (Client CN "mail01.haj.ipfire.org", Issuer "R11" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4WpwJ347qVz342m for ; Wed, 21 Aug 2024 18:45:23 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4WpwJ32bmpz2SK; Wed, 21 Aug 2024 18:45:23 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1724265923; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YovcWRR9K/Y9LFgx8elY7VKReESvDgOE4EypkZ2YjzU=; b=XkCcZu3kbi/1CeHY/UUNp08uZnWLKdMD4qrctcyzruQGLSnSwV2hhmbyrl4sBq2nztmPWP 8JfKmrmUlws6ZwBw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1724265923; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YovcWRR9K/Y9LFgx8elY7VKReESvDgOE4EypkZ2YjzU=; b=drs2gZZW2Dy/hIyyMUoKdNB6zwouz25a1GvbZb5L6FshXKlSNDLIMZvbdHX5UldVN5M5an F/nWNpbCwjX5CvR0nsc5FW6pTLi6Ey9EnyY42v30q9HMrsWsWMCx095f7GDeXPBewbvWy1 zNeFoNYiRlVxwqgPIbeYUADf4y8OuwEPEV+waLJRV+uJgWdNRlMC3PDbXyORH7qlZWTz/i HcMJ1oy6aMKbRi6W8LmJN1P3sn/fgWmrqfWaPPV72G7z3NQ8c7ggBA/CaQU4SS6leKt7mn OJeB2kGMqjyedRPaEt/rITBj25qO3Gn9CsDjbLAzzV+MaVfMeEbi8nLjDELOrg== From: Adolf Belka To: development@lists.ipfire.org Subject: [PATCH] sysvinit: Update to version 3.10 Date: Wed, 21 Aug 2024 20:45:16 +0200 Message-ID: <20240821184516.1906534-5-adolf.belka@ipfire.org> In-Reply-To: <20240821184516.1906534-1-adolf.belka@ipfire.org> References: <20240821184516.1906534-1-adolf.belka@ipfire.org> MIME-Version: 1.0 Message-ID-Hash: CVODB67VIWPITLTIG4TWCCV5QSV52WJY X-Message-ID-Hash: CVODB67VIWPITLTIG4TWCCV5QSV52WJY X-MailFrom: adolf.belka@ipfire.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: IPFire development talk Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: - Update from version 3.08 to 3.10 - Update of rootfile not required - Renamed build_mountpoint patch - Changelog 3.10 When the user executes "machinectl stop", systemd sends SIGRTMIN+4 to PID 1 in the container, and expects that to initiate a graceful shutdown (power-off). SysV init now catches this signal and initiates a shutdown (shutdown -hP now). Fix issue in bootlogd which could cause the service to enter an endless loop (and use too much CPU) when it is able to open a device for writing, but not actually able to write to it. This resulted in bootlogd closing and re-opening the device over and over. Now bootlogd should simply fail gracefully when it cannot write to an open file/device. Fix formatting in shutdown.8 manual page. Cleaned up whitespace and special characters. 3.09 On Linux distributions which use the musl C library (instead of glibc) we can now build properly. Specifically, the hddown helper program now builds on musl C systems. The reboot command is now able to pass messages to the underlying firmware on Linux systems during a reboot. This allows the admin to pass information to the underlying firmware to, for example, ask the system to boot from another partition. Should be helpful on Raspberry Pi systems. The reboot command can pass a message to the firmware when using the "-m" command line flag. This release also improves the Makefile's clean directive. Signed-off-by: Adolf Belka --- lfs/sysvinit | 8 ++++---- ...ntpoint.patch => sysvinit-3.10_build_mountpoint.patch} | 0 2 files changed, 4 insertions(+), 4 deletions(-) rename src/patches/{sysvinit-3.08_build_mountpoint.patch => sysvinit-3.10_build_mountpoint.patch} (100%) diff --git a/lfs/sysvinit b/lfs/sysvinit index 4da1b185e..ff5577e5e 100644 --- a/lfs/sysvinit +++ b/lfs/sysvinit @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2023 IPFire Team # +# Copyright (C) 2007-2024 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -24,7 +24,7 @@ include Config -VER = 3.08 +VER = 3.10 THISAPP = sysvinit-$(VER) DL_FILE = $(THISAPP).tar.xz @@ -40,7 +40,7 @@ objects = $(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE) -$(DL_FILE)_BLAKE2 = ec4a4ff3663ac7d67808b50b67631ff4fe1ab56d376df15868df0eb79cbc329b192af124380eec6a797d827c3c7c5586058310d803f42ee1934dcffbfbe876f7 +$(DL_FILE)_BLAKE2 = 894f1ad140f1e92f4d4a2220a9abff6ba106d9f84ee0e001ee8d5a0f41a2877e08110d442a2bcd52efc5662838fae36835b067091d37b9f4d295b47c01c26153 install : $(TARGET) @@ -70,7 +70,7 @@ $(subst %,%_BLAKE2,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) - cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/sysvinit-3.08_build_mountpoint.patch + cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/sysvinit-3.10_build_mountpoint.patch cd $(DIR_APP) && make $(MAKETUNING) cd $(DIR_APP) && make install @rm -rf $(DIR_APP) diff --git a/src/patches/sysvinit-3.08_build_mountpoint.patch b/src/patches/sysvinit-3.10_build_mountpoint.patch similarity index 100% rename from src/patches/sysvinit-3.08_build_mountpoint.patch rename to src/patches/sysvinit-3.10_build_mountpoint.patch