setup.py: Add pylorax.api module to install, and systemd service
lorax-composer.service will be installed by default, but not enabled. It stores recipes at /var/lib/lorax-composer/recipes/
This commit is contained in:
parent
453082ab9f
commit
3bbbeb347a
17
setup.py
17
setup.py
@ -6,7 +6,8 @@ import sys
|
|||||||
|
|
||||||
|
|
||||||
# config file
|
# config file
|
||||||
data_files = [("/etc/lorax", ["etc/lorax.conf"])]
|
data_files = [("/etc/lorax", ["etc/lorax.conf"]),
|
||||||
|
("/usr/lib/systemd/system", ["systemd/lorax-composer.service"])]
|
||||||
|
|
||||||
# shared files
|
# shared files
|
||||||
for root, dnames, fnames in os.walk("share"):
|
for root, dnames, fnames in os.walk("share"):
|
||||||
@ -16,7 +17,7 @@ for root, dnames, fnames in os.walk("share"):
|
|||||||
|
|
||||||
# executable
|
# executable
|
||||||
data_files.append(("/usr/sbin", ["src/sbin/lorax", "src/sbin/mkefiboot",
|
data_files.append(("/usr/sbin", ["src/sbin/lorax", "src/sbin/mkefiboot",
|
||||||
"src/sbin/livemedia-creator"]))
|
"src/sbin/livemedia-creator", "src/sbin/lorax-composer"]))
|
||||||
data_files.append(("/usr/bin", ["src/bin/image-minimizer",
|
data_files.append(("/usr/bin", ["src/bin/image-minimizer",
|
||||||
"src/bin/mk-s390-cdboot"]))
|
"src/bin/mk-s390-cdboot"]))
|
||||||
|
|
||||||
@ -35,13 +36,13 @@ finally:
|
|||||||
setup(name="lorax",
|
setup(name="lorax",
|
||||||
version=vernum,
|
version=vernum,
|
||||||
description="Lorax",
|
description="Lorax",
|
||||||
long_description="",
|
long_description="Tools for creating bootable images, including the Anaconda boot.iso",
|
||||||
author="Martin Gracik",
|
author="Brian C. Lane, Will Woods, Martin Gracik",
|
||||||
author_email="mgracik@redhat.com",
|
author_email="bcl@redhat.com",
|
||||||
url="http://",
|
url="https://rhinstaller.github.io/lorax/",
|
||||||
download_url="http://",
|
download_url="https://github.com/rhinstaller/lorax/releases",
|
||||||
license="GPLv2+",
|
license="GPLv2+",
|
||||||
packages=["pylorax"],
|
packages=["pylorax", "pylorax.api"],
|
||||||
package_dir={"" : "src"},
|
package_dir={"" : "src"},
|
||||||
data_files=data_files
|
data_files=data_files
|
||||||
)
|
)
|
||||||
|
12
systemd/lorax-composer.service
Normal file
12
systemd/lorax-composer.service
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Lorax Image Composer API Server
|
||||||
|
After=network-online.target
|
||||||
|
Wants=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
User=root
|
||||||
|
Type=simple
|
||||||
|
ExecStart=/usr/sbin/lorax-composer /var/lib/lorax-composer/recipes/
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user