Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Commit

Permalink
Fix sed config editing
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-slx committed Aug 1, 2021
1 parent 487cca2 commit 9e511f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build_src/install-scripts/chroot/10-locale.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -euo pipefail

echo 'Setting up locale'
sed -i '/^#.*en_US\.UTF\-8 UTF\-8 /s/^#//' /etc/locale.gen
sed -i '/^#.*en_US\.UTF\-8 UTF\-8/s/^#//' /etc/locale.gen
locale-gen
echo 'LANG=en_US.UTF-8' > /etc/locale.conf
echo 'KEYMAP=us' > /etc/vconsole.conf
5 changes: 2 additions & 3 deletions build_src/install-scripts/chroot/30-pacman.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ fi
UPLOAD_FILES="$1"

echo 'Configuring pacman'
sed -i '/^#.*Color /s/^#//' /etc/pacman.conf
sed -i '/^#.*TotalDownload /s/^#//' /etc/pacman.conf
sed -i '/^#.*CheckSpace /s/^#//' /etc/pacman.conf
sed -i '/^#.*Color/s/^#//' /etc/pacman.conf
sed -i '/^#.*CheckSpace/s/^#//' /etc/pacman.conf

mkdir -p /etc/pacman.d/hooks
cp -f $UPLOAD_FILES/pacman-hooks/* /etc/pacman.d/hooks

0 comments on commit 9e511f1

Please sign in to comment.