first steps
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
pacman-key --init && pacman-key --populate archlinux && pacman -Sy git --noconfirm && git clone https://git.xkrs.ru/astraleuro/arch-install.git && cd arch-install
|
mount -t nfs -o nfsvers=4 192.168.11.105:/srv/pacman-cache /var/cache/pacman/pkg && pacman-key --init && pacman-key --populate archlinux && pacman -Sy git --noconfirm && git clone https://git.xkrs.ru/astraleuro/arch-install.git && cd arch-install
|
||||||
|
|
||||||
mount -t nfs -o nfsvers=4 192.168.11.105:/srv/pacman-cache /var/cache/pacman/pkg
|
mount -t nfs -o nfsvers=4 192.168.11.105:/srv/pacman-cache /var/cache/pacman/pkg
|
||||||
|
|
||||||
|
|||||||
14
final.sh
14
final.sh
@@ -1,6 +1,14 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source .env
|
source .env
|
||||||
|
mount -o remount,size=4G /run/archiso/cowspace
|
||||||
|
|
||||||
|
complele_install_script_generator() {
|
||||||
|
cat <<- 'SCRIPT_EOF'
|
||||||
|
#!/bin/bash
|
||||||
|
pacman -Syu nvidia-utils
|
||||||
|
SCRIPT_EOF
|
||||||
|
}
|
||||||
|
|
||||||
# === DISKS PREPARE ===
|
# === DISKS PREPARE ===
|
||||||
disks_prepare() {
|
disks_prepare() {
|
||||||
@@ -67,7 +75,7 @@ install_system() {
|
|||||||
_DATA_PARTUUID=$(blkid -s PARTUUID -o value /dev/${_SYS_DEV}3)
|
_DATA_PARTUUID=$(blkid -s PARTUUID -o value /dev/${_SYS_DEV}3)
|
||||||
_HEADER_PARTUUID=$(blkid -s PARTUUID -o value /dev/${_HEADER_DEV}1)
|
_HEADER_PARTUUID=$(blkid -s PARTUUID -o value /dev/${_HEADER_DEV}1)
|
||||||
|
|
||||||
pacstrap -c -K /mnt base base-devel linux linux-firmware btrfs-progs mdadm nano sof-firmware intel-ucode nvidia-utils iwd dhcpcd vim cryptsetup networkmanager openssh efibootmgr git ly
|
pacstrap -c -K /mnt base base-devel linux linux-firmware btrfs-progs mdadm nano sof-firmware intel-ucode iwd dhcpcd vim cryptsetup networkmanager openssh efibootmgr git ly
|
||||||
|
|
||||||
genfstab -U /mnt >> /mnt/etc/fstab
|
genfstab -U /mnt >> /mnt/etc/fstab
|
||||||
arch-chroot /mnt /bin/bash <<EOF
|
arch-chroot /mnt /bin/bash <<EOF
|
||||||
@@ -84,7 +92,7 @@ install_system() {
|
|||||||
printf "title Arch Linux\nlinux /vmlinuz-linux\ninitrd /intel-ucode.img\ninitrd /initramfs-linux.img\noptions rd.luks.name=${_LUKS_UUID}=cryptroot rd.luks.data=${_LUKS_UUID}=/dev/disk/by-partuuid/${_DATA_PARTUUID} rd.luks.options=${_LUKS_UUID}=header=/dev/disk/by-partuuid/${_HEADER_PARTUUID} root=/dev/mapper/cryptroot rw rootflags=subvol=@" > /boot/loader/entries/arch.conf
|
printf "title Arch Linux\nlinux /vmlinuz-linux\ninitrd /intel-ucode.img\ninitrd /initramfs-linux.img\noptions rd.luks.name=${_LUKS_UUID}=cryptroot rd.luks.data=${_LUKS_UUID}=/dev/disk/by-partuuid/${_DATA_PARTUUID} rd.luks.options=${_LUKS_UUID}=header=/dev/disk/by-partuuid/${_HEADER_PARTUUID} root=/dev/mapper/cryptroot rw rootflags=subvol=@" > /boot/loader/entries/arch.conf
|
||||||
|
|
||||||
# Правим хуки
|
# Правим хуки
|
||||||
sed -i 's/^HOOKS=(.*/HOOKS=(base systemd autodetect microcode modconf kms keyboard keymap sd-vconsole block sd-encrypt filesystems fsck)/' /etc/mkinitcpio.conf
|
sed -i 's/^HOOKS=(.*/HOOKS=(base systemd autodetect microcode modconf kms keyboard sd-vconsole block sd-encrypt filesystems fsck)/' /etc/mkinitcpio.conf
|
||||||
|
|
||||||
mkinitcpio -P
|
mkinitcpio -P
|
||||||
|
|
||||||
@@ -114,4 +122,4 @@ echo "DONE! "
|
|||||||
#umount -R /mnt
|
#umount -R /mnt
|
||||||
#cryptsetup close cryptroot
|
#cryptsetup close cryptroot
|
||||||
#mdadm --stop /dev/md0
|
#mdadm --stop /dev/md0
|
||||||
reboot
|
#reboot
|
||||||
|
|||||||
Reference in New Issue
Block a user