File tree 1 file changed +9
-8
lines changed
1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -67,22 +67,23 @@ install() {
67
67
[[ $nofscks == " yes" ]] && return
68
68
69
69
if [[ $fscks == " ${fscks#* [^ ]* } " ]]; then
70
- _helpers=" \
71
- umount mount /sbin/fsck* /usr/sbin/fsck*
70
+ _helpers=(
71
+ /sbin/fsck* /usr/sbin/fsck*
72
72
xfs_db xfs_check xfs_repair xfs_metadump
73
73
e2fsck jfs_fsck reiserfsck btrfsck
74
- "
74
+ )
75
75
if [[ $hostonly ]]; then
76
- _helpers=" umount mount "
77
- _helpers+=$( for_each_host_dev_fs echo_fs_helper)
76
+ read -r -a _helpers < <( for_each_host_dev_fs echo_fs_helper)
78
77
fi
79
78
else
80
- _helpers= " $fscks "
79
+ read -r -a _helpers <<< " $fscks"
81
80
fi
82
81
83
- if [[ $_helpers == * e2fsck* ]] && [[ -e $dracutsysrootdir /etc/e2fsck.conf ]]; then
82
+ _helpers+=(umount mount)
83
+
84
+ if [[ ${_helpers[*]} == * e2fsck* ]] && [[ -e $dracutsysrootdir /etc/e2fsck.conf ]]; then
84
85
inst_simple /etc/e2fsck.conf
85
86
fi
86
87
87
- inst_multiple -o " $_helpers " fsck
88
+ inst_multiple -o " ${ _helpers[@]} " fsck
88
89
}
You can’t perform that action at this time.
0 commit comments