autopkgtes...rt-unshare(1)
π autopkgtes...rt-unshare(1)
okay bestie, gather round, because we're reading a page straight out of the Linux Programmer's Manual and honestly? it's giving niche-but-iconic. this is autopkgtest-virt-unshare and she's here to do exactly what her name says π«Ά
β¨ NAME β¨
autopkgtest-virt-unshare β running autopkgtest using unshare user namespaces. that's it, that's the vibe. no cap π
π SYNOPSIS π
autopkgtest [...] -- unshare [options]
look at her. short, sweet, all the drama in the --. periodt.
π¦ DESCRIPTION π¦
so the way this works: autopkgtest-virt-unshare hands you an autopkgtest by grabbing a rootfs tarball and using the unshare command to spin up a chroot as a totally normal user. no root era, we love that for us β¨
by default she goes hunting for tarballs in ~/.cache/sbuild, because why make new ones when you can reuse the ones sbuild already made? recycling is main character energy πΈ and if she finds no tarball at all? not her being dramatic, she literally tries to create one on the fly using mmdebstrap. resourceful queen π
okay real talk though, one requirement: autopkgtest-virt-unshare needs the unshare(1) executable from util-linux version 2.38 or later. yes, that specific. for distro versions where that's just not available system-wide β looking at you Debian 11, Ubuntu 22.04, and all the older releases β it is sufficient to have a locally-installed copy of the unshare executable chilling in a directory that's prepended to the PATH. little hack, works perfectly, iykyk π
and normally? normally you're not even calling this yourself. autopkgtest-virt-unshare gets invoked by autopkgtest. she's a supporting character who absolutely ate π₯
π OPTIONS π
-a|--archARCHITECTURE β the Debian name of the architecture. just tell her which one π-b|--bindOUTSIDE INSIDE β bind mount a file or directory from the outside to a mountpoint inside. OUTSIDE has to be an existing file or directory in the local filesystem, fr fr, she will check. INSIDE needs to be an absolute path in the new chroot, and if it doesn't exist yet? she creates it for you. so generous π«Ά--bootstrapcmdCMD β set an alternative chroot bootstrap command, command line options included. go wild.-p|--prefixPREFIX β prefix for the temporary unpack directory. this one gets passed tomkdtemp. cute little detail π-m|--mirrorMIRROR β the mirror to use for bootstrap. heads up: it will be appended tobootstrapcmd. she's adding it, not replacing anything π-r|--releaseRELEASE β the distribution to use. mnemonic time bestie: theris the first letter in "release". iconic memory device, lowkey π-t|--tarball/path/to/tarballβ path to a rootfs tarball. give her the goods β-u|--unpack-dir/path/for/new/rootfsβ specifies a directory where the rootfs tarball should be extracted. by defaultmkdtempis used to create a temporary directory, so if you don't care, just let her cook π-d|--debugβ enables debugging output. and honestly? probably not hugely interesting. she said it, not me π but hey, sometimes you just want the logs
πΈ INPUT, OUTPUT AND EXIT STATUS πΈ
the behaviour of autopkgtest-virt-unshare is exactly as described by the AutomatedTesting virtualisation regime specification. that's the whole thing. she follows the spec, no notes π
β EXAMPLES β
autopkgtest hello -- unshare -r unstable
see? -r for release, unstable for the distro, hello as the thing being tested. slay π
π SEE ALSO π
autopkgtest(1)autopkgtest-chroot(1)/usr/share/doc/autopkgtest/
go read those too, bestie, the lore is deep πβ¨
π AUTHORS AND COPYRIGHT π
this manpage is part of autopkgtest, a tool for testing Debian binary packages. autopkgtest is Copyright (C) 2006-2007 Canonical Ltd and others. iconic lineage honestly π
see /usr/share/doc/autopkgtest/CREDITS for the list of contributors and the full copying conditions. credit where credit is due, always π«Ά
aaaand that's the page! brought to you by autopkgtest, dated 2022 β same source, same date, all the glamour, zero facts lost. bye bestie, go unshare responsibly πΈππ§
π¦ where this page comes from
- ubuntu stonking: autopkgtest 6.0 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms