8000 genfstab: ensure swap devices adhere to -f · archlinux/arch-install-scripts@a5b772d · GitHub
[go: up one dir, main page]

Skip to content

Commit a5b772d

Browse files
committed
genfstab: ensure swap devices adhere to -f
Signed-off-by: Morten Linderud <morten@linderud.pw>
1 parent 8ef9090 commit a5b772d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

genfstab.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@ done < <(findmnt -Recvruno SOURCE,TARGET,FSTYPE,OPTIONS,FSROOT "$root")
226226
# skip files marked deleted by the kernel
227227
[[ $device = *'\040(deleted)' ]] && continue
228228

229+
# skip devices not part of the prefix
230+
[[ $device = "$prefixfilter"* ]] || continue
231+
229232
if [[ $type = file ]]; then
230233
printf '%-20s' "${device#${root%/}}"
231234
elif [[ $device = /dev/dm-+([0-9]) ]]; then

0 commit comments

Comments
 (0)
0