From a2736bb15e0c8fcb0cc1d3ef03abe43e919692c3 Mon Sep 17 00:00:00 2001 From: eichehome Date: Sun, 16 Jul 2023 23:58:36 +0200 Subject: [PATCH] =?UTF-8?q?Kommandos,=20welche=20im=20arch-chroot=20ausgef?= =?UTF-8?q?=C3=BCrt=20wurden=20zu=20Parametern=20selbigen=20gemacht.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.uefi | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/install.uefi b/install.uefi index 06b3a04..6e44d82 100644 --- a/install.uefi +++ b/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) \ No newline at end of file