multiple entries in fstab with same mount-point
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mountall (Ubuntu) |
Fix Released
|
Medium
|
Steve Langasek |
Bug Description
Binary package hint: mountall
Release: 9.10
Package-Version: 1.0, 1.0.1
Multiple entries in fstab with the same mount-point get not mounted as expected. (see mount-point '/home' in attached fstab for example)
Probably it doesn't make very much sense to mount different sources with different options to the same mount-point but in case of dazukofs (which is used by avira antivir) the following is necessary
#> mount -t dazukofs /home /home
after the real partitions as been mounted to '/home' to tell the on-access-scanner to include '/home'
But this cannot be done automatically during boot by putting an according line to /etc/fstab since mountall just does a
'mount -a -t dazukofs -o defaults /home /home', but the real partition doesn't ever get mounted.
By invoking a manual 'mount -a' both fstab-lines get interpreted as expected.
description: | updated |
Changed in mountall (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: | added: patch |
Changed in mountall (Ubuntu): | |
assignee: | nobody → Canonical Foundations Team (canonical-foundations) |
Changed in mountall (Ubuntu): | |
assignee: | Canonical Foundations Team (canonical-foundations) → James Hunt (jamesodhunt) |
Changed in mountall (Ubuntu): | |
status: | Triaged → Fix Committed |
assignee: | James Hunt (jamesodhunt) → Steve Langasek (vorlon) |
As I looked at the sources of mountall I found the function parse_fstab, which already has a spacial- case-handling of lines for swap-partitions (which would get a mount-point of 'none' and so there also could be only one swap-entry).
I think probably this was the fix for bug #435027, but I didn't go deeper for this.
So if there is no other sane use-case for multiple fstab-lines with same mount-point, there just need to be another special-case for dazukofs, which I attached a patch against mountall_1.0.tar.gz for.
But somehow this seems to be a quick and dirty-patch, so maybe there should be some other tests if one fstab-line just updates another one or should be handled as a new one (like mentioned in bug #435027: "[...] we should check non-device mountpoints, and swap partitions")