systemd: the hook is now in kernal packages

This commit is contained in:
Chaoting Liu 2018-06-26 05:03:28 +01:00
parent 9a8c387e69
commit 0157a3a7b6
2 changed files with 1 additions and 21 deletions

View File

@ -5,7 +5,7 @@ pkgname=('systemd' 'libsystemd')
# Can be from either systemd or systemd-stable
_commit='f398c546c6fc43121131f41acec56b5a851bd35e'
pkgver=238.76
pkgrel=3
pkgrel=4
arch=('x86_64')
url="https://www.github.com/systemd/systemd"
makedepends=('acl' 'cryptsetup' 'docbook-xsl' 'gperf' 'lz4' 'xz' 'pam' 'libelf'

View File

@ -54,24 +54,6 @@ post_install() {
chgrp systemd-journal-remote var/log/journal/remote
}
# Do not remove this. otherwise next reboot will have mismatched systemd,
# which may make system fail to start some services. Unless we have proper
# hook in pacman (not yet because it's in pacman 5).
update_image() {
if which mkinitcpio >/dev/null 2>&1; then
echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..."
echo ">>> If you are using non-default kernel, you should update kernel"
echo ">>> manually"
if [ -f etc/mkinitcpio.d/linux-CHAKRA.preset ]; then
mkinitcpio -p linux-CHAKRA
fi
if [ -f etc/mkinitcpio.d/linux-CHAKRA-LTS.preset ]; then
mkinitcpio -p linux-CHAKRA-LTS
fi
fi
}
post_upgrade() {
post_common "$@"
@ -86,6 +68,4 @@ post_upgrade() {
"_${v//-/_}_changes"
fi
done
update_image
}