-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinside_chroot.sh
More file actions
29 lines (25 loc) · 933 Bytes
/
inside_chroot.sh
File metadata and controls
29 lines (25 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Устанавливаем время
ln -sf /usr/share/zoneinfo/Europe/Moscow /etc/localtime
# Локаль
printf "\n•Установка локализации.\nСнять комментарии с следующих строк:\n en_US.UTF-8\n ru_RU.UTF-8\n"
read
micro /etc/locale.gen
locale-gen
echo LANG=en_US.UTF-8 > /etc/locale.conf
export LANG=en_US.UTF-8
# Задать имя ПК
printf "\n•Введите имя ПК: \n"
read pc_hostname
echo $pc_hostname > /etc/hostname
echo "127.0.0.1 localhost" >> /etc/hosts
echo "::1 localhost" >> /etc/hosts
echo "127.0.1.1 "$pc_hostname >> /etc/hosts
# Пароль рута
printf "\n•Введите пароль суперпользователя: \n"
passwd
# Загрузчик
pacman -S --noconfirm grub efibootmgr mtools
mkdir /boot/efi
mount /dev/sda1 /boot/efi
grub-install --target=x86_64-efi --bootloader-id=grub_uefi
grub-mkconfig -o /boot/grub/grub.cfg