add kernel cmdline colors
This commit is contained in:
@@ -8,6 +8,7 @@ PACSTRAP_EXTRA_ARGS="-c"
|
||||
### Switch to the script directory
|
||||
cd "$(dirname "$0")"
|
||||
DIRNAME="$(pwd)"
|
||||
source scripts/functions.sh
|
||||
|
||||
### Format disk
|
||||
sgdisk --clear \
|
||||
@@ -70,9 +71,10 @@ genfstab -U /mnt | sed "s/subvolid=[0-9]\{3\},//" > /mnt/etc/fstab
|
||||
sed -i "/^HOOKS/s|block|block encrypt btrfs|" /mnt/etc/mkinitcpio.conf
|
||||
sed -i "s|^BINARIES.*|BINARIES=\(btrfs\)|" /mnt/etc/mkinitcpio.conf
|
||||
|
||||
printf "cryptdevice=UUID=%s:rootfs root=UUID=%s rootflags=subvol=@ rw initrd=\\intel-ucode.img initrd=\\initramfs-linux.img loglevel=3 vt.default_red=40,224,152,229,97,198,86,171,40,224,152,229,97,198,86,171 vt.default_grn=44,108,195,192,175,120,182,178,44,108,195,192,175,120,182,178 vt.default_blu=52,117,121,123,239,221,194,191,52,117,121,123,239,221,194,191 intel_iommu=on iommu=pt" \
|
||||
printf "cryptdevice=UUID=%s:rootfs root=UUID=%s rootflags=subvol=@ rw initrd=\\intel-ucode.img initrd=\\initramfs-linux.img loglevel=3 %s intel_iommu=on iommu=pt" \
|
||||
"$(blkid --match-token PARTLABEL=SYS -s UUID -o value)" \
|
||||
"$(blkid --match-token LABEL=root -s UUID -o value)" \
|
||||
"$(_kernel_colors)" \
|
||||
> /mnt/etc/kernel/cmdline
|
||||
|
||||
sed -i 's|^#default_uki.*|default_uki="/boot/arch-linux.efi"|' /mnt/etc/mkinitcpio.d/linux.preset
|
||||
@@ -93,7 +95,7 @@ sed -i 's|^root:.*|root:$y$j9T$BPO20nCgFZ8NuDn6LZ6KU0$681FWXbptNoLEbIKmyRtivt1NC
|
||||
printf "PermitRootLogin yes" > /mnt/etc/ssh/sshd_config.d/99-permitrootlogin.conf
|
||||
|
||||
# Configure network
|
||||
cp network/00-wired.network /mnt/etc/systemd/network/0-wired.network
|
||||
cp network/00-wired.network /mnt/etc/systemd/network/00-wired.network
|
||||
cp network/resolved.conf /mnt/etc/systemd/resolved.conf
|
||||
cd /mnt/etc
|
||||
ln -sf ../run/systemd/resolve/stub-resolv.conf resolv.conf
|
||||
@@ -111,4 +113,4 @@ cp links/tty/issue /mnt/etc/issue
|
||||
# Enable services
|
||||
arch-chroot /mnt systemctl enable sshd.service systemd-networkd.service systemd-timesyncd.service systemd-resolved.service
|
||||
|
||||
echo "DONE !!! Dont forget to change passwords"
|
||||
echo "DONE !!! Dont forget to change passwords and deny PermitRootLogin on /etc/ssh/sshd_config.d/99-permitrootlogin.conf after installation"
|
||||
|
||||
Reference in New Issue
Block a user