Bug 1167684 - pam_mount does not mount anything: invalid option -- 'p'
Summary: pam_mount does not mount anything: invalid option -- 'p'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: pam_mount
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Till Maas
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-25 09:46 UTC by Jan Safranek
Modified: 2014-12-12 04:28 UTC (History)
2 users (show)

Fixed In Version: pam_mount-2.14-4.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-12-12 04:16:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Debian BTS 764451 0 None None None Never

Description Jan Safranek 2014-11-25 09:46:06 UTC
I upgraded F20 to F21 and pam_mount refuses to mount my home. pam_mount tries to execute 'mount -p0 ...', and it looks like that '-p' has been removed from /bin/mount. With <debug enable="1">, I get:


(pam_mount.c:365): pam_mount 2.14: entering auth stage
pam_mount password: XXXXXX

(pam_mount.c:568): pam_mount 2.14: entering session stage
(mount.c:263): Mount info: globalconf, user=jsafrane <volume fstype="auto" server="(null)" path="/dev/ssd/jsafrane" mountpoint="/home/jsafrane" cipher="(null)" fskeypath="(null)" fskeycipher="(null)" fskeyhash="(null)" options="crypto_name=home_clear,discard,nodiscard" /> fstab=0 ssh=0
(mount.c:660): Password will be sent to helper as-is.
command: 'mount' '-p0' '-ocrypto_name=home_clear,discard,nodiscard' '-tauto' '/dev/ssd/jsafrane' '/home/jsafrane' 
(mount.c:68): Messages from underlying mount program:
(mount.c:72): mount: invalid option -- 'p'
(mount.c:72): 
(mount.c:72): Usage:
(mount.c:72):  mount [-lhV]
(mount.c:72):  mount -a [options]
...

Version-Release number of selected component (if applicable):
pam_mount-2.14-3.fc21.x86_64

As a workaround, I added to my /etc/security/pam_mount.conf.xml:
<lclmount>
   mount -t%(FSTYPE) %(VOLUME) %(MNTPT) "%(if %(OPTIONS),-o%(OPTIONS))"
</lclmount>

Comment 1 Fedora Update System 2014-11-28 10:31:24 UTC
pam_mount-2.14-4.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/pam_mount-2.14-4.fc19

Comment 2 Fedora Update System 2014-11-28 10:31:32 UTC
pam_mount-2.14-4.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/pam_mount-2.14-4.fc20

Comment 3 Fedora Update System 2014-11-28 10:31:39 UTC
pam_mount-2.14-4.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/pam_mount-2.14-4.fc21

Comment 4 Till Maas 2014-11-28 10:44:07 UTC
Arch Linux Bug: https://bugs.archlinux.org/task/41496

Comment 5 Fedora Update System 2014-11-29 20:59:59 UTC
Package pam_mount-2.14-4.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing pam_mount-2.14-4.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-15949/pam_mount-2.14-4.fc21
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2014-12-12 04:16:31 UTC
pam_mount-2.14-4.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2014-12-12 04:21:19 UTC
pam_mount-2.14-4.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2014-12-12 04:28:34 UTC
pam_mount-2.14-4.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.