From: "Schaffner, Tobias" <tobias.schaffner@siemens.com>
To: isar-users <isar-users@googlegroups.com>
Cc: "Gylstorff, Quirin" <quirin.gylstorff@siemens.com>
Subject: [PATCH] fix broken fsck type in initramfs-fsck-hook-ext4
Date: Thu, 22 Dec 2022 15:35:45 +0000 [thread overview]
Message-ID: <66bcebb7-81d4-1e7e-d177-a58cb120815d@siemens.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 251 bytes --]
The initramfs-fsck-hook-ext4 script did not copy the fsck binary as the
wrong type variable was used to identify the needed filesystem type.
Set the type to ext4 as the script is ext4 only anyways.
(Had to exceptionally send this as attachment)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-fix-broken-fsck-type-in-initramfs-fsck-hook-ext4.patch --]
[-- Type: text/x-patch; name="0001-fix-broken-fsck-type-in-initramfs-fsck-hook-ext4.patch", Size: 1312 bytes --]
From a6cdc01e5f53a08d3421a6567657b17c7e523800 Mon Sep 17 00:00:00 2001
From: Tobias Schaffner <tobias.schaffner@siemens.com>
Date: Thu, 22 Dec 2022 15:05:31 +0100
Subject: [PATCH] fix broken fsck type in initramfs-fsck-hook-ext4
The initramfs-fsck-hook-ext4 script did not copy the fsck binary as the
wrong type variable was used to identify the needed filesystem type.
Set the type to ext4 as the script is ext4 only anyways.
Signed-off-by: Tobias Schaffner <tobias.schaffner@siemens.com>
---
.../initramfs-fsck-hook/files/initramfs.fsck.ext4.hook | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/meta/recipes-support/initramfs-fsck-hook/files/initramfs.fsck.ext4.hook b/meta/recipes-support/initramfs-fsck-hook/files/initramfs.fsck.ext4.hook
index 23f7c28..e07db48 100644
--- a/meta/recipes-support/initramfs-fsck-hook/files/initramfs.fsck.ext4.hook
+++ b/meta/recipes-support/initramfs-fsck-hook/files/initramfs.fsck.ext4.hook
@@ -26,12 +26,10 @@ if [ ! -x /sbin/fsck ]; then
exit 0
fi
-fsck_types="ext4"
-
copy_exec /sbin/fsck
copy_exec /sbin/logsave
-if prog="$(command -v fsck.${type})"; then
+if prog="$(command -v fsck.ext4)"; then
copy_exec "$prog"
else
echo "Warning: /sbin/fsck.${type} doesn't exist, can't install to initramfs, ignoring."
--
2.34.1
next reply other threads:[~2022-12-22 15:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-22 15:35 Schaffner, Tobias [this message]
2022-12-22 16:01 ` Henning Schild
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=66bcebb7-81d4-1e7e-d177-a58cb120815d@siemens.com \
--to=tobias.schaffner@siemens.com \
--cc=isar-users@googlegroups.com \
--cc=quirin.gylstorff@siemens.com \
/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