Skip to content

Commit

Permalink
Use root as download user for arch linux
Browse files Browse the repository at this point in the history
The default user is "alpm", which is missing in our /etc/passwd
file. For now just use root instead of creating the user.
We may need to revisit this in the future.
  • Loading branch information
mlschroe committed Sep 16, 2024
1 parent e5ec25e commit b78c416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-pkg-arch
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pkg_cumulate_arch() {
pkg_install_arch() {
# Pacman can't handle chroot
# https://bbs.archlinux.org/viewtopic.php?id=129661
(cd $BUILD_ROOT/etc && sed -i "s/^CheckSpace/#CheckSpace/g" pacman.conf)
(cd $BUILD_ROOT/etc && sed -i -e "s/^CheckSpace/#CheckSpace/g" -e "s/^DownloadUser/#DownloadUser/" pacman.conf)
# -d -d disables deps checking
( cd $BUILD_ROOT && chroot $BUILD_ROOT pacman -U --overwrite '*' -d -d --noconfirm .init_b_cache/$PKG.$PSUF 2>&1 || touch $BUILD_ROOT/exit ) | \
perl -ne '$|=1;/^(warning: could not get filesystem information for |loading packages|looking for inter-conflicts|looking for conflicting packages|Targets |Total Installed Size: |Net Upgrade Size: |Proceed with installation|checking package integrity|loading package files|checking for file conflicts|checking keyring|Packages \(\d+\)|:: Proceed with installation|:: Processing package changes|checking available disk space|installing |upgrading |warning:.*is up to date -- reinstalling|Optional dependencies for| )/||/^$/||print'
Expand Down

0 comments on commit b78c416

Please sign in to comment.