Skip to content

Commit

Permalink
fix(pre-install): 添加本地化配置;添加日志
Browse files Browse the repository at this point in the history
  • Loading branch information
CloudSen committed Jul 26, 2020
1 parent 172dad5 commit 67b31e0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pre_install_chroot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ function configSystem() {
mv /etc/locale.gen /etc/locale.gen.bak
source .${templatePath}/locale_gen_template.sh > etc/locale.gen
locale-gen &>>${infoPath}
echo "LANG=\"en_US.UTF-8\"" >> /etc/locale.conf

echo "[ PRE-INSTALL ] Setting hostname ${hostName} ..." >> ${infoPath}
echo ${hostName} > /etc/hostname
Expand Down Expand Up @@ -57,8 +58,8 @@ function createUser() {

function configGrub() {
echo "[CONFIG-GRUB] --------------------" >> ${infoPath}
grub-install --target=i386-pc ${grubDevice}
grub-mkconfig -o /boot/grub/grub.cfg
grub-install --target=i386-pc ${grubDevice} &>> ${infoPath}
grub-mkconfig -o /boot/grub/grub.cfg &>> ${infoPath}
}

function installDone() {
Expand Down

0 comments on commit 67b31e0

Please sign in to comment.