From patchwork Thu May 19 08:56:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 5626 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 (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4L3kHc40pFz3yZF for ; Thu, 19 May 2022 08:56:44 +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 ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4L3kHZ2GzNz45g; Thu, 19 May 2022 08:56:42 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4L3kHZ12LJz2xv9; Thu, 19 May 2022 08:56:42 +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 (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4L3kHX08tcz2x9g for ; Thu, 19 May 2022 08:56:40 +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 ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4L3kHW0Hz5zm7; Thu, 19 May 2022 08:56:39 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1652950599; 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; bh=B+n5s2GLgzY41q5qxOmesSLjCGpuxRQT40Aq6FsKBWk=; b=DndI/g4Sn6c72Z18p13dMDXc0qo23e6Mf125JFt8EGXJf6UyOrj0CuokW5ACb/MGYMnO3z /EpPqj8Q9x8HPBAQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1652950599; 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; bh=B+n5s2GLgzY41q5qxOmesSLjCGpuxRQT40Aq6FsKBWk=; b=FlOOyBXR1ko5LUhv81Tes+DT9X5u4V0/NT9ANcowxN9D4g8NOHe9nRGdC6IdewcgIci/8H 1M6w/5ssUOkLV2tiVCT0z/EGdtY81XnQZJvCXLqKHT1GUiVjBQXoXuM4a9XMBQ5VUrG3f+ Na+5utMeIfNeR8ZnZrMHiLRs2oN69CvbLzhU5P3ijWGSzeryq0TeFups3PmgbISnhsF9LI LqxTOUC9pjhcqKJ1DS7kmpUGKjwTs9UjKSva+x+xFGg+6ui5IPsrxjDemXFyTCnWELshBN lkDjRgn1qFgJyqcpxPljETgVKJbx8zcBjX7JnO1drp+8Y5sLlrmDviDr4RAKHw== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 1/2] core168: Add rd.auto to kernel command line Date: Thu, 19 May 2022 08:56:33 +0000 Message-Id: <20220519085634.197389-1-michael.tremer@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" This parameter will enable dracut to automatically launch any MDRAID arrays at boot time. Signed-off-by: Michael Tremer --- config/rootfiles/core/168/update.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/rootfiles/core/168/update.sh b/config/rootfiles/core/168/update.sh index e11e08b7f..c4005dba9 100644 --- a/config/rootfiles/core/168/update.sh +++ b/config/rootfiles/core/168/update.sh @@ -120,6 +120,10 @@ case "$(uname -m)" in ;; esac +# Add rd.auto to kernel command line +if ! grep -q rd.auto /etc/default/grub; then + sed -e "s/panic=10/& rd.auto/" -i /etc/default/grub +fi # Start services /etc/init.d/fcron restart