diff options
author | Tom Gundersen <teg@jklm.no> | 2012-06-16 02:22:07 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2012-06-16 02:34:05 +0200 |
commit | f57e6f1d0d767cebebc10075276cd02f0233655c (patch) | |
tree | 06c460ff69ef3f8cc84364cf134129e126e9c117 | |
parent | cef9b198f20d25ba93c0d1dfc030951157c5e973 (diff) | |
download | initscripts-f57e6f1d0d767cebebc10075276cd02f0233655c.tar.xz |
rc.sysinit: change ordering a bit
Export LANG as early as possible. Then start the log. Then setup the console.
Signed-off-by: Tom Gundersen <teg@jklm.no>
-rwxr-xr-x | rc.sysinit | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -6,6 +6,12 @@ . /etc/rc.conf . /etc/rc.d/functions +if [[ -s /etc/locale.conf ]]; then + parse_envfile /etc/locale.conf "LANG" +elif [[ $LOCALE ]]; then + export LANG=$LOCALE +fi + echo " " printhl "Arch Linux\n" printhl "${C_H2}http://www.archlinux.org" @@ -26,6 +32,11 @@ mountpoint -q /dev/shm || mount /dev/shm &>/dev/null || mountpoint -q /proc/sys/fs/binfmt_misc || mount /proc/sys/fs/binfmt_misc &>/dev/null || mount -t binfmt_misc binfmt /proc/sys/fs/binfmt_misc +# log all console messages +bootlogd -p /run/bootlogd.pid + +status 'Configuring Virtual Consoles' /usr/lib/systemd/systemd-vconsole-setup + if [[ ! -e /run/initramfs/root-fsck ]]; then # remount root ro to allow for fsck later on, we remount now to # make sure nothing can open files rw on root which would block a remount @@ -35,9 +46,6 @@ fi run_hook sysinit_start -# log all console messages -bootlogd -p /run/bootlogd.pid - HWCLOCK_PARAMS="--systz" case $HARDWARECLOCK in "") ;; @@ -65,14 +73,6 @@ fi # Start/trigger UDev, load MODULES and settle UDev udevd_modprobe sysinit -if [[ -s /etc/locale.conf ]]; then - parse_envfile /etc/locale.conf "LANG" -elif [[ $LOCALE ]]; then - export LANG=$LOCALE -fi - -status 'Configuring Virtual Consoles' /usr/lib/systemd/systemd-vconsole-setup - # bring up the loopback interface [[ -d /sys/class/net/lo ]] && status "Bringing up loopback interface" ip link set up dev lo |