Commit Graph

74 Commits

Author SHA1 Message Date
gryrmln
560371647a
Mount the host sys,dev,dev/pts as read-only for bootstrap (zlibs/helpers)
Signed-off-by: gryrmln <gryrmln@localhost>
2021-04-12 17:22:04 +01:00
gryrmln
3e687958ac
NOTE: potential for recursive calling (zlibs/helpers)
Signed-off-by: gryrmln <gryrmln@localhost>
2021-04-02 12:10:59 +01:00
gryrmln
27175c1556
GNU Terry Pratchett (zlibs/helpers)
Signed-off-by: gryrmln <gryrmln@localhost>
2021-04-02 12:09:32 +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
gryrmln
3cffb94e5c
Handle /tmp/user/0 encroachment into dpkg scripts (zlibs/helpers)
Signed-off-by: gryrmln <gryrmln@localhost>
2021-04-02 11:54:49 +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
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
589d62ca0e
Add support for cloud-based VM images. 2018-10-08 12:36:15 +02:00
Merlijn Wajer
c2b76f4f0a
Preserve xattrs when copying static qemu binaries. 2018-08-27 18:05:04 +02:00
parazyd
b90aaecfb0
replace "sudo -E" calls 2017-11-13 17:45:54 +01: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
9b97dc038d
mount devprocsys on install-debs; reported by cyteen_ 2017-10-27 16:59:07 +02:00
parazyd
226008739b
fix bug in silly(): always return true 2017-10-26 21:27:58 +02:00
parazyd
2ff044d350
fix autoremove in helpers; reported by cyteen_ 2017-10-25 15:25:16 +02:00
parazyd
895c6eaaff
make apt-cache opt-in; add contrib and non-free by default 2017-06-26 17:58:48 +02:00
parazyd
5152c1fafa
create cache repo outside of the chroot 2017-06-26 17:58:47 +02:00
parazyd
31975211b1
no-recommends for dpkg-dev (fill_apt_cache) 2017-06-26 17:58:47 +02:00
parazyd
a92a5aee8d
apt caching proof of concept 2017-06-26 17:58:46 +02:00
parazyd
09d62450cb
proper partx support 2017-06-26 17:58:44 +02:00
parazyd
c9473e5f46
deprecate kpartx in favor of partx 2017-06-26 17:58:43 +02:00
parazyd
7b0dab995d
safer fails 2017-06-26 17:58:42 +02:00
parazyd
1756fde7de
facilitate logging on chroot-script calls 2017-04-01 22:29:52 +02:00
parazyd
fea3aa058a
implement installation of fake packages 2017-03-27 13:57:59 +02:00
parazyd
5d8332af77
use an array for custdebs 2017-03-24 14:05:12 +01:00
parazyd
32c372909a
limit code to 80ch width 2017-03-18 21:30:58 +01:00
parazyd
49560178fd
sleep less 2017-02-25 14:01:03 +01:00
parazyd
9102ee317b
add add-user() helper function 2017-02-23 15:06:28 +01:00
parazyd
ee53a0b770
fix breakage on unknown blends 2017-02-22 14:09:20 +01:00
parazyd
059a533ff7
added virtualbox cleanup on vm_pack_dist() 2017-02-15 15:42:57 +01:00
parazyd
a2a1ecd2c5
implement support for qcow2 images 2017-02-15 14:49:02 +01:00
parazyd
f002c12258
refresh libdevuansdk code 2017-02-14 20:03:12 +01:00
parazyd
056c2d943f
initial import of vm/vagrant code 2017-02-14 17:23:23 +01:00
parazyd
94e77b5ebf
latest progress 2017-02-01 17:53:38 +01:00
parazyd
162d058cf1
upstream debugflags from arm-sdk 2017-01-30 16:32:07 +01:00
parazyd
2c0a376d79
remove functionality because zsh 2017-01-20 15:09:27 +01:00
parazyd
6002758634
simplify ssh setup 2017-01-20 14:21:00 +01:00
parazyd
8550bd6072
allow for multiple scripts in chroot-script 2016-12-18 14:47:23 +01:00
parazyd
367bf5fc2e
wrap chrooting in a function 2016-12-18 13:19:45 +01:00
parazyd
75a22f1134
fix ssh reconfigure 2016-11-13 12:47:28 +01:00
parazyd
dd5d5d9d36
regenerate ssh keys on first boot 2016-10-31 08:41:56 +01:00
parazyd
eb174853f1
add blends to image_dist 2016-10-26 16:33:12 +02:00
parazyd
6e6653c54a
add enserv and disserv; enables or disables init services 2016-10-26 16:27:10 +02:00
parazyd
cc56423e35
switch to vesamenu; add installer 2016-10-19 13:06:57 +02:00
parazyd
60ecf2ada8
add build_iso_dist() and dpkg diverts to 386/amd64 kernels 2016-10-18 12:05:22 +02:00
parazyd
d28e0a93f4
allow installation of custom debs 2016-10-16 19:22:42 +02:00
parazyd
6813aa0b3d
implement enablessh() 2016-10-12 21:24:55 +02:00
parazyd
55637ebfb4
add gpt checks 2016-10-12 13:58:06 +02:00