Skip to content

Commit

Permalink
Start debloating, add security check, fix LANG
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-hc committed Jul 27, 2024
1 parent 9019c0e commit b093fd6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion create-arch-bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,13 @@ run_in_chroot pacman -Q > "${bootstrap}"/pkglist.x86_64.txt

# Use locale from host
run_in_chroot rm -f "${bootstrap}"/etc/locale.conf
run_in_chroot sed -i 's/LANG=${LANG:-C}/LANG=$LANG/g' "${bootstrap}"/etc/profile.d/locale.sh
run_in_chroot sed -i 's/LANG=${LANG:-C}/LANG=$LANG/g' /etc/profile.d/locale.sh

# Remove bloatwares
run_in_chroot rm -Rf /usr/include /usr/man

# Check if the command we are interested in has been installed
run_in_chroot "$(if ! command -v steam; then echo "Command not found, exiting." && exit 1; fi)"

unmount_chroot

Expand Down

0 comments on commit b093fd6

Please sign in to comment.