add config files for systemd

This commit is contained in:
Tobias Powalowski 2012-06-01 21:07:27 +02:00
parent fef2718cb2
commit a9915dad13

View file

@ -5162,7 +5162,7 @@ auto_parameters() {
fi fi
fi fi
else else
if [[ -s /tmp/.keymap ]]; then if [[ -s /tmpif [[ "${SYSTEMD}" = "1" ]]; then/.keymap ]]; then
DIALOG --infobox "Setting the keymap: $(cat /tmp/.keymap | sed -e 's/\..*//g') in rc.conf ..." 0 0 DIALOG --infobox "Setting the keymap: $(cat /tmp/.keymap | sed -e 's/\..*//g') in rc.conf ..." 0 0
sed -i -e "s/^KEYMAP=.*/KEYMAP=\"$(cat /tmp/.keymap | sed -e 's/\..*//g')\"/g" ${DESTDIR}/etc/rc.conf sed -i -e "s/^KEYMAP=.*/KEYMAP=\"$(cat /tmp/.keymap | sed -e 's/\..*//g')\"/g" ${DESTDIR}/etc/rc.conf
fi fi
@ -5216,6 +5216,17 @@ auto_ftpmirror() {
fi fi
} }
auto_systemd () {
if [[ "${SYSTEMD}" = "1" ]]; then
if [[ ! -f ${DESTDIR}/etc/hostname ]]; then
echo "myhostname" > ${DESTDIR}/etc/hostname
fi
if [[ ! -f ${DESTDIR}/etc/locale.conf ]]; then
echo "LANG=en_US.utf8" > ${DESTDIR}/etc/locale.conf
echo "LC_COLLATE=C" >> ${DESTDIR}/etc/locale.conf
fi
}
configure_system() { configure_system() {
destdir_mounts || return 1 destdir_mounts || return 1
## PREPROCESSING ## ## PREPROCESSING ##
@ -5225,6 +5236,7 @@ configure_system() {
auto_network auto_network
auto_parameters auto_parameters
auto_fb auto_fb
auto_systemd
auto_hwdetect auto_hwdetect
fi fi
## END PREPROCESS ## ## END PREPROCESS ##
@ -5243,7 +5255,7 @@ configure_system() {
DIALOG ${DEFAULT} --menu "Configuration" 23 80 18 \ DIALOG ${DEFAULT} --menu "Configuration" 23 80 18 \
"/etc/hostname" "System Hostname" \ "/etc/hostname" "System Hostname" \
"/etc/vconsole.conf" "Virtual Console" \ "/etc/vconsole.conf" "Virtual Console" \
"/etc/locale" "Locale Setting" \ "/etc/locale.conf" "Locale Setting" \
"/etc/timezone" "Timezone Setting" \ "/etc/timezone" "Timezone Setting" \
"/etc/fstab" "Filesystem Mountpoints" \ "/etc/fstab" "Filesystem Mountpoints" \
"/etc/mkinitcpio.conf" "Initramfs Config" \ "/etc/mkinitcpio.conf" "Initramfs Config" \