From f374f443f40262749793eaae0eec47dc9d3e5b48 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Mon, 1 Aug 2016 23:38:55 +0200 Subject: [PATCH] Allow fsck on UUID= and LABEL= devices Signed-off-by: Joachim Nilsson --- finit.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/finit.c b/finit.c index ad6f6f20..8a895cf1 100644 --- a/finit.c +++ b/finit.c @@ -93,8 +93,10 @@ static int fsck(int pass) errno = 0; if (stat(fs->fs_spec, &st) || !S_ISBLK(st.st_mode)) { - _d("Cannot fsck %s, not a block device: %s", fs->fs_spec, strerror(errno)); - continue; + if (!string_match(fs->fs_spec, "UUID=") && !string_match(fs->fs_spec, "LABEL=")) { + _d("Cannot fsck %s, not a block device: %s", fs->fs_spec, strerror(errno)); + continue; + } } snprintf(cmd, sizeof(cmd), "/sbin/fsck -C -a %s", fs->fs_spec);