Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Naive attempt to use eatmydata #145

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/build_base_lxc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function rebuild_base_lxc()
IN_LXC="$lxc exec $LXC_BASE --"

INSTALL_SCRIPT="https://install.yunohost.org/$DIST"
$IN_LXC apt install curl -y
$IN_LXC apt install curl eatmydata -y
$IN_LXC /bin/bash -c "curl $INSTALL_SCRIPT | bash -s -- -a -d $YNH_BRANCH"

$IN_LXC systemctl -q stop apt-daily.timer
Expand Down
2 changes: 1 addition & 1 deletion lib/lxc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ LXC_EXEC () {
start_timer

# Execute the command given in argument in the container and log its results.
$lxc exec $LXC_NAME --env PACKAGE_CHECK_EXEC=1 -t -- /bin/bash -c "$cmd" | tee -a "$full_log" $current_test_log
$lxc exec $LXC_NAME --env PACKAGE_CHECK_EXEC=1 -t -- /bin/bash -c "eatmydata $cmd" | tee -a "$full_log" $current_test_log

# Store the return code of the command
local returncode=${PIPESTATUS[0]}
Expand Down