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-schroot-cleanup
may help to remove these stale sessions manually (i.e., asmini-buildd
user from the shell).
- call(_call, user='root')¶
- run(_call, user='root')¶
- info()¶
- check_sudo_workaround()¶
Attention
compat (
mini-buildd <= 1.0.4
): Fail for very old and possibly insecure chrootsmini-buildd <= 1.0.4 created chroots with a “sudo workaround” for bug https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=607228.
Such chroots must be recreated, and no longer used (for security reasons).
- update_file(file_path, content)¶
Write content to file
- set_debconf(key, value)¶
Set arbitrary debconf value