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

Temporarily deal with slow sudo problem #3

Merged
merged 1 commit into from
Aug 25, 2018
Merged

Temporarily deal with slow sudo problem #3

merged 1 commit into from
Aug 25, 2018

Conversation

eyqs
Copy link

@eyqs eyqs commented Aug 24, 2018

This commit temporarily addresses the slow sudo problem.

@mediocregopher
Copy link
Owner

I did some digging on the mirror issue: the x86_64 pacman-mirrorlist package has no mirrors uncommented to start with, while the arm versions have one uncommented at the top:

## Geo-IP based mirror selection and load balancing                                                                                                                                
Server = http://mirror.archlinuxarm.org/$arch/$repo

I don't know what the reason for this would be, but in any case I think the fix you have here would produce some weird results for arm, as it would leave the file with two server lines.

I think the best way would be to just copy some code from the prepare script which backs up the original mirrorlist and overwrites to the new one if $MIRROR is set:

    if [ -n "$MIRROR" -a "$MIRROR" != 'unspecified' ]; then                              
        if [ ! -e /etc/pacman.d/mirrorlist.pacorig ]; then                               
            cp -T /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.pacorig              
        fi                                                                               
                                                                                         
        echo "Server = $MIRROR" > /etc/pacman.d/mirrorlist                               
    fi

@eyqs
Copy link
Author

eyqs commented Aug 24, 2018

Thanks for digging into it! Would you actually like to open a new pull request for that? That way, this commit can be easily reverted when the systemd issue is fixed.

This commit temporarily addresses the slow sudo problem:
dnschneid#3823
@mediocregopher
Copy link
Owner

Yup that sounds like a good plan :)

@mediocregopher mediocregopher merged commit 41717b9 into mediocregopher:master Aug 25, 2018
@eyqs eyqs deleted the slow-sudo branch August 25, 2018 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants