-
Notifications
You must be signed in to change notification settings - Fork 69
Arch one-context support #14
Conversation
Addded Arch linux support for one-context. Moved the init.d directory to distro specific directories in order at add systemd compatability. 00-Network was also reworked to use systemd-networkd.
consider the Unit to be active if the start exits successfully.
|
I like the changes and the idea of moving startup script from SysV script to another file. If the functionality is the same maybe we can put this file in /usr/sbin/vmcontext and call it from systemd and SysV scripts. Also it would be good to add a PKGBUILD file and some documentation on how to install it. Do you think it is easy to add this to AUR? Thanks! |
|
The functionality should be the same and I'll move it to sbin. I'm working on making a PKGBUILD which should be very simple and I did intend to add it to the AUR. I want to work on the systemd service a bit, it appears to be running to early in the startup sometimes so I have to figure out what other targets I need to add so that it's more robust. |
One-context should really have been in sbin all along. Updated one-context.service to run before systemd-networkd but after udev or kdbus have run. This should eliminate the requirement for a systemd-networkd restart.
also updated 00-network and 05-hostname One-context.service should be linked to systemd-networkd.service, tying to do this using the Wants flag. Additionally since one-context.service should now run before systemd-networkd.service it's superfluous to restart the unit, this was edited out of 00-network. 05-hostname was edited to use the hostnameclt, the echo style can probably be removed.
|
Added a bunch more. I'm going to write some systemd scripts for the RPM and Deb packages. Also some testing with libcloud next week. |
I was unable to make systemd scripts for Debian 7 and CentOS 6 so for backwards compatability made the SysV script call /usr/sbin/one-contextd. This should be revisited in the future.
One-contextd was missing a call to the start function. The init.d scripts were calling one-context not one-contextd
|
@jfontan This should be all set for your review. I intend to push the PKGBUILD info to the AUR once I can point it at the OpenNebula github instead of FASRC |
|
Great, thank you! I'll ping you as soon as I have reviewed the changes. |
|
Why is package If only |
|
Great find I'll update that I had only found growpart in cloud-utils |
|
Tested both rpm and deb packages. Everything seems to be working ok. Merging to master. This will be released as 4.14.2. Thank you! |
gh-14: Arch one-context support
Adding arch support for one-context scripts. Let me know what you think. I edited the init.d script and made it into a simple executable so that I could use a systemd unit to call it. I edited the 00-network file to work with systemd-networkd. I also moved the init.d script since arch doesn't use it.