100 Commits
Author SHA1 Message Date
parazyd 0804679ca0 Fix cgpt calls. 2021-03-25 21:27:40 +01:00
parazyd 5ee872a2ab Fix cgpt typo. 2021-03-25 21:20:20 +01:00
parazyd 4d0a0374df imaging: Add gpt partitioning. 2021-03-25 20:43:01 +01:00
parazyd b7b635558d Compile qemu-wrapper if running on Gentoo. 2021-01-28 23:51:40 +01:00
parazyd e2876ea69f Use UUID for fstab in virtual machine builds.
This solves issues when booting virtio-type drives.
2021-01-13 18:59:16 +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 8e7a779237 Add fstab override for VM to mount /boot. 2020-11-13 11:26:10 +01:00
parazyd 9a1874d072 Remove the raw VM image if not requested at build time. 2020-11-13 11:21:31 +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 881efdf1ba Add note for obsolete docs. 2020-11-13 09:55:15 +01:00
parazyd 0e0e1d4015 Remove apt-cache directory.
This functionality will be dropped.
2020-11-13 09:55:15 +01:00
parazyd 4e6e48802e Remove debootstrap submodule, and use salsa git for devuan-keyring. 2020-11-13 09:55:14 +01:00
parazyd 0611dccb17 Fix tar typo. 2020-06-22 22:48:24 +02:00
parazyd b6f57c3894 Fix tar call. 2020-06-22 12:38:54 +02:00
parazyd 9afec40475 Update debootstrap revision and git submodules urls. 2020-06-22 11:23:12 +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 353f4daea8 Add htop to base_packages. 2020-03-12 12:40:39 +01:00
parazyd 2df95e5bd4 Include wget and ca-certificates packages by default in debootstrap. 2020-03-12 10:14:03 +01:00
parazyd d688e1acb2 Switch default mirror to https. 2020-03-12 10:13:40 +01:00
parazyd 34d263c807 Simplify conf_print_hosts(). 2020-03-12 10:13:11 +01:00
parazyd 93d89b5f7e Switch default release to beowulf. 2020-03-12 10:11:17 +01:00
parazyd a3b1efff8c allow-hotplug eth0 in zlibs/sysconf. 2019-11-01 16:17:50 +01:00
parazyd 56a3d4288d Flash u-boot in image_pack_dist where applicable. 2019-05-20 20:31:21 +02:00
parazyd 63163a0772 Use a random number when naming the prevagrant image. 2019-02-28 00:39:56 +01:00
parazyd 3eee81ee50 Add support for pixz in zlibs/imaging. 2019-02-26 01:04:49 +01:00
parazyd c1c6fc8c06 Fix path to base-cloud.qcow2 and use [[ instead of [ for test. 2018-10-08 15:45:37 +02:00
parazyd 589d62ca0e Add support for cloud-based VM images. 2018-10-08 12:36:15 +02:00
parazyd c922031a0c Implement a python Dockerfile parser.
This tool can translate Dockerfiles into shell scripts and JSON
structures. It is imagined to be used for the blend concept, where a
Dockerfile could be a system and can be translated into a blend file,
and used by an sdk.
2018-09-18 15:29:46 +02:00
parazyd 2cf0d648ba Remove 'quiet' from GRUB kernel cmdline params in VM. 2018-09-18 14:40:14 +02:00
parazyd 458be78366 Add a configuration option to toggle compressing the final image. 2018-08-28 13:08:15 +02:00
parazyd b2d36cd499 Fix a typo made in the previous commit 2018-03-13 20:32:11 +01:00
parazyd a6a8838d20 Implement variable rootfs types as well. 2018-03-13 20:11:45 +01:00
parazyd 2d4e038046 Add variable bootfs formatting opts. 2018-03-13 20:10:34 +01:00
parazyd fa3c7ea707 Fixes to zlibs/vm to reflect others. 2018-03-13 12:36:17 +01:00
parazyd e94ba2a34d vmsdk: Pack the .vdi as well. 2018-02-07 10:19:49 +01:00
parazyd f09da24f08 Add blend_bootstrap_setup in zlibs/bootstrap 2018-01-26 11:53:14 +01:00
parazyd b55e69b618 fixup! Separate tarring of the strapdir into its own func. 2018-01-16 14:46:03 +01:00
parazyd ceb7259fd9 Separate tarring of the strapdir into its own func. 2018-01-16 13:04:08 +01:00
parazyd 601ce75903 Make e2fsck work noninteractive 2018-01-09 12:15:48 +01:00
parazyd bf638e84c9 Use pkgmaster instead of the cdn. 2018-01-03 13:28:46 +01:00
parazyd cf71a581e3 Use mkdir -p when mounting image, or before rsyncing. 2018-01-03 13:14:44 +01:00
parazyd 95146870fe Fixes regarding live-sdk. 2017-12-16 20:35:23 +01:00
parazyd c09251517d Fixes to bootstrap phase regarding vm-sdk. 2017-12-16 19:04:23 +01:00
parazyd 8bd0b989b8 Update release to ascii. 2017-12-16 11:48:42 +01:00
parazyd f5378a8dc6 Update debootstrap revision to suites/ascii. 2017-12-16 11:47:36 +01:00
parazyd 2511643af5 latest debootstrap 2017-12-03 14:09:33 +01:00
parazyd e13af645af latest debootstrap 2017-11-29 20:49: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 fb212c12d0 zlibs/iso: change initrd to initrd.img
grub-efi looks for initrd.img and this seems like a sane way to mitigate
without hacks
2017-11-05 23:15:07 +01:00
parazyd 4006a3ecc0 switch to pkgmaster.devuan.org and bump devuan-keyring 2017-10-27 21:12:19 +02:00
parazyd 98de6562f8 fixup! automatically pick up the correct qemu binary 2017-10-27 21:07:48 +02:00
parazyd 25346228d4 automatically pick up the correct qemu binary 2017-10-27 21:04:31 +02:00
parazyd 5c9bc1a0a4 generate sha256 for the tarballs 2017-10-27 20:33:14 +02:00
parazyd ffd33dee6b create a tarbomb along with rsyncing the rootfs 2017-10-27 20:23:18 +02:00
parazyd 92f3e3bbbe revise sysconf 2017-10-27 20:07:36 +02:00
parazyd 623d05beff generate a en_US.UTF-8 locale by default 2017-10-27 20:06:19 +02:00
parazyd 858c37edee fixup! add ext2 support for partitioning 2017-10-27 20:00:53 +02:00
parazyd c018a20268 add ext2 support for partitioning 2017-10-27 19:22:48 +02:00
parazyd 9b97dc038d mount devprocsys on install-debs; reported by cyteen_ 2017-10-27 16:59:07 +02:00
parazyd a00868741d fix apt-cache bug where the same entry is written twice 2017-10-26 21:30:54 +02:00
parazyd ad91c94a2e cleanup workdir if debug mode is off after iso creation 2017-10-26 21:30:18 +02:00
parazyd f7c38c1457 syslinux is now imported, so no need for different paths 2017-10-26 21:29:40 +02:00
parazyd 226008739b fix bug in silly(): always return true 2017-10-26 21:27:58 +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
parazyd f6104fd604 replace elinks with lynx 2017-10-26 21:26:08 +02:00
parazyd 2ff044d350 fix autoremove in helpers; reported by cyteen_ 2017-10-25 15:25:16 +02:00
parazyd fc38a09982 change param order on mksquashfs; reported by cyteen_ 2017-10-25 13:19:55 +02:00
parazyd 6968ae2ffd remove pixz support 2017-10-04 21:36:28 +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 61fa850968 bump devuan-keyring to latest revision 2017-09-25 12:23:17 +02:00
parazyd 02ea4d8d1f list parted as a dep; remove obsolete dependencies 2017-09-25 12:22:42 +02:00
parazyd cb7edb49bf Merge branch 'next' 2017-09-25 12:17:36 +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 703d752247 make aptcache sources.list explicit 2017-09-23 20:38:55 +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 07d1f39ce6 fix xz discovery 2017-07-24 20:22:21 +02:00
parazyd 2e871f39e7 fixup! net.ifnames=0 in vm's grub 2017-07-20 17:09:34 +02:00
parazyd 378887ba79 net.ifnames=0 in vm's grub 2017-07-20 15:54:30 +02:00
parazyd 192a58f259 zlibs are not executable 2017-07-20 13:55:22 +02:00
parazyd 258bcc8083 enable root login in vm's sshd (new openssh changed the keyword) 2017-07-20 13:45:54 +02:00
parazyd 0e3297bb7e default to ntp rather than openntpd 2017-07-16 21:01:24 +02:00
parazyd 855fed21f5 defautl to x86 compression for mksquashfs 2017-07-10 14:06:12 +02:00
parazyd 6cdae5fd4d fix $_xz bug 2017-06-26 18:46:05 +02:00
parazyd 5b23dfda98 tag 1.0 2017-06-26 17:58:50 +02:00
parazyd 3cbe3774c8 explicit debootstrap path 2017-06-26 17:58:50 +02:00
parazyd c873950ef7 Revert "override $PATH to use the bundled debootstrap"
This reverts commit 58fe65a719.
2017-06-26 17:58:50 +02:00
parazyd ff9f318612 override $PATH to use the bundled debootstrap 2017-06-26 17:58:50 +02:00
parazyd cafd1c763d add devuan's debootstrap (suites/jessie) as submodule 2017-06-26 17:58:49 +02:00
parazyd eb25c1df0e apply gio's patch to set bootable flag on the vfat partition 2017-06-26 17:58:49 +02:00
parazyd c209032462 optional memtest 2017-06-26 17:58:49 +02:00