mini_buildd.schroot module

class mini_buildd.schroot.Session(name, namespace='chroot')

Bases: object

close()

Close session (including retries on failure)

Attention

stale schroot sessions: ‘target is busy’ on session close (stale schroot sessions)

Occasionally, a schroot session can’t be closed properly, leaving stale sessions around. Presumably, external programs (like ‘desktop mount scanners’) can cause this.

This internal close does try hard to avoid this – however, if disaster strikes anyway, mini-buildd-cruft may help to remove these stale sessions manually (i.e., as mini-buildd user from the shell).

call(_call, user='root')
run(_call, user='root')
info()
update_file(file_path, content)

Write content to file

set_debconf(key, value)

Set arbitrary debconf value