summaryrefslogtreecommitdiffstats
path: root/install/fsck
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2017-12-19 23:30:44 +0100
committerChristian Hesse <mail@eworm.de>2020-07-16 17:01:31 +0200
commit1dd2ab6d47b8f254ad933b5c9d68b479c3188ea0 (patch)
tree3320c5506949a6a471e2f861392bafb251a45f2e /install/fsck
parent3340dbc2ed92a0d9e58193d2d4082a588c1d84ca (diff)
downloadmkinitcpio-1dd2ab6d47b8f254ad933b5c9d68b479c3188ea0.tar.gz
mkinitcpio-1dd2ab6d47b8f254ad933b5c9d68b479c3188ea0.tar.xz
fsck: do not complain about missing helper for tmpfs
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>
Diffstat (limited to 'install/fsck')
-rw-r--r--install/fsck2
1 files changed, 2 insertions, 0 deletions
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