Debug install script

This commit is contained in:
2024-07-12 12:31:26 +02:00
parent 322d33451b
commit 7e15fbad29
4 changed files with 14 additions and 4 deletions

View File

@@ -9,5 +9,5 @@ Arch will be installed on the same disk with btrfs suvolumes for partitions
## Post installation ## Post installation
https://aur.archlinux.org/packages/paru https://aur.archlinux.org/packages/paru
This scripts works with paru. Install it before launching scripts. This scripts works with paru.
This scripts need to be launched as root This scripts need to be launched as root

View File

@@ -62,11 +62,11 @@ pacstrap -c -K /mnt \
#Generate fstab #Generate fstab
genfstab -U /mnt | sed "s/subvolid=[0-9]\{3\},//" > /mnt/etc/fstab genfstab -U /mnt | sed "s/subvolid=[0-9]\{3\},//" > /mnt/etc/fstab
#Configure installation
cd /mnt/bin cd /mnt/bin
ln -s nvim vi ln -s nvim vi
cd cd
#configure minitcpio
sed -i "/^HOOKS/s|block|block encrypt btrfs|" /mnt/etc/mkinitcpio.conf sed -i "/^HOOKS/s|block|block encrypt btrfs|" /mnt/etc/mkinitcpio.conf
sed -i "s|^BINARIES.*|BINARIES=\(btrfs\)|" /mnt/etc/mkinitcpio.conf sed -i "s|^BINARIES.*|BINARIES=\(btrfs\)|" /mnt/etc/mkinitcpio.conf
@@ -82,10 +82,18 @@ arch-chroot /mnt mkinitcpio -P
efibootmgr --create --disk /dev/vda --part 1 --label "Arch Linux" --loader 'arch-linux.efi' efibootmgr --create --disk /dev/vda --part 1 --label "Arch Linux" --loader 'arch-linux.efi'
sed -i 's|^root:.*|root:$y$j9T$BPO20nCgFZ8NuDn6LZ6KU0$681FWXbptNoLEbIKmyRtivt1NCpfPugq0hgtI8lsjCC:19916::::::|' /mnt/etc/shadow
sed -i "s|^#PermitRootLogin.*|PermitRootLogin yes|" /mnt/etc/ssh/sshd_config sed -i "s|^#PermitRootLogin.*|PermitRootLogin yes|" /mnt/etc/ssh/sshd_config
systemctl enable sshd.service systemd-networkd.service systemd-timesyncd.service systemd-resolved.service cat << EOF > /mnt/etc/systemd/network/00-wired.network
sed -i 's|root:|root:$y$j9T$3YRxaoJejVW5Dkn60sKFy1$DPB9WlmivJ4BClaiVz8BOJV8MMp.ZCCz.EHehKH6II3:19916::::::|' /mnt/etc/shadow [Match]
Name=*
[Network]
DHCP=yes
EOF
arch-chroot /mnt systemctl enable sshd.service systemd-networkd.service systemd-timesyncd.service systemd-resolved.service
#umount -R /mnt #umount -R /mnt
#cryptsetup close rootfs #cryptsetup close rootfs

View File

@@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
set -e
_BASENAME=$(basename "$0") _BASENAME=$(basename "$0")
cd "$(dirname "$0")" || _die "Error when changing directory" cd "$(dirname "$0")" || _die "Error when changing directory"

View File