Re: [Tails-dev] Tails build system update

Delete this message

Reply to this message
Autor: anonym
Data:  
A: The Tails public development discussion list
Assumpte: Re: [Tails-dev] Tails build system update
intrigeri:
> anonym:
>> In addition, here are steps to clean up the old build environment as a one time step:
>
> Thanks!
>
>>     vagrant box list | \
>>         grep -o "tails-builder-amd64-jessie-[0-9]\{8\}\>" | \
>>         xargs -l vagrant box remove ; \

>
> This fails for me with:
>
> "Vagrant is attempting to interface with the UI in a way that requires
> a TTY. Most actions in Vagrant that require a TTY have configuration
> switches to disable this requirement. Please do that or run Vagrant
> with TTY."


Interesting. Well, you got me! I actually passed "echo vagrant [...]" to xargs so I could review the commands before running, and then copy-pasted the results back into my terminal => they ran with a TTY. Fix:

    boxes="$(vagrant box list | grep -o "tails-builder-amd64-jessie-[0-9]\{8\}\>")"
    for box in ${boxes}; do
        vagrant box remove "${box}"
    done


So the full, fixed instructions are:

    boxes="$(vagrant box list | grep -o "tails-builder-amd64-jessie-[0-9]\{8\}\>")"
    for box in ${boxes}; do
        vagrant box remove "${box}"
    done
    virsh list --all | \
        grep -o "tails-builder-amd64-jessie-[0-9]\{8\}_default" | \
        xargs -l virsh undefine
    virsh vol-list default | \
        grep -o "tails-builder-amd64-jessie-[0-9]\{8\}_\S\+\.img" | \
        sort -u | \
        xargs -l virsh vol-delete --pool default


    # execute the following from your Tails checkout's root
    rm -r vagrant/.vagrant


Cheers!