8000 genfstab: reshuffle while read loop · archlinux/arch-install-scripts@b07a157 · GitHub
[go: up one dir, main page]

Skip to content

Commit b07a157

Browse files
committed
genfstab: reshuffle while read loop
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
1 parent 3a8e3de commit b07a157

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

genfstab.in

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,7 @@ if ! mountpoint -q "$root"; then
149149
fi
150150

151151
# handle block devices
152-
findmnt -Recvruno SOURCE,TARGET,FSTYPE,OPTIONS,FSROOT "$root" |
153-
while read -r src target fstype opts fsroot; do
152+
while read -r src target fstype opts fsroot; do
154153
if (( !pseudofs )) && fstype_is_pseudofs "$fstype"; then
155154
continue
156155
fi
@@ -211,7 +210,7 @@ findmnt -Recvruno SOURCE,TARGET,FSTYPE,OPTIONS,FSROOT "$root" |
211210
printf '\t%-10s' "/$(mangle "${target#/}")" "$fstype" "$opts"
212211
printf '\t%s %s' "$dump" "$pass"
213212
printf '\n\n'
214-
done
213+
done < <(findmnt -Recvruno SOURCE,TARGET,FSTYPE,OPTIONS,FSROOT "$root")
215214

216215
# handle swaps devices
217216
{

0 commit comments

Comments
 (0)
0