|
9 | 9 | #----------------------------------------------------
|
10 | 10 |
|
11 | 11 | echo "$HOSTNAME" > /etc/hostname
|
| 12 | +sed -i "8s/.*/127.0.1.1 "$HOSTNAME".localdomain "$HOSTNAME"/" /etc/hosts |
12 | 13 |
|
13 | 14 | #-----------------------------------------------------
|
14 | 15 | #SET LOCALTIME, IT WILL PASTED HERE FROM install.sh |
|
15 | 16 | #-----------------------------------------------------
|
16 | 17 |
|
17 | 18 | ln -sf /usr/share/zoneinfo/"$LOCALTIME" /etc/localtime
|
18 |
| - |
19 |
| -#-------------------- |
20 |
| -#SET HWCLOCK TO UTC | |
21 |
| -#-------------------- |
22 |
| -hwclock --systohc --utc |
| 19 | +hwclock --systohc |
23 | 20 |
|
24 | 21 | #------------
|
25 | 22 | #SET LOCALE |
|
26 | 23 | #------------
|
| 24 | + |
27 | 25 | sed -i 's/#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
|
28 | 26 | locale-gen
|
29 |
| - |
30 |
| -#--------------------- |
31 |
| -#SET LOCALE VARIABLE | |
32 |
| -#--------------------- |
33 | 27 | echo LANG=en_US.UTF-8 > /etc/locale.conf
|
34 |
| - |
35 |
| -#---------------------------------------------------- |
36 |
| -#SET VCONSOLE, IT WILL PASTED HERE FROM install.sh | |
37 |
| -#---------------------------------------------------- |
38 |
| - |
39 |
| -echo -e "KEYMAP="$KEYMAP"\nFONT=lat9w-16" > /etc/vconsole.conf |
| 28 | +echo -e "KEYMAP="$KEYMAP"" > /etc/vconsole.conf |
40 | 29 |
|
41 | 30 | #--------------------
|
42 | 31 | #SET NETWORK DEVICE |
|
@@ -69,10 +58,12 @@ if [[ "$PART_TABLE" = "mbr" ]]; then
|
69 | 58 | grub-install --target=i386-pc --recheck /dev/sda
|
70 | 59 | sed -i 's/GRUB_CMDLINE_LINUX=\"\"/GRUB_CMDLINE_LINUX=\"cryptdevice=\/dev\/sda2:archlinux root=\/dev\/mapper\/archlinux-rootvol\"/' /etc/default/grub
|
71 | 60 | grub-mkconfig -o /boot/grub/grub.cfg
|
| 61 | + pacman -S intel-ucode --noconfirm |
72 | 62 | elif [[ "$PART_TABLE" = "gpt" ]]; then
|
73 | 63 | bootctl --path=/boot install
|
74 | 64 | echo -e "default archlinux\ntimeout 3\neditor 0" > /boot/loader/loader.conf
|
75 | 65 | echo -e "title archlinux\nlinux /vmlinuz-linux\ninitrd /initramfs-linux.img\noptions cryptdevice=/dev/sda2:archlinux root=/dev/mapper/archlinux-rootvol rw" > /boot/loader/entries/archlinux.conf
|
| 66 | + pacman -S intel-ucode --noconfirm |
76 | 67 | fi
|
77 | 68 |
|
78 | 69 | #-------------------
|
|
0 commit comments