[PATCH 2/4][lorax] Let devices get detected and started automatically.

David Lehman dlehman at redhat.com
Fri Apr 5 15:11:36 UTC 2013


Also stop masking fedora-storage-* units as they no longer exist.
---
 share/runtime-cleanup.tmpl     | 2 --
 share/runtime-postinstall.tmpl | 8 +++++++-
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/share/runtime-cleanup.tmpl b/share/runtime-cleanup.tmpl
index 34a0a3a..c5932dd 100644
--- a/share/runtime-cleanup.tmpl
+++ b/share/runtime-cleanup.tmpl
@@ -167,7 +167,6 @@ removefrom dbus-glib /usr/bin/*
 removefrom dbus-x11 /etc/X11/*
 removefrom dejavu-sans-fonts --allbut *.conf */DejaVuSans{,-Bold}.ttf
 removefrom dejavu-sans-mono-fonts --allbut *.conf */DejaVuSansMono.ttf
-removefrom device-mapper-multipath /etc/* /sbin/mpathconf /sbin/multipathd /lib/udev/rules.d/62-multipath.rules
 removefrom dhclient /usr/lib/* /usr/share/*
 removefrom dnsmasq /etc/rc.d/* /usr/sbin/*
 removefrom dump /etc/*
@@ -253,7 +252,6 @@ removefrom libxml2-python /usr/${libdir}/python?.?/site-packages/libxml2mod.a
 removefrom libxml2-python /usr/${libdir}/python?.?/site-packages/libxml2mod.la
 removefrom lldpad /etc/* /usr/sbin/lldptool
 removefrom lua /usr/bin/*
-removefrom lvm2 /etc/*
 removefrom lzo /usr/${libdir}/liblzo2.*
 removefrom madan-fonts /usr/share/fonts/madan/*
 removefrom mdadm /etc/*
diff --git a/share/runtime-postinstall.tmpl b/share/runtime-postinstall.tmpl
index 1c0f9ba..e9a4d48 100644
--- a/share/runtime-postinstall.tmpl
+++ b/share/runtime-postinstall.tmpl
@@ -35,7 +35,6 @@ systemctl disable systemd-readahead-collect.service \
 ## These services can't be disabled normally (they're linked into place in
 ## /usr/lib/systemd rather than /etc/systemd), so we have to mask them.
 systemctl mask fedora-configure.service fedora-loadmodules.service \
-               fedora-storage-init.service fedora-storage-init-late.service \
                fedora-autorelabel.service fedora-autorelabel-mark.service \
                fedora-wait-storage.service media.mount
 
@@ -103,4 +102,11 @@ symlink ../run/install mnt/install
 ## create_depmod_conf()
 append etc/depmod.d/dd.conf "search updates built-in"
 
+## create multipath.conf so multipath gets auto-started
+append etc/multipath.conf "defaults {\n\tfind_multipaths yes\n\tuser_friendly_names yes\n}\n"
+
+## make lvm auto-activate
+remove etc/lvm/*
+append etc/lvm/lvm.conf "global {\n\tuse_lvmetad = 1\n}\n"
+
 ## TODO: we could run prelink here if we wanted?
-- 
1.8.1.4



More information about the anaconda-patches mailing list