[arch-projects] [mkinitcpio] [PATCH 1/1] fsck: do not complain about missing helper for tmpfs

Christian Hesse list at eworm.de
Thu Jul 16 15:05:21 UTC 2020


From: Christian Hesse <mail at eworm.de>

Within a (build) chroot we may have root on tmpfs. There is no fsck
helper for tmpfs, so do not complain.

Signed-off-by: Christian Hesse <mail at eworm.de>
---
 install/fsck | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/install/fsck b/install/fsck
index d20750e..366cdbd 100644
--- a/install/fsck
+++ b/install/fsck
@@ -4,6 +4,8 @@ build() {
     local fsck= added=0
 
     add_fsck() {
+        [[ $1 = tmpfs ]] && return
+
         if [[ $1 = ext[234] ]]; then
             add_binary fsck.ext4
             add_symlink /usr/bin/fsck.ext2 fsck.ext4


More information about the arch-projects mailing list