|
Bugzilla – Full Text Bug Listing |
| Summary: | Systemd does not mount /home automatically | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 12.1 | Reporter: | Luca Beltrame <lbeltrame> |
| Component: | Basesystem | Assignee: | Frederic Crozat <fcrozat> |
| Status: | RESOLVED FIXED | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Critical | ||
| Priority: | P5 - None | CC: | forgotten_6dIpwUAJQ7, waxborg |
| Version: | Factory | ||
| Target Milestone: | --- | ||
| Hardware: | x86-64 | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: |
System log from boot to login prompt
List of all unit files in the system when boot finishes List of running unit files when boot finishes systemd kernel log (dmesg | grep systemd) Output of "systemd show home.mount" once bootup is complete Output of "systemctl show nfs.service" dmesg log with debug options New dmesg log |
||
|
Description
Luca Beltrame
2011-08-29 21:07:24 UTC
Created attachment 448307 [details]
System log from boot to login prompt
Created attachment 448308 [details]
List of all unit files in the system when boot finishes
Created attachment 448309 [details]
List of running unit files when boot finishes
Created attachment 448344 [details]
systemd kernel log (dmesg | grep systemd)
It might be slightly off as I had to start home.mount in order to save the log to a location where I could use it.
Created attachment 448345 [details]
Output of "systemd show home.mount" once bootup is complete
I did more research and I think I found the cause. In my fstab, I have something like this, to mount a NFS volume at boot: seldon:/home/storage/music/Anime /home/anime_mp3 nfs hard,rw,intr 0 0 where "seldon" is my internal fileserver. If I comment it out, everything works as expected. I'll test tomorrow if by setting it as a mountpoint outside /home I can prevent this issue. I got the same situation with separate /boot partition. It happens because systemd have targets only for rootfs and remote fs. /lib/systemd/system/local-fs.target.wants contains requirements for rootfs, media.mount, /var/lock and /var/run, but nothing about any non-root local filesystems. I see it is two ways to fix it: 1. YaST should add .mount target for every local fs during creation/system installation. 2. Should be added something like remote-fs.target for local filesystems, which mounts everything listed in fstab. Manpage for systemd.special(7) describes local-fs.target: systemd automatically adds dependencies of type After to all mount units that refer to local mount points for this target unit. In addition, systemd adds dependencies of type Wants to this target unit for those mounts listed in /etc/fstab that have the auto and comment=systemd.mount mount options set. I have this options both set for /boot and /home, but mountpoints still empty on boot. When I manualy created and added home.mount and boot.mount units to the local-fs.target.wants it was no expected result. Not reproduced on clean Factory installation. Sergiy, please open a separate bug report. Luca: I've reproduce similar issue : adding nfs mount point is causing a dependency loop (due to insserv.conf parsing), I'm working on it. *** Bug 715965 has been marked as a duplicate of this bug. *** I have a test package in home:fcrozat:systemd / systemd which is fixing the nfs cycle for me. Please test. Thanks Frederic. I'll give it a go this evening and follow up here. I already tried it. Bug is not reproduced. All partitions and disk volumes mounted correctly. Tested remotely. /home is now mounted correctly but the NFS mount point isn't:
nfs.service - LSB: NFS client services
Loaded: loaded (/etc/init.d/nfs)
Active: failed since Fri, 09 Sep 2011 14:14:06 +0200; 44min ago
Process: 1058 ExecStart=/etc/init.d/nfs start (code=exited, status=1/FAILURE)
CGroup: name=systemd:/system/nfs.service
"systemctl show nfs.service" is attached.
Relevant logs:
Sep 9 15:01:43 leon systemd[1]: Got SIGCHLD for process 1079 (nfs)
Sep 9 15:01:43 leon systemd[1]: Child 1079 died (code=exited, status=1/FAILURE)
Sep 9 15:01:43 leon systemd[1]: Child 1079 belongs to nfs.service
Sep 9 15:01:43 leon systemd[1]: nfs.service: control process exited, code=exited status=1
Sep 9 15:01:43 leon systemd[1]: nfs.service got final SIGCHLD for state start
Sep 9 15:01:43 leon systemd[1]: nfs.service changed start -> failed
Created attachment 450046 [details]
Output of "systemctl show nfs.service"
I would need dmesg output (with systemd.log_level=debug systemd.log_target=kmsg) to see what is going on. Created attachment 450052 [details]
dmesg log with debug options
Here it is.
Created attachment 450065 [details]
New dmesg log
closing as fixed, some other fixes were needed in NetworkManager to enable NetworkManager-wait-online.service too (done in GNOME:Factory) |