From ed44ab182472f25028698ccc685d4eacd602dd79 Mon Sep 17 00:00:00 2001 From: eichehome Date: Mon, 17 Jul 2023 00:01:36 +0200 Subject: [PATCH] =?UTF-8?q?Dateien,=20die=20innerhalb=20des=20arch-chroot?= =?UTF-8?q?=20bearbeitet=20wurden,=20werden=20nun=20von=20Au=C3=9Fen=20bea?= =?UTF-8?q?rbeitet.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.uefi | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/install.uefi b/install.uefi index 6e44d82..5234293 100644 --- a/install.uefi +++ b/install.uefi @@ -52,19 +52,19 @@ 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 +sed -i 's/#\(Color\)/\1/' /mnt/etc/pacman.conf # Umbruch notwendug sed -i 's/#\(ParallelDownloads\s=\s5\)/\1\ -ILoveCandy/' /etc/pacman.conf +ILoveCandy/' /mnt/etc/pacman.conf -sed -i "s/#\(${LANG}\)/\1/" /etc/locale.gen -locale-gen +sed -i "s/#\(${LANG}\)/\1/" /mnt/etc/locale.gen +arch-chroot /mnt locale-gen -echo "LANG=${LANG}" > /etc/locale.conf -echo "KEYMAP=${KEYMAP}" > /etc/vconsole.conf -echo "${HOSTNAME_NEW}" > /etc/hostname +echo "LANG=${LANG}" > /mnt/etc/locale.conf +echo "KEYMAP=${KEYMAP}" > /mnt/etc/vconsole.conf +echo "${HOSTNAME_NEW}" > /mnt/etc/hostname -cat > /etc/hosts << EOF +cat > /mnt/etc/hosts << EOF 127.0.0.1 localhost ::1 localhost 127.0.1.1 ${HOSTNAME_NEW}.localedomain ${HOSTNAME_NEW} @@ -91,16 +91,16 @@ pacman -S gnome gnome-extras gdm avahi bluez bluez-utils pipewire pipewire-audio ################################################################# -sed -i 's/#\(CHARACTER_SET:\).*/\1utf-8/' /etc/lynx.cfg +sed -i 's/#\(CHARACTER_SET:\).*/\1utf-8/' /mnt/etc/lynx.cfg -cat > /etc/xdg/reflector/reflector.conf << EOF +cat > /mnt/etc/xdg/reflector/reflector.conf << EOF --save /etc/pacman.d/mirrorlist --country Germany --protocol https --latest 5 EOF -cat > /etc/doas.conf << EOF +cat > /mnt/etc/doas.conf << EOF permit :wheel permit persist eichehome as root EOF @@ -110,7 +110,7 @@ EOF doas -C /etc/doas.conf && echo "config ok" || echo "config error" sleep 1 -cat > /etc/systemd/resolved.conf.d/disable-multicastDNS.conf << EOF +cat > /mnt/etc/systemd/resolved.conf.d/disable-multicastDNS.conf << EOF [Resolve] MulticastDNS=no EOF @@ -125,14 +125,14 @@ 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 + sed -i 's/MODULES=()/MODULES=(amdgpu)/' /mnt/etc/mkinitcpio.conf #AMD elif [[ ${GRAPHICS_CARD} == "intel" ]]; then - sed -i 's/MODULES=()/MODULES=(i915)/' /etc/mkinitcpio.conf #Intel + sed -i 's/MODULES=()/MODULES=(i915)/' /mnt/etc/mkinitcpio.conf #Intel elif [[ ${GRAPHICS_CARD} == "nvidia" ]]; then - sed -i 's/MODULES=()/MODULES=(nvidia)/' /etc/mkinitcpio.conf #Nvidia + sed -i 's/MODULES=()/MODULES=(nvidia)/' /mnt/etc/mkinitcpio.conf #Nvidia fi -sed -i 's/^HOOKS=(.*)/HOOKS=(base systemd keyboard plymouth autodetect sd-vconsole modconf kms block filesystems fsck)/' /etc/mkinitcpio.conf +sed -i 's/^HOOKS=(.*)/HOOKS=(base systemd keyboard plymouth autodetect sd-vconsole modconf kms block filesystems fsck)/' /mnt/etc/mkinitcpio.conf arch-chroot /mnt mkinitcpio -p "${KERNEL}" @@ -143,7 +143,7 @@ console-mode max editor yes default * EOF -cat > /boot/loader/entries/arch.conf << EOF +cat > /mnt/boot/loader/entries/arch.conf << EOF title Arch Linux version 0.1 linux /vmlinuz-${KERNEL}