Removal of log msgs from arch-chroot

This commit is contained in:
Price Hiller 2021-11-25 05:22:08 -06:00
parent 2529c5d251
commit af458b722c

View File

@ -295,9 +295,8 @@ install() {
log "info" "Generating fstab" log "info" "Generating fstab"
genfstab -U /mnt >> /mnt/etc/fstab genfstab -U /mnt >> /mnt/etc/fstab
log "info" "Finished generating fstab" log "info" "Finished generating fstab"
log "info" "Switching to new installation" log "info" "Switching to new installation and finishing up install"
arch-chroot /mnt << __END_CHROOT_CMDS__ arch-chroot /mnt << __END_CHROOT_CMDS__
log "info" "Configuring hosts and hostname"
echo "arch" > /etc/hostname echo "arch" > /etc/hostname
cat << __EOF__ > "/etc/hosts" cat << __EOF__ > "/etc/hosts"
127.0.0.1 localhost 127.0.0.1 localhost
@ -305,14 +304,11 @@ install() {
127.0.1.1 arch.localdomain arch 127.0.1.1 arch.localdomain arch
__EOF__ __EOF__
log "info" "Setting locale to en_US.UTF-8"
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
locale-gen locale-gen
echo "LANG=en_US.UTF-8" > /etc/locale.conf echo "LANG=en_US.UTF-8" > /etc/locale.conf
log "info" "Setting root password to $(important "toor")"
echo "toor" | passwd root --stdin echo "toor" | passwd root --stdin
log "info" "Installing boot loader"
local ucode local ucode
while read -r; do while read -r; do
if [[ "${REPLY}" = "*VendorID*" ]]; then if [[ "${REPLY}" = "*VendorID*" ]]; then
@ -338,14 +334,12 @@ __EOF__
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg grub-mkconfig -o /boot/grub/grub.cfg
log "info" "Finished installing bootloader"
log "info" "Installing network manager"
yes | pacman -S networkmanager yes | pacman -S networkmanager
systemctl enable NetworkManager systemctl enable NetworkManager
log "info" "Finished!"
__END_CHROOT_CMDS__ __END_CHROOT_CMDS__
log "info" "Next steps: update localities if incorrect, add your user" log "info" "Finished, root password set to $(important "toor")"
log "info" "Next steps: update localities if incorrect, add your user, update the root password"
} }
main() { main() {