77 Commits

Author SHA1 Message Date
d5912ef772 bump ver and add install step 2023-12-07 16:57:30 -03:00
gryrmln
3013804561 Quieten some side-effect console output (zlibs/{bootstrap,imaging})
Signed-off-by: gryrmln <gryrmln@localhost>
2021-04-12 17:26:26 +01:00
gryrmln
25a86b7428 Check no mounts prior to 'sudo rm -rf' (zlibs/{helpers,bootstrap})
Signed-off-by: gryrmln <gryrmln@localhost>
2021-04-02 12:00:46 +01:00
parazyd
b7b635558d Compile qemu-wrapper if running on Gentoo. 2021-01-28 23:51:40 +01:00
parazyd
580fecb67c Set SOURCE_DATE_EPOCH to 1610550434.
This should help with determinism/reproducibility.
2021-01-13 16:07:58 +01:00
parazyd
7eb4f57883 Update license headers. 2020-12-23 09:10:47 +01:00
parazyd
643deaf91a Rerun bootstrap_stage4 after extracting the stage4 archive.
This is helpful if we have some new packages to install.
2020-11-16 11:22:00 +01:00
parazyd
05d82e0d05 Append some extra flags to cpio calls. 2020-11-16 11:19:40 +01:00
parazyd
aedf124832 Overhaul the entire library.
This commit is a "complete" overhaul of libdevuansdk and is a likely
breaking change for all the sdks. They will be updated accordingly.

Notable changes:
    * Bootstrap tarballs are now cpio archives.
    * Error handling is improved a lot.
    * rsync is avoided and cpio is used where necessary.
    * debootstrap submodule is removed and system-wide debootstrap is
      used instead.
    * VMs aren't being built inside an nbd device anymore. They are now
      built normally on the filesystem, and copied into a raw image
      which is then converted to requested formats (qcow and/or vdi).
    * Vagrant build support is completely dropped.
    * apt-cache functionality is completely dropped.
    * The full-build helper functions are renamed and and separated into
      more internal functions/steps.
    * Obsolete and unused code is removed.
2020-11-13 10:04:52 +01:00
parazyd
b6f57c3894 Fix tar call. 2020-06-22 12:38:54 +02:00
parazyd
58862d1ced Try to preserve acls and xattrs when tarring. 2020-06-22 11:06:01 +02:00
parazyd
7108866f0d Try to get tarballs to actually work when booted. 2020-06-15 16:26:53 +02:00
parazyd
2df95e5bd4 Include wget and ca-certificates packages by default in debootstrap. 2020-03-12 10:14:03 +01:00
parazyd
f09da24f08 Add blend_bootstrap_setup in zlibs/bootstrap 2018-01-26 11:53:14 +01:00
parazyd
c09251517d Fixes to bootstrap phase regarding vm-sdk. 2017-12-16 19:04:23 +01:00
parazyd
8cec5f6c9d implement arrays holding apt options for core/base/extra/purge packages 2017-11-28 19:50:52 +01:00
parazyd
b90aaecfb0 replace "sudo -E" calls 2017-11-13 17:45:54 +01:00
parazyd
623d05beff generate a en_US.UTF-8 locale by default 2017-10-27 20:06:19 +02:00
parazyd
74185101e6 style fixes and some quoting in zlibs/bootstrap 2017-10-26 21:27:21 +02:00
parazyd
1aba75a84b run apt-get clean before tarballing 2017-10-26 21:26:43 +02:00
Johny Mattsson
1fdbd917d8 Fix for not-tar'ing-stage-4 after unpack.
Not wanting to tar it up should not cause the whole build to abort.
2017-10-03 09:42:19 +02:00
Johny Mattsson
edf6dacf55 Fix to cope with dir permissions.
During regular operation the parent directory ends up owned by root and
the sudo is required for the mkdir to succeed.
2017-10-03 09:42:18 +02:00
Johny Mattsson
69cfe785da Fix to ensure debootstrap finds its functions.
Relying on /usr/share/ is fraught with problems, as I found out the hard
way.
2017-10-03 09:42:18 +02:00
parazyd
d4c0960f3e return true with bootstrap for loops 2017-09-27 16:58:52 +02:00
parazyd
1b1e557010 don't check for keepfiles on tar_unpack 2017-09-25 15:58:03 +02:00
parazyd
a2ec7b8961 export noninteractive earlier in the bootstrap process 2017-09-24 17:15:47 +02:00
parazyd
038173aa1f use $_extraopts on mksquashfs
this is a new prefered behaviour since we don't always want to imply x86
optimization to the squashfs
2017-09-24 16:33:32 +02:00
parazyd
c2b381d888 make $inittab append as a for loop 2017-09-24 16:17:40 +02:00
parazyd
0b1a5598cb fixup! implement optional stage4 tar archival 2017-09-11 14:03:24 +02:00
parazyd
f6ecc0e41b implement optional stage4 tar archival
this commit adds support for declaring $TAR_STAGE4 in the environment.
it will archive and unarchive the stage4 tarball, which is the state at
the very end of bootstrapping
2017-09-11 13:41:45 +02:00
parazyd
e2738e9aef explicit debootstrap path 2017-06-19 12:28:14 +02:00
parazyd
ed4dedfcd0 add gpg signing for apt cache 2017-05-22 00:31:41 +02:00
parazyd
f74f2b38ea disable leftover locales.sh 2017-05-21 21:09:31 +02:00
parazyd
0517fd867d apt caching proof of concept 2017-05-21 20:31:52 +02:00
parazyd
48be0c4e91 fix args 2017-05-16 17:25:23 +02:00
parazyd
e4ea70d60e allow long apt arguments in extra_packages 2017-05-16 15:56:01 +02:00
parazyd
22c24a992c use the correct -archive- keyring 2017-05-15 15:34:19 +02:00
parazyd
eed8948991 import devuan keyring as git submodule and utilize it in debootstrap 2017-05-15 15:12:43 +02:00
parazyd
9461b3b87b unpack the tarball now and then 2017-04-23 21:58:15 +02:00
parazyd
8ad0d444e3 update the sources list if needed when unpacking the tarball 2017-04-23 16:58:54 +02:00
parazyd
ed9ac4338b safety check for unavailable packages when installing $extra_packages 2017-04-15 17:29:36 +02:00
parazyd
32c372909a limit code to 80ch width 2017-03-18 21:30:58 +01:00
parazyd
6e29a8a299 create strapdir/tmp with good permissions 2017-03-10 03:04:50 +01:00
parazyd
0e2810b75c hack around .keep for tarball 2017-02-15 16:32:37 +01:00
parazyd
99488030c8 ??? 2017-02-15 15:54:45 +01:00
parazyd
693ee05e21 verbose on found nbd 2017-02-15 15:52:37 +01:00
parazyd
f002c12258 refresh libdevuansdk code 2017-02-14 20:03:12 +01:00
parazyd
a4cf35c5b6 apply fixes for a valid build 2017-02-14 18:46:21 +01:00
parazyd
056c2d943f initial import of vm/vagrant code 2017-02-14 17:23:23 +01:00
parazyd
0cfdec721f fix cleanup in bootstrap 2017-02-13 13:05:23 +01:00