Systemd on vivid beta
Tom H
tomh0665 at gmail.com
Sat Mar 14 20:08:59 UTC 2015
On Sat, Mar 14, 2015 at 11:30 AM, Colin Law <clanlaw at gmail.com> wrote:
> On 14 March 2015 at 14:11, Tom H <tomh0665 at gmail.com> wrote:
>> On Sat, Mar 14, 2015 at 8:22 AM, Colin Law <clanlaw at gmail.com> wrote:
>>> On 14 March 2015 at 11:21, Colin Law <clanlaw at gmail.com> wrote:
>>>> On 13 March 2015 at 10:02, Colin Law <clanlaw at gmail.com> wrote:
>>>>>
>>>>> However I think maybe the problem is more fundamental than I thought.
>>>>> I find that if I just manually mount a cifs share ( sudo mount -t cifs
>>>>> ...) and shutdown that I get the same delay on shutdown, whereas if I
>>>>> do the same in an upstart boot then there is no delay. That seems
>>>>> like a reportable bug to me, so I have reported it.
>>>>> https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1431774
>>>>
>>>> In case anyone is interested this was caused by a missing dependency
>>>> in the NetworkManager service file, allowing NM to shutdown too early.
>>>> Fixed in today's network-manager update.
>>>
>>> But not for long...
>>> Not fixed yet for wifi connection. Another missing dependency I guess.
>>
>> Perhaps wpa_supplicant.service is releasing its dbus "thingy" before
>> the unmount completes...
>
> I see in the journal posted by another affected by the bug (I am not
> using wifi myself)
> Stopping WPA supplicant...
> before the unmount, so that may well be the issue.
I guess so.
Unrelated to the unmount failures and therefore somewhat OT:
Should you want to switch to a .mount unit, I've set up the following
in a VM (192.168.1.11 is my laptop) and rebooted.
<begin>
# systemctl cat home-th-srvtom.mount
# /etc/systemd/system/home-th-srvtom.mount
[Unit]
Before=remote-fs.target
[Mount]
What=//192.168.1.11/srvtom
Where=/home/th/srvtom
Type=cifs
Options=credentials=/home/th/.cifscreds
[Install]
WantedBy=multi-user.target
# systemctl status home-th-srvtom.mount
● home-th-srvtom.mount - /home/th/srvtom
Loaded: loaded (/etc/systemd/system/home-th-srvtom.mount; enabled;
vendor preset: enabled)
Active: active (mounted) since Sat 2015-03-14 15:56:47 EDT; 1min 47s ago
Where: /home/th/srvtom
What: //192.168.1.11/srvtom
Process: 554 ExecMount=/bin/mount //192.168.1.11/srvtom
/home/th/srvtom -n -t cifs -o credentials=/home/th/.cifscreds
(code=exited, status=0/SUCCESS)
Mar 14 15:56:47 localhost systemd[1]: Mounting /home/th/srvtom...
Mar 14 15:56:47 localhost systemd[1]: Mounted /home/th/srvtom.
</end>
FTR, the samba setup on my laptop is basic:
<begin>
# cat /etc/samba/smb.conf
[global]
bind interfaces only = yes
encrypt passwords = yes
interfaces = 127.0.0.1/8 192.168.1.11/24
security = user
unix password sync = yes
[srvtom]
path = /srv/tom
browsable = yes
writable = yes
write list = th
</end>
More information about the ubuntu-users
mailing list