Commit Graph

241 Commits (3e50d09b43fc4e5aae3283a1c88ab4f1f7b065f6)

Author SHA1 Message Date
Johannes 'josch' Schauer 3e50d09b43
create temporary apt.conf inside chroot because unshared process might not have permissions to write into TMPDIR 4 years ago
Johannes 'josch' Schauer 9918809a65
add another example about how to use mmdebstrap to make a bootable live system 4 years ago
Johannes 'josch' Schauer bd84829595
unset TMPDIR environment variable for everything running inside the chroot 4 years ago
Johannes 'josch' Schauer 5bf8c3fcf9
add sync, umount and shutdown to guestfish calls 4 years ago
Johannes 'josch' Schauer c4a47947ab
mount /sys and /proc as read-only in root mode 4 years ago
Johannes 'josch' Schauer d503e4fd96
put fh variables into their own scope 4 years ago
Johannes 'josch' Schauer 62159d124a
support deb822-style format apt sources 4 years ago
Johannes 'josch' Schauer 1579d06380
use tempdir(..., TMPDIR => 1) instead of tempdir(..., DIR => File::Spec->tmpdir) 4 years ago
Johannes 'josch' Schauer ae15fe3d9f
convert gpg keyring processing to less nesting and abort earlier if possible 4 years ago
Johannes 'josch' Schauer c26ec4d6fc
instead of hardcoding /etc/apt/trusted.gpg, read it from apt-config shell 4 years ago
Johannes 'josch' Schauer efaea907e9
run apt-cache policy instead of dumping sources.list 4 years ago
Johannes 'josch' Schauer c45e7d9baf
print warning if apt trusted cannot be read 4 years ago
Johannes 'josch' Schauer 75428e37dd
assign the absolute key path and not the relative one 4 years ago
Johannes 'josch' Schauer 64fedc530e
Restore deterministic tar with pax and xattr support
- all creating and extraction of tarballs respects extended attributes
 - extended attributes require pax format, so explicitly request the
   format
 - to make pax bit-by-bit reproducible, ctime, atime and PID have to be
   removed from the headers with:
   --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime
 - always pass --numeric-owner to tar
 - always pass --xattrs when creating a tar
 - always pass --xattrs --xattrs-include=* when extracting a tar
4 years ago
Johannes 'josch' Schauer a1df1a9730
fix docs: default variant is 'debootstrap' and not 'required' 4 years ago
Johannes 'josch' Schauer bef4c890d8
if /etc/machine-id exists, replace by an empty file 4 years ago
Johannes 'josch' Schauer 9eaacca795
dump apt config with verbosity level >= 3 4 years ago
Johannes 'josch' Schauer 6455cda34b
release 0.6.0 4 years ago
Johannes 'josch' Schauer c33ded3539
improve differences to debootstrap docs a bit more 4 years ago
Johannes 'josch' Schauer 98c8c573de
coverage.sh: test taridshift 4 years ago
Johannes 'josch' Schauer 30ec192c50
some improvements to the docs 4 years ago
Johannes 'josch' Schauer 6e829ca066
send error package when anything goes wrong in special hook handling 4 years ago
Johannes 'josch' Schauer 7d152ec7e0
add sync-in and sync-out hooks 4 years ago
Johannes 'josch' Schauer 7852a33d01
don't forget chrootless in the list of mode names 4 years ago
Johannes 'josch' Schauer 2cb6438454
add --dry-run and --simulate 4 years ago
Johannes 'josch' Schauer 9441184bf1
reformat some code to keep opening curly brace on the right 4 years ago
Johannes 'josch' Schauer f867384c20
coverage.sh: test with perlcritic 4 years ago
Johannes 'josch' Schauer 4ba82a41cf
format code with perltidy 4 years ago
Johannes 'josch' Schauer bba8922243
reformat code that would exceed 79 character width even after perltidy 4 years ago
Johannes 'josch' Schauer 6abbb3ebd9
wrap POD to 79 characters width 4 years ago
Johannes 'josch' Schauer 2782d14348
rewrite comments so that they fit into 79 characters 4 years ago
Johannes 'josch' Schauer 27bd6df320
add vim modeline 4 years ago
Johannes 'josch' Schauer b10177cb6e
use spaces instead of tabs 4 years ago
Johannes 'josch' Schauer 6d3a824b45
disable Devel::Cover before exec-ing external tools to avoid massive slowdowns 4 years ago
Johannes 'josch' Schauer 4fed488c35
when re-execing itself, keep Devel::Cover options 4 years ago
Johannes 'josch' Schauer dbdf3f34c6
add support for generating squashfs images using tar2sqfs 4 years ago
Johannes 'josch' Schauer c6944d0b8f
cleanup leftovers in /tmp inside the chroot 4 years ago
Johannes 'josch' Schauer 61db086921
also clean package lists and apt cache from sources.d directory 4 years ago
Johannes 'josch' Schauer 327c0e83ca
further document prerequisites and limitations of different modes 4 years ago
Johannes 'josch' Schauer ecd5c7a662
fixup warning message 4 years ago
Johannes 'josch' Schauer 8abb93633c
warn that creating tarball might also fail in proot mode for extract and custom variants 4 years ago
Johannes 'josch' Schauer 05e796cd95
add missing error handlers for fork() and open() calls 4 years ago
Johannes 'josch' Schauer ed0b5069ce
on debug level verbosity, also print the line number 4 years ago
Johannes 'josch' Schauer c8f79cf4b5
document that --xattrs --xattrs-include='*' is needed when extracting a tarball 4 years ago
Benjamin Drung 1dbb576c99
Preserve extended attributes in tarball
When specifying a tarball as output format, the extended attributes are
lost. This leads to programs like ping fail to run as normal user.

Therefore preserve the extended attributes when generating the tarball.

Signed-off-by: Benjamin Drung <benjamin.drung@cloud.ionos.com>
4 years ago
Johannes 'josch' Schauer 868081727e
add special hooks copy-in, copy-out, tar-in, tar-out, upload and download 5 years ago
Johannes 'josch' Schauer e6d5d74d87
--keyring now overwrites the default apt keyring
- apt can only handle one directory and one file as keyring
 - the signed-by option is used to specify the keyrings for suites that
   are not known by apt
5 years ago
Johannes 'josch' Schauer db1e7f27ad
add oldoldstable and jessie 5 years ago
Johannes 'josch' Schauer 2de2eb6a8c
add space between negation operator and test operator 5 years ago
Johannes 'josch' Schauer 394731102a
before unmounting /proc, check if /proc/sys/fs/binfmt_misc is mounted 5 years ago