Обновить Makefile

This commit is contained in:
dedal.qq 2024-05-10 19:17:49 +03:00
parent bb03e9afea
commit 73416bde41

200
Makefile
View File

@ -1,100 +1,100 @@
include vars include vars
SHELL=/bin/bash SHELL=/bin/bash
ROOT_UUID=$(shell blkid -s UUID -o value $(ROOT-DEV)) ROOT_UUID=$(shell blkid -s UUID -o value $(ROOT-DEV))
KERNEL_ARGS="rd.luks=0 rd.lvm=0 rd.md=0 rd.dm=0 rd.systemd.gpt_auto=no module_blacklist=tpm log_buf_len=4M amd_iommu=off amdgpu.gttsize=8128 spi_amd.speed_dev=1 fbcon=rotate:1 fbcon=vc:4-6" KERNEL_ARGS="rd.luks=0 rd.lvm=0 rd.md=0 rd.dm=0 rd.systemd.gpt_auto=no module_blacklist=tpm log_buf_len=4M amd_iommu=off amdgpu.gttsize=8128 spi_amd.speed_dev=1 fbcon=rotate:1 fbcon=vc:4-6"
mount: mount:
mount $(ROOT-DEV) $(MNT-PATH) mount $(ROOT-DEV) $(MNT-PATH)
mkdir -p $(MNT-PATH)/boot mkdir -p $(MNT-PATH)/boot
mount $(BOOT-DEV) $(MNT-PATH)/boot mount $(BOOT-DEV) $(MNT-PATH)/boot
mkdir -p $(MNT-PATH)/home mkdir -p $(MNT-PATH)/home
mount $(HOME-DEV) $(MNT-PATH)/home mount $(HOME-DEV) $(MNT-PATH)/home
install-packages: install-base install-jupiter install-gnome install-steam install-packages: install-base install-jupiter install-gnome install-steam
system: install-packages configure update-pacman-config user move-conn system: install-packages configure update-pacman-config user move-conn
install-base: install-base:
pacstrap -K -C ./pacman.conf $(MNT-PATH) \ pacstrap -K -C ./pacman.conf $(MNT-PATH) \
core/base \ core/base \
core/mkinitcpio \ core/mkinitcpio \
core/nano \ core/nano \
core/sudo \ core/sudo \
extra/networkmanager \ extra/networkmanager \
extra/zsh \ extra/zsh \
extra/vim \ extra/vim \
extra/noto-fonts \ extra/noto-fonts \
extra/pipewire \ extra/pipewire \
extra/wireplumber \ extra/wireplumber \
extra/pipewire-pulse \ extra/pipewire-pulse \
extra/noise-suppression-for-voice \ extra/noise-suppression-for-voice \
install-gnome: install-gnome:
pacstrap -K -C ./pacman.conf $(MNT-PATH) \ pacstrap -K -C ./pacman.conf $(MNT-PATH) \
extra/gnome \ extra/gnome \
extra/gnome-extra \ extra/gnome-extra \
install-jupiter: install-jupiter:
pacstrap -K -C ./pacman.conf $(MNT-PATH) \ pacstrap -K -C ./pacman.conf $(MNT-PATH) \
jupiter-3.5/linux-neptune-61 \ jupiter-3.5/linux-neptune-61 \
jupiter-3.5/linux-firmware-neptune \ jupiter-3.5/linux-firmware-neptune \
jupiter-3.5/jupiter-legacy-support \ jupiter-3.5/jupiter-legacy-support \
jupiter-3.5/jupiter-fan-control \ jupiter-3.5/jupiter-fan-control \
jupiter-3.5/jupiter-hw-support \ jupiter-3.5/jupiter-hw-support \
jupiter-3.5/steamdeck-dsp \ jupiter-3.5/steamdeck-dsp \
jupiter-3.5/alsa-ucm-conf \ jupiter-3.5/alsa-ucm-conf \
jupiter-3.5/alsa-card-profiles \ jupiter-3.5/alsa-card-profiles \
jupiter-3.5/bluez \ jupiter-3.5/vpower \
jupiter-3.5/bluez-plugins \ jupiter-3.5/vulkan-radeon \
jupiter-3.5/bluez-libs \ jupiter-3.5/lib32-vulkan-radeon \
jupiter-3.5/bluez-utils \ # jupiter-3.5/bluez \
jupiter-3.5/vpower \ # jupiter-3.5/bluez-plugins \
jupiter-3.5/vulkan-radeon \ # jupiter-3.5/bluez-libs \
jupiter-3.5/lib32-vulkan-radeon \ # jupiter-3.5/bluez-utils \
install-steam: install-steam:
pacstrap -K -C ./pacman.conf $(MNT-PATH) \ pacstrap -K -C ./pacman.conf $(MNT-PATH) \
jupiter-3.5/steam-jupiter-stable \ jupiter-3.5/steam-jupiter-stable \
configure: configure:
genfstab -U $(MNT-PATH) >> $(MNT-PATH)/etc/fstab genfstab -U $(MNT-PATH) >> $(MNT-PATH)/etc/fstab
echo steam-deck > $(MNT-PATH)/etc/hostname echo steam-deck > $(MNT-PATH)/etc/hostname
arch-chroot $(MNT-PATH) systemctl enable NetworkManager sshd gdm arch-chroot $(MNT-PATH) systemctl enable NetworkManager bluetooth sshd gdm
arch-chroot $(MNT-PATH) ln -sf /usr/share/zoneinfo/$(TIME-ZONE) /etc/localtime arch-chroot $(MNT-PATH) ln -sf /usr/share/zoneinfo/$(TIME-ZONE) /etc/localtime
#arch-chroot $(MNT-PATH) hwclock --systohc #arch-chroot $(MNT-PATH) hwclock --systohc
arch-chroot $(MNT-PATH) sed -i "s/#ru_RU.UTF-8 UTF-8/ru_RU.UTF-8 UTF-8/g" /etc/locale.gen arch-chroot $(MNT-PATH) sed -i "s/#ru_RU.UTF-8 UTF-8/ru_RU.UTF-8 UTF-8/g" /etc/locale.gen
arch-chroot $(MNT-PATH) sed -i "s/#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g" /etc/locale.gen arch-chroot $(MNT-PATH) sed -i "s/#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g" /etc/locale.gen
arch-chroot $(MNT-PATH) locale-gen arch-chroot $(MNT-PATH) locale-gen
arch-chroot $(MNT-PATH) echo LANG=en_US.UTF-8 > /etc/locale.conf arch-chroot $(MNT-PATH) echo LANG=en_US.UTF-8 > /etc/locale.conf
update-pacman-config: update-pacman-config:
cat valve-repos >> $(MNT-PATH)/etc/pacman.conf cat valve-repos >> $(MNT-PATH)/etc/pacman.conf
echo 'Server = https://mirror.yandex.ru/archlinux/$$repo/os/$$arch' > $(MNT-PATH)/etc/pacman.d/mirrorlist echo 'Server = https://mirror.yandex.ru/archlinux/$$repo/os/$$arch' > $(MNT-PATH)/etc/pacman.d/mirrorlist
user: $(MNT-PATH)/home/$(USER-LOGIN) user: $(MNT-PATH)/home/$(USER-LOGIN)
$(MNT-PATH)/home/$(USER-LOGIN): $(MNT-PATH)/home/$(USER-LOGIN):
arch-chroot $(MNT-PATH) /bin/bash -c "echo "root:$(ROOT-PASSWORD)" | chpasswd" arch-chroot $(MNT-PATH) /bin/bash -c "echo "root:$(ROOT-PASSWORD)" | chpasswd"
arch-chroot $(MNT-PATH) useradd --badname -m -s /bin/zsh $(USER-LOGIN) arch-chroot $(MNT-PATH) useradd --badname -m -s /bin/zsh $(USER-LOGIN)
arch-chroot $(MNT-PATH) /bin/bash -c "echo "$(USER-LOGIN):$(USER-PASSWORD)" | chpasswd" arch-chroot $(MNT-PATH) /bin/bash -c "echo "$(USER-LOGIN):$(USER-PASSWORD)" | chpasswd"
arch-chroot $(MNT-PATH) usermod -a -G wheel $(USER-LOGIN) arch-chroot $(MNT-PATH) usermod -a -G wheel $(USER-LOGIN)
efiloader: efiloader:
efibootmgr \ efibootmgr \
--disk /dev/nvme0n1 \ --disk /dev/nvme0n1 \
--part 9 \ --part 9 \
--create --label "Arch Linux" \ --create --label "Arch Linux" \
--loader /vmlinuz-linux-neptune-61 \ --loader /vmlinuz-linux-neptune-61 \
--unicode 'root=UUID=$(ROOT_UUID) rw initrd=\initramfs-linux-neptune-61.img $(KERNEL_ARGS)' \ --unicode 'root=UUID=$(ROOT_UUID) rw initrd=\initramfs-linux-neptune-61.img $(KERNEL_ARGS)' \
--verbose --verbose
move-conn: move-conn:
cp -r /etc/NetworkManager/system-connections/* $(MNT-PATH)/etc/NetworkManager/system-connections cp -r /etc/NetworkManager/system-connections/* $(MNT-PATH)/etc/NetworkManager/system-connections
clear: clear:
mkdir -p /tmp/pacman mkdir -p /tmp/pacman
rm -rf /tmp/pacman/* rm -rf /tmp/pacman/*
rm -rf $(MNT-PATH)/{bin,dev,etc,lib,lib64,mnt,opt,proc,root,run,sbin,srv,sys,tmp,usr,var} rm -rf $(MNT-PATH)/{bin,dev,etc,lib,lib64,mnt,opt,proc,root,run,sbin,srv,sys,tmp,usr,var}
rm -rf $(MNT-PATH)/boot/* rm -rf $(MNT-PATH)/boot/*