summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--anaconda.spec.in1
-rw-r--r--configure.ac1
-rw-r--r--data/Makefile.am2
-rw-r--r--data/systemd/Makefile.am32
-rw-r--r--data/systemd/anaconda-shell.service12
-rw-r--r--data/systemd/anaconda.target2
-rw-r--r--data/systemd/loader.service13
7 files changed, 62 insertions, 1 deletions
diff --git a/anaconda.spec.in b/anaconda.spec.in
index e434b55ef..0ed413265 100644
--- a/anaconda.spec.in
+++ b/anaconda.spec.in
@@ -207,6 +207,7 @@ update-desktop-database &> /dev/null || :
%doc docs/install-methods.txt
%doc docs/mediacheck.txt
%doc docs/anaconda-release-notes.txt
+/lib/systemd/system/*
/lib/udev/rules.d/70-anaconda.rules
%{_sbindir}/anaconda
%{_sbindir}/logpicker
diff --git a/configure.ac b/configure.ac
index 3b63c772b..18b461c96 100644
--- a/configure.ac
+++ b/configure.ac
@@ -283,6 +283,7 @@ AC_CONFIG_FILES([Makefile
data/icons/hicolor/48x48/apps/Makefile
data/icons/hicolor/256x256/Makefile
data/icons/hicolor/256x256/apps/Makefile
+ data/systemd/Makefile
po/Makefile.in
scripts/Makefile
pyanaconda/Makefile
diff --git a/data/Makefile.am b/data/Makefile.am
index c9fbc601b..7c1f9ae26 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -17,7 +17,7 @@
#
# Author: Martin Sivak <msivak@redhat.com>
-SUBDIRS = bootdisk command-stubs fonts icons liveinst pixmaps ui
+SUBDIRS = bootdisk command-stubs fonts icons liveinst pixmaps systemd ui
EXTRA_DIST = lang-table
CLEANFILES = *~ lang-names
diff --git a/data/systemd/Makefile.am b/data/systemd/Makefile.am
new file mode 100644
index 000000000..4185ddbd5
--- /dev/null
+++ b/data/systemd/Makefile.am
@@ -0,0 +1,32 @@
+# systemd/Makefile.am for anaconda
+#
+# Copyright (C) 2011 Red Hat, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License as published
+# by the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+# Author: Chris Lumens <clumens@redhat.com>
+
+systemddir = /lib/systemd/system
+dist_systemd_DATA = anaconda-shell.service anaconda.target loader.service
+
+MAINTAINERCLEANFILES = Makefile.in
+
+install-exec-local:
+ mkdir -p $(DESTDIR)/lib/systemd/system/anaconda.target.wants
+ ln -sf /lib/systemd/system/anaconda-shell.service $(DESTDIR)/lib/systemd/system/anaconda.target.wants
+ ln -sf /lib/systemd/system/dbus.target $(DESTDIR)/lib/systemd/system/anaconda.target.wants
+ ln -sf /lib/systemd/system/loader.service $(DESTDIR)/lib/systemd/system/anaconda.target.wants
+ ln -sf /lib/systemd/system/sockets.target $(DESTDIR)/lib/systemd/system/anaconda.target.wants
+ ln -sf /lib/systemd/system/udev.service $(DESTDIR)/lib/systemd/system/anaconda.target.wants
+ ln -sf /lib/systemd/system/udev-settle.service $(DESTDIR)/lib/systemd/system/anaconda.target.wants
diff --git a/data/systemd/anaconda-shell.service b/data/systemd/anaconda-shell.service
new file mode 100644
index 000000000..556ed68fa
--- /dev/null
+++ b/data/systemd/anaconda-shell.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Shell on tty2
+BindTo=dev-tty2.device
+After=dev-tty2.device
+
+[Service]
+Environment=TERM=linux
+ExecStart=-/sbin/agetty -n tty2 38400
+Restart=always
+RestartSec=0
+TimeoutSec=0
+KillMode=process-group
diff --git a/data/systemd/anaconda.target b/data/systemd/anaconda.target
new file mode 100644
index 000000000..bcbfb8e24
--- /dev/null
+++ b/data/systemd/anaconda.target
@@ -0,0 +1,2 @@
+[Unit]
+Description=The anaconda installation program
diff --git a/data/systemd/loader.service b/data/systemd/loader.service
new file mode 100644
index 000000000..3b6b726ea
--- /dev/null
+++ b/data/systemd/loader.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=The anaconda loader
+Requires=dbus.service udev.service rsyslog.service
+After=dbus.service udev.service rsyslog.service
+
+[Service]
+Environment=HOME=/
+Type=oneshot
+WorkingDirectory=/
+ExecStart=/sbin/loader
+StandardInput=tty-force
+KillMode=process-group
+TimeoutSec=0