Skip to content
This repository was archived by the owner on May 11, 2021. It is now read-only.

Commit 937e61e

Browse files
author
Lukas Häusermann
committed
updated installation
1 parent 9dcaddb commit 937e61e

File tree

2 files changed

+10
-19
lines changed

2 files changed

+10
-19
lines changed

install.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ KEYMAP="de_CH-latin1"
1212

1313
#DON'T CHANGE ANYTHING BELOW THE LINE
1414
#-------------------------------------------------------------------------------
15-
15+
timedatectl set-ntp true
1616
#------------------
1717
#MAIN INFORMATION |
1818
#------------------
@@ -106,15 +106,15 @@ if [[ "$MIRRORLIST" = "y" ]]; then
106106
vim /etc/pacman.d/mirrorlist
107107
fi
108108
pacstrap /mnt base base-devel
109-
genfstab -p /mnt >> /mnt/etc/fstab
109+
genfstab -U /mnt >> /mnt/etc/fstab
110110

111111
#---------------------
112112
#AFTER INSTALL TASKS |
113113
#---------------------
114114
sed -i "5s/.*/PART_TABLE="$PART_TABLE"/" scripts/chroot.sh
115115
sed -i "10s/.*/HOSTNAME="$HOSTNAME"/" scripts/chroot.sh
116-
sed -i "16s/.*/LOCALTIME="$ZONE"\/"$SUBZONE"/" scripts/chroot.sh
117-
sed -i "38s/.*/KEYMAP="$KEYMAP"/" scripts/chroot.sh
116+
sed -i "17s/.*/LOCALTIME="$ZONE"\/"$SUBZONE"/" scripts/chroot.sh
117+
sed -i "24s/.*/KEYMAP="$KEYMAP"/" scripts/chroot.sh
118118
cp "$PWD"/scripts/chroot.sh /mnt
119119
cp "$PWD"/scripts/user_application.sh /mnt/root
120120
echo -e "\ntype \"./chroot.sh\" to continue the installation"

scripts/chroot.sh

+6-15
Original file line numberDiff line numberDiff line change
@@ -9,34 +9,23 @@
99
#----------------------------------------------------
1010

1111
echo "$HOSTNAME" > /etc/hostname
12+
sed -i "8s/.*/127.0.1.1 "$HOSTNAME".localdomain "$HOSTNAME"/" /etc/hosts
1213

1314
#-----------------------------------------------------
1415
#SET LOCALTIME, IT WILL PASTED HERE FROM install.sh |
1516
#-----------------------------------------------------
1617

1718
ln -sf /usr/share/zoneinfo/"$LOCALTIME" /etc/localtime
18-
19-
#--------------------
20-
#SET HWCLOCK TO UTC |
21-
#--------------------
22-
hwclock --systohc --utc
19+
hwclock --systohc
2320

2421
#------------
2522
#SET LOCALE |
2623
#------------
24+
2725
sed -i 's/#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
2826
locale-gen
29-
30-
#---------------------
31-
#SET LOCALE VARIABLE |
32-
#---------------------
3327
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
4029

4130
#--------------------
4231
#SET NETWORK DEVICE |
@@ -69,10 +58,12 @@ if [[ "$PART_TABLE" = "mbr" ]]; then
6958
grub-install --target=i386-pc --recheck /dev/sda
7059
sed -i 's/GRUB_CMDLINE_LINUX=\"\"/GRUB_CMDLINE_LINUX=\"cryptdevice=\/dev\/sda2:archlinux root=\/dev\/mapper\/archlinux-rootvol\"/' /etc/default/grub
7160
grub-mkconfig -o /boot/grub/grub.cfg
61+
pacman -S intel-ucode --noconfirm
7262
elif [[ "$PART_TABLE" = "gpt" ]]; then
7363
bootctl --path=/boot install
7464
echo -e "default archlinux\ntimeout 3\neditor 0" > /boot/loader/loader.conf
7565
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
7667
fi
7768

7869
#-------------------

0 commit comments

Comments
 (0)