diff options
author | Juan RP <xtraeme@gmail.com> | 2014-05-23 11:30:24 +0200 |
---|---|---|
committer | Juan RP <xtraeme@gmail.com> | 2014-05-23 11:30:24 +0200 |
commit | 3b5b9cba6a69b191faccae4d8c798b5fc84dc704 (patch) | |
tree | 4e1478ff392a4917a2f9f81a6e41a7f369579ede /dracut/locale.sh | |
parent | 11e39d0fbc5de4c9ada783c34f9d02bee74d21d0 (diff) | |
download | hrmpf-3b5b9cba6a69b191faccae4d8c798b5fc84dc704.tar.gz hrmpf-3b5b9cba6a69b191faccae4d8c798b5fc84dc704.tar.xz hrmpf-3b5b9cba6a69b191faccae4d8c798b5fc84dc704.zip |
mklive: do not assume glibc and/or systemd (might use musl and runit instead :-).
Diffstat (limited to 'dracut/locale.sh')
-rw-r--r-- | dracut/locale.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/dracut/locale.sh b/dracut/locale.sh index bad138b..d7f5190 100644 --- a/dracut/locale.sh +++ b/dracut/locale.sh @@ -14,4 +14,9 @@ echo "LC_COLLATE=C" >> $NEWROOT/etc/locale.conf # set keymap too. KEYMAP=$(getarg vconsole.keymap) [ -z "$KEYMAP" ] && KEYMAP="us" -sed -e "s,^KEYMAP=.*,KEYMAP=$KEYMAP," -i $NEWROOT/etc/vconsole.conf + +if [ -f ${NEWROOT}/etc/vconsole.conf ]; then + sed -e "s,^KEYMAP=.*,KEYMAP=$KEYMAP," -i $NEWROOT/etc/vconsole.conf +elif [ -f ${NEWROOT}/etc/rc.conf ]; then + sed -e "s,^KEYMAP=.*,KEYMAP=$KEYMAP," -i $NEWROOT/etc/rc.conf.conf +fi |