diff options
Diffstat (limited to 'hooks/usr')
-rw-r--r-- | hooks/usr | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -4,12 +4,12 @@ run_latehook() { local usr_source mountopts passno realtab=/new_root/etc/fstab if [ -f "$realtab" ]; then - if usr_source=$(findmnt -snero source --tab-file="$realtab" /usr); then - mountopts=$(findmnt -snero options --tab-file="$realtab" /usr) + if usr_source=$(findmnt -snero source --tab-file="$realtab" -T /usr); then + mountopts=$(findmnt -snero options --tab-file="$realtab" -T /usr) # returning the passno column requires util-linux >= 2.23. for # older versions which do not support this column, always fsck. - passno=$(findmnt -snero passno --tab-file="$realtab" /usr 2>/dev/null) + passno=$(findmnt -snero passno --tab-file="$realtab" -T /usr 2>/dev/null) if [ -z "$passno" ] || [ "$passno" -gt 0 ]; then fsck_device "$usr_source" fi |