[mkinitcpio,1/1] fsck: do not complain about missing helper for tmpfs

Message ID 20200716150521.45737-1-list@eworm.de
State New
Headers show
Series [mkinitcpio,1/1] fsck: do not complain about missing helper for tmpfs | expand

Commit Message

Christian Hesse July 16, 2020, 3:05 p.m. UTC
From: Christian Hesse <mail@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@eworm.de>
---
 install/fsck | 2 ++
 1 file changed, 2 insertions(+)

Patch

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