-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
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
ubuntu PPA will not work correctly with systemd #145
Comments
Forwarding downstream comment https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1431523/comments/2 : Just ran into this exact same issuse. It looks like the files DO NOT match what's in git at all. (In fact, all of the are the same 6-byte file). I manually fixed my system by creating files in /etc/systemd/system based off of the templates here: https://github.com/zfsonlinux/zfs/tree/master/etc/systemd/system (Create a file zfs-target based of zfs-target.in, zfs-share-service based off of zfs-share-service.in, and so on. You'll need to manually replace the variables that would normally be replaced by the build process -- @bindir@ becomes /bin and so forth.) |
I had the same problem. Thanks to @martinpitt for the tip where to get the files. After I have done that, it it doesn't started up on ubuntu vivid. I need to do The files I copied where:
I deleted:
|
Thanks to @martinpitt and @yvess, my zpool on Ubuntu 15.04 (Vivid) now mounts on restart automatically! I have added files
and deleted /etc/init/zpool-import.conf (it seems to be useless with systemd). As I'm new to systemd and ZFS, I tried to copy and paste templates referenced above, replacing
(Maybe all this is not really necessary and it has been already fixed in PPA, thanks for correcting me, I'm still learning.) |
The correct way to solve this (which I've done in my Wheezy packages), is to build-depend on |
For zfsonlinux#145 Change-Id: Ie1993edebac4948ba4fd408b652ec58772f26560
benley@5316d25 is my attempt at implementing the full fix, if anyone wants to take a look. Comments/corrections would be appreciated. And, should I send a pull request for this or is it already handled upstream somewhere? |
I don't know much about apt-style packaging but is there a reason you couldn't using the |
@benley, if a dual-mode package tests well, then this might go out in a mid-series upgrade. Open a pull request against zfsonlinux/pkg-zfs in the master/ubuntu/vivid branch if you want commit credit. Ubuntu broke release freeze to promote systemd, which cramped planning for Vivid. I am unwilling to disrupt planned deployments, and there have been zero complaints from such users, so the word on Ubuntu 15.04 could remain "use upstart mode or do a local installation". I appreciate that this is annoying for people that are keen to use systemd, but the PPA has a reputation for production quality in part because it is paced and conservative. |
just as a side note, for me zfs on vivid is unusable at the moment, see openzfs/zfs#3257 (comment) kernel panic |
Upstart mode didn't work for me. It tried to hit mountall and mountall couldn't find upstart. Is that what you're referring to? |
@Clete2, follow these instructions to get upstart mode: Anything that uses upstart events, like the enhanced |
@yvess, regarding that comment:
Automatic ppa:zfs-native/daily and ppa:zfs-native/nightly builds can be restarted if somebody with a deep understanding of Launchpad can create a working bzr recipe for the ZoL mainline. |
I haven't done any testing of my package variant on a 15.04 system in upstart mode - that would obviously be wise before merging my changes. If I have some time later today I'll do that, and then open a pull request. Thanks! |
Ack, I forgot all about this. What branch should I do a pull request against? master/ubuntu/TRUNK? |
@benley, yes, please. |
At last, a much-delayed pull request. |
@benley, thanks. I will bench it this weekend. |
Many thanks for all your efforts guys. As a non-developer it's impressive Krgds On Fri, Jul 17, 2015 at 3:23 AM, Darik Horn notifications@github.com
|
Snapshot builds for Vivid and Wily are published to Note that this PR does not preserve legacy Dunno whether it will be worthwhile to supplement or supersede the basic systemd units with the RedHat |
Just tested this (by switching my PPA from stable to daily) and it seems to be working. Thanks guys! |
Confirmed working, using fresh install of 15.04 with the daily ppa. On Sun, Jul 26, 2015 at 12:29 AM, Tom Denham notifications@github.com
|
+1 |
How long until this releases to stable? I'm trying to determine if I should switch over to daily, or just wait for release. |
@Clete2, with the next point release. Track this page if you're interested: The release tag usually happens soon after all milestone tickets are closed, and the promotion to ppa:zfs-native/stable approximately two weeks after that. |
Thanks! Very informative. I appreciate all of the hard work that goes on here. Edit: Switched to daily. Rebooted. Works! |
Closes: #145 Conflicts: debian/rules
Closes: #145 Conflicts: debian/rules
@dajhorn I see a couple of (old) commits that's supposed to fixed this. Can we close this as "done"? |
@FransUrbo, yes, done. |
I am testdriving systemd on Ubuntu 15.04 with zfs as root filesystem. The system works great, however it seems the systemd initscripts are not installed on my system, leaving one zpool exported and a few filesystems unmounted at boot. This worked fine with upstart.
Mountall systemd service file is masked and can't be unmasked.
When looking at the dkms folders I can see the scripts were pulled correctly from git (at least I assume that's why the're there):
ll /var/lib/dkms/zfs/0.6.3.0/build/etc/systemd/system
total 58
drwxr-xr-x 2 root root 11 mrt 10 22:32 ./
drwxr-xr-x 3 root root 5 mrt 10 22:32 ../
-rw-r--r-- 1 root root 6 mrt 10 22:30 50-zfs.preset.in
-rw-r--r-- 1 root root 6 mrt 10 22:32 Makefile
-rw-r--r-- 1 root root 6 mrt 10 22:30 Makefile.in
-rw-r--r-- 1 root root 6 mrt 10 22:30 zed.service.in
-rw-r--r-- 1 root root 6 mrt 10 22:30 zfs-import-cache.service.in
-rw-r--r-- 1 root root 6 mrt 10 22:30 zfs-import-scan.service.in
-rw-r--r-- 1 root root 6 mrt 10 22:30 zfs-mount.service.in
-rw-r--r-- 1 root root 6 mrt 10 22:30 zfs-share.service.in
-rw-r--r-- 1 root root 6 mrt 10 22:30 zfs.target.in
I can test things to help out, however I have no developer skills (automake/make/autoconfigure/...). E.g. I have no idea if I could deploy those files manually to test.
edit: logged launchpad systemd: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1431523
edit2: downstream bugreport now closed (out of scope)
The text was updated successfully, but these errors were encountered: