diff --git a/README.md b/README.md index fc4bee42..9cd74e35 100644 --- a/README.md +++ b/README.md @@ -3,55 +3,6 @@ This repo is a documentation of how I installed Arch and got all the drivers for Since I got the [touchpad issues](https://www.reddit.com/r/Lenovo/comments/yzs5fq/faulty_touchpad_tried_everything_to_fix_it_and_i/), I'll need this once I get it fixed.

-# Local Pacman repo -The latest linux kernels do not have the laptop's Wifi card's drivers, therefore I'll need a [custom repository](https://wiki.archlinux.org/title/Pacman/Tips_and_tricks#Installing_packages_from_a_CD/DVD_or_USB_stick) to complete the ach installation. - -
-Repo Packages - -``` -base -linux-firmware -linux -amd-ucode - -patch -dkms -kmod -rtw89-dkms-git -btrfs-progs - -grub -os-prober -ntfs-3g -efibootmgr -efivar - -iwd -nano -sudo -texinfo -man-db -``` -
-

- -On a separate Arch installation with Wifi access, enter the following commands in a clean directory in a USB key : -``` -git clone https://aur.archlinux.org/rtw89-dkms-git.git -cd rtw89-dkms-git -makepkg -mv *.pkg.tar.zst .. -cd .. && sudo rm -r rtw89-dkms-git - -mkdir /tmp/blankdb - -pacman -Syw --cachedir . --dbpath /tmp/blankdb base linux-firmware linux amd-ucode patch dkms kmod btrfs-progs grub os-prober ntfs-3g efibootmgr efivar iwd nano sudo texinfo man-db man-pages - -repo-add ./custom.db.tar.gz ./* -``` -

- # Archinstaller loadkeys ca @@ -69,9 +20,8 @@ loadkeys ca ``` ### Installing packages on the device -mount usb key and edit pacman.conf ``` -# pacstrap -K /mnt base linux-firmware linux amd-ucode patch dkms kmod rtw89-dkms-git btrfs-progs grub os-prober ntfs-3g efibootmgr efivar iwd nano sudo texinfo man-db man-pages +# pacstrap -K /mnt base linux-firmware linux amd-ucode patch dkms kmod btrfs-progs grub os-prober ntfs-3g efibootmgr efivar iwd nano sudo texinfo man-db man-pages ``` ## Preparing for chroot diff --git a/scripts/archinstaller.sh b/scripts/archinstaller.sh index 9e22998e..f3293910 100755 --- a/scripts/archinstaller.sh +++ b/scripts/archinstaller.sh @@ -10,12 +10,9 @@ mkfs.btrfs /dev/mapper/root mount /dev/mapper/root /mnt mount --mkdir /dev/nvme0n1p1 /mnt/boot -mount --mkdir /dev/sda$KEY usb -mv /etc/pacman.conf{,.bak} -mv ./pacman.conf /etc pacman -Syu -pacstrap -K /mnt base linux-firmware linux amd-ucode patch dkms kmod rtw89-dkms-git btrfs-progs grub os-prober ntfs-3g efibootmgr efivar iwd nano sudo texinfo man-db man-pages +pacstrap -K /mnt base linux-firmware linux amd-ucode patch dkms kmod btrfs-progs grub os-prober ntfs-3g efibootmgr efivar iwd nano sudo texinfo man-db man-pages genfstab -U /mnt >> /mnt/etc/fstab arch-chroot /mnt \ No newline at end of file diff --git a/scripts/pacman.conf b/scripts/pacman.conf deleted file mode 100644 index df455ffd..00000000 --- a/scripts/pacman.conf +++ /dev/null @@ -1,76 +0,0 @@ -# -# /etc/pacman.conf -# -# See the pacman.conf(5) manpage for option and repository directives - -# -# GENERAL OPTIONS -# -[options] -# The following paths are commented out with their default values listed. -# If you wish to use different paths, uncomment and update the paths. -#RootDir = / -#DBPath = /var/lib/pacman/ -#CacheDir = /var/cache/pacman/pkg/ -#LogFile = /var/log/pacman.log -#GPGDir = /etc/pacman.d/gnupg/ -#HookDir = /etc/pacman.d/hooks/ -HoldPkg = pacman glibc -#XferCommand = /usr/bin/curl -L -C - -f -o %o %u -#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u -#CleanMethod = KeepInstalled -Architecture = auto - -# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup -#IgnorePkg = -#IgnoreGroup = - -#NoUpgrade = -#NoExtract = - -# Misc options -#UseSyslog -Color -#NoProgressBar -CheckSpace -#VerbosePkgLists -#ParallelDownloads = 5 - -# By default, pacman accepts packages signed by keys that its local keyring -# trusts (see pacman-key and its man page), as well as unsigned packages. -SigLevel = Never -LocalFileSigLevel = Never -#RemoteFileSigLevel = Required - -# NOTE: You must run `pacman-key --init` before first using pacman; the local -# keyring can then be populated with the keys of all official Arch Linux -# packagers with `pacman-key --populate archlinux`. - -# -# REPOSITORIES -# - can be defined here or included from another file -# - pacman will search repositories in the order defined here -# - local/custom mirrors can be added here or in separate files -# - repositories listed first will take precedence when packages -# have identical names, regardless of version number -# - URLs will have $repo replaced by the name of the current repo -# - URLs will have $arch replaced by the name of the architecture -# -# Repository entries are of the format: -# [repo-name] -# Server = ServerName -# Include = IncludePath -# -# The header [repo-name] is crucial - it must be present and -# uncommented to enable the repo. -# - -# The testing repositories are disabled by default. To enable, uncomment the -# repo name header and Include lines. You can add preferred servers immediately -# after the header, and they will be used before the default mirrors. - -# An example of a custom package repository. See the pacman manpage for -# tips on creating your own repositories. -[custom] -SigLevel = Never -Server = file:///root/usb