Обновить install.sh
This commit is contained in:
12
install.sh
12
install.sh
@@ -4,7 +4,7 @@ set -e
|
||||
|
||||
DRIVE=/dev/nvme1n1
|
||||
bs=2048 # 4096
|
||||
version=41
|
||||
VERSION=42
|
||||
|
||||
sgdisk --zap-all ${DRIVE}
|
||||
sgdisk -o ${DRIVE}
|
||||
@@ -30,18 +30,18 @@ mount --bind /run /mnt/run
|
||||
dnf -y update fedora-gpg-keys
|
||||
# curl https://fedoraproject.org/fedora.gpg | gpg --import
|
||||
|
||||
dnf -y --installroot=/mnt --releasever=${version} --use-host-config \
|
||||
dnf -y --installroot=/mnt --releasever=${VERSION} --use-host-config \
|
||||
group install \
|
||||
standard core \
|
||||
hardware-support development-libs development-tools
|
||||
|
||||
dnf -y --installroot=/mnt --releasever=${version} --use-host-config \
|
||||
dnf -y --installroot=/mnt --releasever=${VERSION} --use-host-config \
|
||||
install \
|
||||
gpart gdisk rsync nano tcpdump \
|
||||
tcsh net-tools bind-utils sysstat xfsprogs atop chrony ntpstat \
|
||||
tree git git-all mc wpa_supplicant glibc-langpack-ru
|
||||
|
||||
dnf -y --installroot=/mnt --releasever=${version} --use-host-config \
|
||||
dnf -y --installroot=/mnt --releasever=${VERSION} --use-host-config \
|
||||
install \
|
||||
kernel efibootmgr shim \
|
||||
grub2-efi-x64 grub2-efi-x64-modules \
|
||||
@@ -84,8 +84,12 @@ sed -i s/^SELINUX=.*$/SELINUX=permissive/ /mnt/etc/selinux/config
|
||||
sed -i -r 's/^.?PermitRootLogin.*/PermitRootLogin\ yes/g' /mnt/etc/ssh/sshd_config
|
||||
sed -i -r 's/^.?UseDNS no/UseDNS no/g' /mnt/etc/ssh/sshd_config
|
||||
sed -i -r 's/^.?UseDNS yes/UseDNS no/g' /mnt/etc/ssh/sshd_config
|
||||
|
||||
mkdir /mnt/root/.ssh
|
||||
touch /mnt/root/.ssh/authorized_keys
|
||||
# cat <<EOF > /mnt/root/.ssh/authorized_keys
|
||||
# Здесь может быть открытый ключ для входа через SSH
|
||||
# EOF
|
||||
chmod 0700 /mnt/root/.ssh
|
||||
chmod 0600 /mnt/root/.ssh/authorized_keys
|
||||
|
||||
|
||||
Reference in New Issue
Block a user