fixed i18n for systemd and include more config files in host-only

master
Harald Hoyer 2012-06-21 09:24:44 +02:00
parent 579ca216b4
commit ee876e03b9
2 changed files with 16 additions and 3 deletions

View File

@ -2,6 +2,8 @@
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh

[ -x /lib/systemd/systemd-vconsole-setup ] && exit 0

[ -e /etc/vconsole.conf ] && . /etc/vconsole.conf

DEFAULT_FONT=LatArCyrHeb-16

View File

@ -7,7 +7,8 @@ check() {
if [[ -x /lib/systemd/systemd ]] || [[ -x /usr/lib/systemd/systemd ]]; then
return 255
fi
pkg-config systemd --variable=systemdutildir >/dev/null && return 255
[[ $systemdutildir ]] && return 255

return 1
}

@ -69,6 +70,7 @@ install() {
$systemdsystemunitdir/systemd-vconsole-setup.service \
$systemdsystemunitdir/sysinit.target.wants/systemd-modules-load.service \
$systemdsystemunitdir/sysinit.target.wants/systemd-ask-password-console.path \
$systemdsystemunitdir/sysinit.target.wants/systemd-vconsole-setup.service \
$systemdsystemunitdir/sysinit.target.wants/systemd-journald.service \
$systemdsystemunitdir/sockets.target.wants/systemd-initctl.socket \
$systemdsystemunitdir/sockets.target.wants/systemd-shutdownd.socket \
@ -77,7 +79,6 @@ install() {
$systemdsystemunitdir/sockets.target.wants/systemd-journald.socket \
$systemdsystemunitdir/sysinit.target.wants/systemd-udev.service \
$systemdsystemunitdir/sysinit.target.wants/systemd-udev-trigger.service \
$systemdsystemunitdir/local-fs.target.wants/tmp.mount \
$systemdsystemunitdir/ctrl-alt-del.target \
$systemdsystemunitdir/single.service \
$systemdsystemunitdir/syslog.socket \
@ -101,6 +102,17 @@ install() {

dracut_install journalctl systemctl echo

if [[ $hostonly ]]; then
dracut_install -o /etc/systemd/journald.conf \
/etc/systemd/system.conf \
/etc/hostname \
/etc/machine-id \
/etc/vconsole.conf \
/etc/locale.conf
else
> "$initdir/etc/machine-id"
fi

ln -fs $systemdutildir/systemd "$initdir/init"

rm -f "${initdir}${systemdsystemunitdir}/emergency.service"
@ -136,6 +148,5 @@ install() {
mkdir -p "${initdir}${systemdsystemunitdir}/initrd-switch-root.target.wants"
ln -s ../dracut-pre-pivot.service "${initdir}${systemdsystemunitdir}/initrd-switch-root.target.wants/dracut-pre-pivot.service"

> "$initdir/etc/machine-id"
}