We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mkfs.vfat -n data /dev/sda1
/etc/fstab
/dev/mmcblk0p3 /data auto defaults 0 2
Thumb drive should be mounted.
Thumb drive is ignored:
/dev/sda1 already in /etc/fstab, automount won't manage it: /dev/mmcblk0p3 /data auto defaults 0 2
In line 78 LABEL is used to find devices in fstab.
LABEL
If the regex is changed to not allow spaces before ${LABEL} it will ignore mount points:
${LABEL}
LABEL=data; grep /etc/fstab -e "^[^# ]*${LABEL}" LABEL=mmcblk0p3; grep /etc/fstab -e "^[^# ]*${LABEL}" /dev/mmcblk0p3 /data auto defaults 0 2
But I am not aware what possible values have to be matched in fstab.
The text was updated successfully, but these errors were encountered:
Do only look for LABEL in the first column of fstab
0e164e3
Do not allow spaces if matching LABEL in order to ignore mount point and other fstab line content. fixes Ferk#25
Successfully merging a pull request may close this issue.
Steps to reproduce
/etc/fstab
containing the label as mount point, e.g.:Expected result
Thumb drive should be mounted.
Actual result
Thumb drive is ignored:
Possible fix
In line 78
LABEL
is used to find devices in fstab.If the regex is changed to not allow spaces before
${LABEL}
it will ignore mount points:But I am not aware what possible values have to be matched in fstab.
The text was updated successfully, but these errors were encountered: