Sophie

Sophie

distrib > Fedora > 18 > x86_64 > media > updates > by-pkgid > 0a46d049c4126efa327400b4fa52da81 > scriptlet

ovirt-node-3.0.0-5.0.fc18.noarch.rpm

PREUN

/bin/sh
/sbin/chkconfig --level 35 netconsole off
if [ $1 -eq 0 ] ; then
    # Package removal, not upgrade
    /bin/systemctl --no-reload disable ovirt-firstboot.service > /dev/null 2>&1 || :
    /bin/systemctl --no-reload disable ovirt.service > /dev/null 2>&1 || :
    /bin/systemctl --no-reload disable ovirt-post.service > /dev/null 2>&1 || :
    /bin/systemctl --no-reload disable ovirt-early.service > /dev/null 2>&1 || :

    /bin/systemctl stop ovirt.service > /dev/null
    /bin/systemctl stop ovirt-post.service > /dev/null
    /bin/systemctl stop ovirt-early.service > /dev/null
fi

POSTIN

/bin/sh
/sbin/chkconfig --level 35 netconsole on
if [ $1 -eq 1 ] ; then
    # Initial installation
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi
# workaround for imgcreate/live.py __copy_efi_files
if [ ! -e /boot/grub/splash.xpm.gz ]; then
  cp /usr/share/ovirt-node/grub-splash.xpm.gz /boot/grub/splash.xpm.gz
fi
#use all hard-coded defaults for multipath
# except for getuid_callout where we need to replace-whitespace on EL6
cat > /etc/multipath.conf << \EOF_multipath_conf2
#Use Defaults
EOF_multipath_conf2

#release info for dracut to pick it up into initramfs
# remove symlink to keep original redhat-release
rm -f /etc/system-release
echo "oVirt Node release 3.0.0 (0)" > /etc/system-release