summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mount-setup.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mount-setup.c b/src/mount-setup.c
index 9eb2832c6e..6efc48e4dc 100644
--- a/src/mount-setup.c
+++ b/src/mount-setup.c
@@ -202,6 +202,10 @@ static int nftw_cb(
int tflag,
struct FTW *ftwbuf) {
+ /* No need to label /dev twice in a row... */
+ if (ftwbuf->level == 0)
+ return 0;
+
label_fix(fpath);
return 0;
};