installer.sh: set fs_passno to 0 for btrfs and xfs
For f2fs, set fs_passno also to 0 if not a root filesystem. For btrfs and xfs, set fs_passno to 0 in all cases. See fsck.btrfs(8) and fsck.xfs(8) for more information. f2fs still seems to have issues [0]. [0] https://wiki.archlinux.org/title/F2fs#Known_issues
This commit is contained in:
parent
0079f64ef1
commit
29ad8dd76c
|
@ -1075,7 +1075,7 @@ failed to mount $dev on ${mntpt}! check $LOG for errors." ${MSGBOXSIZE}
|
|||
fi
|
||||
# Add entry to target fstab
|
||||
uuid=$(blkid -o value -s UUID "$dev")
|
||||
if [ "$fstype" = "f2fs" ]; then
|
||||
if [ "$fstype" = "f2fs" -o "$fstype" = "btrfs" -o "$fstype" = "xfs" ]; then
|
||||
fspassno=0
|
||||
else
|
||||
fspassno=1
|
||||
|
@ -1100,7 +1100,12 @@ failed to mount $dev on $mntpt! check $LOG for errors." ${MSGBOXSIZE}
|
|||
fi
|
||||
# Add entry to target fstab
|
||||
uuid=$(blkid -o value -s UUID "$dev")
|
||||
echo "UUID=$uuid $mntpt $fstype defaults 0 2" >>$TARGET_FSTAB
|
||||
if [ "$fstype" = "f2fs" -o "$fstype" = "btrfs" -o "$fstype" = "xfs" ]; then
|
||||
fspassno=0
|
||||
else
|
||||
fspassno=2
|
||||
fi
|
||||
echo "UUID=$uuid $mntpt $fstype defaults 0 $fspassno" >>$TARGET_FSTAB
|
||||
done
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue