Kommandos, welche im arch-chroot ausgefürt wurden zu Parametern selbigen gemacht.
This commit is contained in:
parent
33d7ac21c6
commit
a2736bb15e
1 changed files with 17 additions and 14 deletions
31
install.uefi
31
install.uefi
|
@ -48,7 +48,9 @@ pacstrap /mnt base linux-firmware vim git "${KERNEL}" "${MICROCODE}" #dracut
|
|||
#arch-chroot /mnt
|
||||
|
||||
# ln -sf "/usr/share/zoneinfo/${TIMEZONE}" /etc/localtime -> L /etc/localtime - - - - "/usr/share/zoneinfo/${TIMEZONE}"
|
||||
ln -sf "/usr/share/zoneinfo/${TIMEZONE}" /etc/localtime
|
||||
arch-chroot /mnt hwclock --systohc
|
||||
arch-chroot /mnt rm -rf /mnt/etc/localtime
|
||||
arch-chroot /mnt ln -sf "/usr/share/zoneinfo/${TIMEZONE}" /mnt/etc/localtime
|
||||
|
||||
sed -i 's/#\(Color\)/\1/' /etc/pacman.conf
|
||||
# Umbruch notwendug
|
||||
|
@ -113,14 +115,14 @@ cat > /etc/systemd/resolved.conf.d/disable-multicastDNS.conf << EOF
|
|||
MulticastDNS=no
|
||||
EOF
|
||||
|
||||
systemctl enable systemd-resolved
|
||||
systemctl enable systemd-timesyncd
|
||||
systemctl enable reflector.timer
|
||||
systemctl enable firewalld
|
||||
systemctl enable fstrim.timer
|
||||
systemctl enable gdm
|
||||
systemctl enable avahi-daemon
|
||||
systemctl enable bluetooth
|
||||
arch-chroot /mnt systemctl enable systemd-resolved
|
||||
arch-chroot /mnt systemctl enable systemd-timesyncd
|
||||
arch-chroot /mnt systemctl enable reflector.timer
|
||||
arch-chroot /mnt systemctl enable firewalld
|
||||
arch-chroot /mnt systemctl enable fstrim.timer
|
||||
arch-chroot /mnt systemctl enable gdm
|
||||
arch-chroot /mnt systemctl enable avahi-daemon
|
||||
arch-chroot /mnt systemctl enable bluetooth
|
||||
|
||||
if [[ ${GRAPHICS_CARD} == "amd" ]]; then
|
||||
sed -i 's/MODULES=()/MODULES=(amdgpu)/' /etc/mkinitcpio.conf #AMD
|
||||
|
@ -132,10 +134,10 @@ fi
|
|||
|
||||
sed -i 's/^HOOKS=(.*)/HOOKS=(base systemd keyboard plymouth autodetect sd-vconsole modconf kms block filesystems fsck)/' /etc/mkinitcpio.conf
|
||||
|
||||
mkinitcpio -p "${KERNEL}"
|
||||
arch-chroot /mnt mkinitcpio -p "${KERNEL}"
|
||||
|
||||
bootctl install
|
||||
cat > /boot/loader/loader.conf << EOF
|
||||
arch-chroot /mnt bootctl install
|
||||
cat > /mnt/boot/loader/loader.conf << EOF
|
||||
timeout 5
|
||||
console-mode max
|
||||
editor yes
|
||||
|
@ -150,7 +152,8 @@ initrd /initramfs-${KERNEL}.img
|
|||
options quiet rw
|
||||
EOF
|
||||
|
||||
useradd -mG wheel "${USERNAME}"
|
||||
echo "${USERNAME}:${USERPASSWORD}" | chpasswd
|
||||
arch-chroot /mnt useradd -mG wheel "${USERNAME}"
|
||||
arch-chroot /mnt chpasswd <<< "${USERNAME}:${USERPASSWORD}"
|
||||
#echo "${USERNAME}:${USERPASSWORD}" | chpasswd
|
||||
|
||||
exit(0)
|
Loading…
Reference in a new issue