Johannes Schauer Marin Rodrigues
e71676e15c
use warning() instead of warn() when unmounting /sys and /proc fails
2 years ago
Johannes Schauer Marin Rodrigues
a238d90774
hooks/merged-usr: workaround not necessary anymore since debootstrap 1.0.125
2 years ago
Johannes Schauer Marin Rodrigues
790294ddca
hooks/merged-usr: acquire native architecture from apt-config
...
`dpkg --print-architecture` will be wrong when creating a foreign
architecture chroot and we cannot chroot() as the chroot directory is
still empty.
2 years ago
Johannes Schauer Marin Rodrigues
cffd47e087
drop /usr/sbin prefixes from executables
2 years ago
Johannes Schauer Marin Rodrigues
c6c9c27969
use DPkg::Path as default value for PATH
2 years ago
Johannes Schauer Marin Rodrigues
27926c75f9
unify checking if tools exist by running them with --version
2 years ago
Johannes Schauer Marin Rodrigues
0f9c6543c4
improve qemu-user
...
- rephrase info message to be less misleading
- do not require qemu-$arch-static binary
- check if /proc/sys/fs/binfmt_misc/qemu-$arch exists before reading it
2 years ago
Johannes Schauer Marin Rodrigues
b99f1d53d5
add file-mirror-automount hook-dir
2 years ago
David Kalnischkies
cc3150ef04
Rework download stage to allow file:// mirrors
...
- factor out package downloading function
- replace -oApt::Get::Download-Only=true by -oDebug::pkgDpkgPm=1
- remove guessing of package names in /var/cache/apt/archives/
- drop edsp parsing with proxysolver/mmdebstrap-dump-solution to obtain
downloaded filenames in favour of -oDpkg::Pre-Install-Pkgs::=cat
- /var/cache/apt/archives/ is now allowed to contain packages
- drop --skip=download/empty
- file:// mirrors are now supported if their path is available inside
the chroot
2 years ago
Johannes Schauer Marin Rodrigues
c8835a6149
coverage.sh: make sure archives we copied into /var/cache/apt/archives are not deleted
2 years ago
Johannes Schauer Marin Rodrigues
dc8b09ed50
fix pod formatting typo
2 years ago
Johannes Schauer Marin Rodrigues
21b23ebb9f
set MMDEBSTRAP_VERBOSITY in hooks
2 years ago
Johannes Schauer Marin Rodrigues
0664792cd5
manually push option arguments to array instead of using s@
...
By mixing s@ for --$foo-hook options and manual pushing in --hook-dir,
it can happen that options get lost. Consider the following test:
use Getopt::Long;
my $arr = [];
GetOptions(
'A=s@' => \$arr,
'B=s' => sub { push @{$arr}, $_[1]; }
);
foreach my $hook (@{$arr}) { print "hook: $hook\n"; }
This works fine:
perl test.pl --A=a1 --B=b1 --A=a2 --B=b2
hook: a1
hook: b1
hook: a2
hook: b2
This misses b1:
perl test.pl --B=b1 --A=a2 --B=b2
hook: a2
hook: b2
2 years ago
Johannes Schauer Marin Rodrigues
26af846d0a
fix that cached debs were not returned if there was nothing to download
2 years ago
Johannes Schauer Marin Rodrigues
df6900ec4a
hooks/eatmydata/extract.sh: fix regex to also work on s390x
2 years ago
Johannes Schauer Marin Rodrigues
5c5f7de898
more documentation for TMPDIR
2 years ago
Johannes Schauer Marin Rodrigues
29b23bbcbc
document how to build on top of an existing tarball
2 years ago
Johannes Schauer Marin Rodrigues
d10f320f5d
document how to build an sbuild unshare chroot mode tarball
2 years ago
Johannes Schauer Marin Rodrigues
ce23e702e2
fixup comparison with debootstrap
2 years ago
Johannes Schauer Marin Rodrigues
2c155f7cc9
coverage.sh: only skip foreign arch if RUN_MA_SAME_TESTS==no and mode==fakechroot
2 years ago
Johannes Schauer Marin Rodrigues
d7b39b6c97
coverage.sh: enable building variant=standard
2 years ago
Johannes Schauer Marin Rodrigues
6ec09c27ca
coverage.sh: mount tmpfs as workaround for #1010957
2 years ago
Johannes Schauer Marin Rodrigues
454121acb1
run_qemu.sh: use -cpu host as a workaround for #1011003 and because it's faster
2 years ago
Johannes Schauer Marin Rodrigues
09f1dd2ee6
Improve documentation of reproducibility of /etc/resolv.conf and /etc/hostname
...
Closes : #26
2 years ago
Johannes Schauer Marin Rodrigues
57e0ecb20f
release 0.8.6
2 years ago
Johannes Schauer Marin Rodrigues
70b081d299
allow running root mode inside unshare mode
2 years ago
Johannes Schauer Marin Rodrigues
a6186e8485
add .mailmap
2 years ago
Johannes Schauer Marin Rodrigues
64ba5f8229
release 0.8.5
2 years ago
Johannes Schauer Marin Rodrigues
409ce1cfee
improve man page further
2 years ago
Johannes Schauer Marin Rodrigues
4ce5a92123
coverage.sh: now that the _apt user is created as a system user by adduser, we also need to change /etc/shadow
2 years ago
Johannes Schauer Marin Rodrigues
3a9ba24d12
coverage.sh: output diff to stderr prevent interleaving with sh -x output
2 years ago
Johannes Schauer Marin Rodrigues
7044baf6b1
run busybox from an absolute path to allow running it even when /proc is not mounted as busybox uses /proc/self/exe to figure out its own path
2 years ago
Johannes Schauer Marin Rodrigues
3a90ce96ad
make_mirror.sh: use extlinux explicitly instead of syslinux
2 years ago
Johannes Schauer Marin Rodrigues
01bbdb9d2c
finalize mmdebstrap-autopkgtest-build-qemu
2 years ago
Johannes Schauer Marin Rodrigues
4b7669be43
examples/mmdebstrap-autopkgtest-qemu: add support for arm64, armhf and ppc64el via efi and ieee1275 boot
2 years ago
Johannes Schauer Marin Rodrigues
c7e8e28af9
examples/mmdebstrap-autopkgtest-qemu: use grub to support more architectures
2 years ago
Johannes Schauer Marin Rodrigues
f612826fdf
Add examples/mmdebstrap-autopkgtest-qemu
...
Thanks to Francesco Poli for providing ideas and testing this.
2 years ago
Johannes Schauer Marin Rodrigues
489e51a2eb
Run File::Find::find with no_chdir=>1
...
Without no_chdir=>1 the unshared child process in unshare mode needs
read permissions for the directory from which mmdebstrap is executed.
With this change, the current working directory does not need to be
world-readable anymore.
Closes : #1005857
Reported-by: Trent W. Buck <trentbuck@gmail.com>
3 years ago
Johannes Schauer Marin Rodrigues
fe87c3a1b8
README.md: add Gioele Barabucci
3 years ago
Gioele Barabucci
5fa2457fd5
mmdebstrap: Add mbr.bin installation to autopkgtest-build-qemu instructions
...
The generated image will not be bootable if `mbr.bin` is not installed
into the MBR.
These lines are copied from the "Debian desktop on USB stick" example.
3 years ago
Gioele Barabucci
8e6f183b3f
mmdebstrap: Install mbr.bin in /boot and keep after installation
3 years ago
Gioele Barabucci
97e6981ddc
mmdebstrap: Read extlinux's MBR from /usr/lib/EXTLINUX
...
`/usr/lib/SYSLINUX` is not available if only `extlinux` is installed.
3 years ago
Gioele Barabucci
22c0ba45a0
mmdebstrap: Use ext4 instead of ext2 in examples
3 years ago
Gioele Barabucci
829df60242
mmdebstrap: Align autopkgtest-build-qemu and USB stick examples
...
Write the same `guestfish` instructions in the same way in both the
`autopkgtest-build-qemu` and the "Debian desktopn on a USB stick" example.
3 years ago
Johannes Schauer Marin Rodrigues
070a9cecb7
release 0.8.4
3 years ago
Johannes Schauer Marin Rodrigues
38a81e75bb
remove information about kernel.unprivileged_userns_clone from the man page
3 years ago
Johannes Schauer Marin Rodrigues
ce8a9f8764
also remove /var/lib/dbus/machine-id
3 years ago
Johannes Schauer Marin Rodrigues
e865ce850f
document another advantage of running apt outside the chroot
3 years ago
Johannes Schauer Marin Rodrigues
2b60a932a9
don't install essential packages in run_install()
3 years ago
Johannes Schauer Marin Rodrigues
3962f36441
coverage.sh: since fontconfig was fixed, document the remaining reproducibility issues
3 years ago