Debug install script
This commit is contained in:
@@ -9,5 +9,5 @@ Arch will be installed on the same disk with btrfs suvolumes for partitions
|
||||
## Post installation
|
||||
|
||||
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
|
||||
@@ -62,11 +62,11 @@ pacstrap -c -K /mnt \
|
||||
#Generate fstab
|
||||
genfstab -U /mnt | sed "s/subvolid=[0-9]\{3\},//" > /mnt/etc/fstab
|
||||
|
||||
#Configure installation
|
||||
cd /mnt/bin
|
||||
ln -s nvim vi
|
||||
cd
|
||||
|
||||
#configure minitcpio
|
||||
sed -i "/^HOOKS/s|block|block encrypt 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'
|
||||
|
||||
sed -i 's|^root:.*|root:$y$j9T$BPO20nCgFZ8NuDn6LZ6KU0$681FWXbptNoLEbIKmyRtivt1NCpfPugq0hgtI8lsjCC:19916::::::|' /mnt/etc/shadow
|
||||
sed -i "s|^#PermitRootLogin.*|PermitRootLogin yes|" /mnt/etc/ssh/sshd_config
|
||||
|
||||
systemctl enable sshd.service systemd-networkd.service systemd-timesyncd.service systemd-resolved.service
|
||||
sed -i 's|root:|root:$y$j9T$3YRxaoJejVW5Dkn60sKFy1$DPB9WlmivJ4BClaiVz8BOJV8MMp.ZCCz.EHehKH6II3:19916::::::|' /mnt/etc/shadow
|
||||
cat << EOF > /mnt/etc/systemd/network/00-wired.network
|
||||
[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
|
||||
#cryptsetup close rootfs
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
_BASENAME=$(basename "$0")
|
||||
cd "$(dirname "$0")" || _die "Error when changing directory"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user