Skip to content

Commit

Permalink
repro: Ensure we are sourcing profile. Break terminal as well
Browse files Browse the repository at this point in the history
We need setsid for terminal capabilities. Sorry folks, your terminal is
mine now.

Signed-off-by: Morten Linderud <morten@linderud.pw>
  • Loading branch information
Foxboron committed May 27, 2020
1 parent 6d72446 commit 7470fa8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions repro.in
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,8 @@ set -e
install -d -o builduser -g builduser /pkgdest
install -d -o builduser -g builduser /srcpkgdest
install -d -o builduser -g builduser /build
source /etc/profile
sudo -iu builduser bash -c 'cd /startdir; SOURCE_DATE_EPOCH=$SOURCE_DATE_EPOCH makepkg -sc --noconfirm --skippgpcheck $cmds'
__END__
exec_nspawn "$build" /usr/bin/setsid -f -c -w sudo -iu builduser bash -c ". /etc/profile; cd /startdir; SOURCE_DATE_EPOCH=$SOURCE_DATE_EPOCH makepkg -sc --noconfirm --skippgpcheck $cmds"
mkdir -p "./build"
for pkgfile in "$BUILDDIRECTORY/$build"/pkgdest/*; do
mv "$pkgfile" "./build/"
Expand Down

0 comments on commit 7470fa8

Please sign in to comment.