From 7d18622a3b2a42138b104d71d8c8a35620a014fc Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Fri, 16 Sep 2022 20:35:58 +0300 Subject: [PATCH] Remove more unneeded and old files --- deploy.sh | 73 -------- efistub/arch.efi | 12 -- efistub/lts.efi | 12 -- efistub/update.sh | 14 -- pkglist | 187 -------------------- root/boot/loader/{README.md => README.adoc} | 5 +- 6 files changed, 3 insertions(+), 300 deletions(-) delete mode 100755 deploy.sh delete mode 100755 efistub/arch.efi delete mode 100755 efistub/lts.efi delete mode 100755 efistub/update.sh delete mode 100644 pkglist rename root/boot/loader/{README.md => README.adoc} (51%) diff --git a/deploy.sh b/deploy.sh deleted file mode 100755 index 2c63408e..00000000 --- a/deploy.sh +++ /dev/null @@ -1,73 +0,0 @@ -#!/bin/zsh - -# This is a script that should be ran once -# on a new system. Dotdrop will take it from there. -# It is higly tailored to my own needs and -# you (the random person on the internet) should probably not run it - -export DOTREPO="$HOME/git/dotfiles" -DISTRO="$(lsb_release -ds | sed 's/"//g')" - -PKGLIST="python-ruamel-yaml python-magic-git python-jinja python-docopt" - -if [ -d $DOTREPO ]; then - print "Dotfile repository already exists, exiting..." - exit 1 -fi - -if [ "$DISTRO" -ne "Arch Linux" ]; then - print "Not running on Arch Linux" - print "Other distros not supported, exiting..." - exit 1 -fi - -# install neovim if not installed -if ! [ -x "$(command -v nvim)" ]; then - read -p "Install neovim? [Y/n] " -i "y" INVIM - if [ "$(tr '[:upper:]' ':lower:' $INVIM)" -eq "y" ]; then - print "Installing neovim" - PKGLIST=$PKGLIST + " neovim neovim-dropin" - fi -fi - -# install zsh if not installed -if ! [ -x "$(command -v zsh)" ]; then - read -p "Install zsh? [Y/n] " -i "y" IZSH - if [ "$(tr '[:upper:]' ':lower:' $INVIM)" -eq "y" ]; then - print "Installing zsh" - PKGLIST=$PKGLIST + " zsh" - fi -fi - -# install paru if not installed -if ! [ -x "$(command -v paru)" ]; then - read -p "Install paru? [Y/n] " -i "y" IYAY - if [ "$(tr '[:upper:]' ':lower:' $IYAY)" -eq "y" ]; then - print "Installing paru" - sudo pacman -Syu --needed --noconfirm git wget base-devel - cd - wget https://aur.archlinux.org/cgit/aur.git/snapshot/paru-bin.tar.gz - tar xfv paru-bin.tar.gz - cd paru-bin - makepkg -si --noconfirm - cd .. - rm -r paru* - fi -fi - -if [ $PKGLIST -ne "" ] - if ! [ -x "$(command -v paru)" ]; then - print "Can't continue without paru" - - paru -S $PKGLIST - fi -fi - -mkdir ~/git -git clone https://git.korhonen.cc/ReekyMarko/dotfiles.git $DOTREPO -cd ~/git/dotfiles -git submodule init -git submodule update -$DOTREPO/dotdrop.sh --cfg=$DOTREPO/config-home.yaml install -chsh -s /bin/zsh -zsh -c "source ~/.zshrc; sdotdrop install" diff --git a/efistub/arch.efi b/efistub/arch.efi deleted file mode 100755 index 01a57c76..00000000 --- a/efistub/arch.efi +++ /dev/null @@ -1,12 +0,0 @@ -#/bin/bash -# vim:ft=sh - -sudo efibootmgr \ - --disk /dev/sda \ - --part 1 \ - --create \ - --quiet \ - --remove-dups \ - --label "Arch Linux" \ - --loader /vmlinuz-linux \ - --unicode 'initrd=\amd-ucode.img initrd=\initramfs-linux.img cryptdevice=UUID=19fa8fab-c5fe-454a-9a17-b7185ce975ea:cryptroot:allow-discards root=/dev/mapper/cryptroot rootflags=subvol=root resume=/dev/mapper/cryptroot resume_offset=10530935 rw quiet splash vga=current idle=nomwait amdgpu.ppfeaturemask=0xffffffff' diff --git a/efistub/lts.efi b/efistub/lts.efi deleted file mode 100755 index e2b91ebd..00000000 --- a/efistub/lts.efi +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash -# vim:ft=sh - -sudo efibootmgr \ - --disk /dev/sda \ - --part 1 \ - --create \ - --quiet \ - --remove-dups \ - --label "Arch Linux LTS" \ - --loader /vmlinuz-linux-lts \ - --unicode 'initrd=\amd-ucode.img initrd=\initramfs-linux-lts.img cryptdevice=UUID=19fa8fab-c5fe-454a-9a17-b7185ce975ea:cryptroot:allow-discards root=/dev/mapper/cryptroot rootflags=subvol=root resume=/dev/mapper/cryptroot resume_offset=10530935 rw quiet splash vga=current idle=nomwait amdgpu.ppfeaturemask=0xffffffff' diff --git a/efistub/update.sh b/efistub/update.sh deleted file mode 100755 index 448eefdd..00000000 --- a/efistub/update.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -# remove old entries -for bootentry in $(efibootmgr | head -n 3 | tail -n 1 | cut -d' ' -f2- | sed 's/,/\n/g'); do - sudo efibootmgr -qBb $bootentry -done - -# add all entries back -for bootscript in *.efi; do - ./$bootscript -done - -# set bootorder -sudo efibootmgr --bootorder 0000,0001 diff --git a/pkglist b/pkglist deleted file mode 100644 index 054861e7..00000000 --- a/pkglist +++ /dev/null @@ -1,187 +0,0 @@ -aic94xx-firmware -alacritty -alacritty-terminfo -alsa-utils -amd-ucode -asciiquarium -autoconf -automake -bash -bash-language-server -binutils -bison -blueberry -bluez-utils -bzip2 -ccid -chromium -clipman -clutter -coreutils -cpupower -cryptsetup -device-mapper -dhcpcd -diffutils -discord -dmenu -dolphin -drill-search-cli -e2fsprogs -evolution -evolution-decsync -fakeroot -ffmpeg-amd-full-git -file -file-roller -filesystem -findutils -firefox-nightly -fmui-git -fzf -gawk -gcc -gcc-libs -gettext -git -glibc -gnome-keyring -gotop-bin -grep -grim -gzip -imv -inetutils -iproute2 -iputils -iwd -jfsutils -kdeconnect -kdenlive -kodi-wayland -less -lib32-libva-mesa-driver -lib32-mesa -lib32-vulkan-radeon -libva-mesa-driver -licenses -light -linux -linux-firmware -locale-en_xx -logrotate -ls_extended -lvm2 -lxappearance -make -mako -man-db -man-pages -matcha-gtk-theme -mdadm -mimeo -mkinitcpio-welcomemessage -mpd -mpdris2-py3-git -mpdscribble -mpv-acestream -mpv-amd-full-git -mpv-mpris -mumble -nano -nautilus -ncmpcpp -neofetch -neovim -netctl -nodejs -noto-fonts -numix-icon-theme-git -opensc -openssh -otf-overpass -pacman -pacserve -pass-otp -pass-wl-clipboard -passdmenu -patch -pavucontrol -pciutils -perl -pkgconf -playerctl -polkit-gnome -powertop -procps-ng -psmisc -pulseaudio-ctl -python-docopt -python-jinja -python-ruamel-yaml -qt5-styleplugins -qt5-wayland -qt5ct -ranger -redshift-wlr-gamma-control -reflector -reiserfsprogs -ripgrep -rofi-pass -rtv -ryzenadj-git -s-nail -sed -shadow -sl -slurp -socat -steam -steam-native-runtime -sudo -sway -swaybg -swayidle -swaylock-effects-git -syncthing -syncthing-gtk -sysfsutils -systemd-boot-pacman-hook -systemd-resolvconf -systemd-sysvcompat -tar -telegram-desktop -texinfo -thefuck -tlp -tmux -trash-cli -ttf-dejavu -ttf-font-awesome -ttf-mac-fonts -ttf-nerd-fonts-hack-complete-git -usbutils -util-linux -vi -vulkan-radeon -w3m -waybar-git -wayland -wd719x-firmware -wf-recorder-git -wget -which -wl-clipboard-git -wl-clipboard-x11 -xcursor-breeze -xdg-utils-mimeo -xf86-video-amdgpu -xfsprogs -xorg-server-xwayland -xorg-xeyes -yarn -yay-bin -ydotool-git -youtube-dl -zathura-pdf-mupdf -zsh diff --git a/root/boot/loader/README.md b/root/boot/loader/README.adoc similarity index 51% rename from root/boot/loader/README.md rename to root/boot/loader/README.adoc index f0138427..6db6b4a1 100644 --- a/root/boot/loader/README.md +++ b/root/boot/loader/README.adoc @@ -1,2 +1,3 @@ -I don't use systemd-boot on my main system anymore but this is here for reference -when I'm setting up new systems. += Notice +I don't use systemd-boot on my main system anymore but this is here for +reference when I'm setting up new systems.