fosslinux / live-bootstrap

Use of a Linux initramfs to fully automate the bootstrapping process
501 stars 35 forks source link

guile downloads its sources #412

Closed infdivzero closed 8 months ago

infdivzero commented 8 months ago

Does this when running the bootstrap in qemu using the python script, after the python script downloaded all(?) sources. Haven't tried running the vm without a network connection yet. Intended?

part of the build output:

make[2]: Leaving directory '/steps/gc-8.0.4/build/gc-8.0.4'
make[1]: Leaving directory '/steps/gc-8.0.4/build/gc-8.0.4'
gc-8.0.4: postprocess binaries.
gc-8.0.4: creating package.
gc-8.0.4: checksumming created package.
gc-8.0.4_0.tar.bz2: OK
gc-8.0.4: cleaning up.
gc-8.0.4: installing package.
gc-8.0.4: build successful
guile-3.0.9: beginning build using script pass1.sh
guile-3.0.9: getting sources.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 12.5M  100 12.5M    0     0  2410k      0  0:00:05  0:00:05 --:--:-- 2739k
guile-3.0.7.tar.xz: OK
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 5615k  100 5615k    0     0  1583k      0  0:00:03  0:00:03 --:--:-- 1583k
guile-3.0.9.tar.xz: OK
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 7212k    0 7212k    0     0  1267k      0 --:--:--  0:00:05 --:--:-- 2098k
gnulib-901694b9.tar.gz: OK
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 7582k    0 7582k    0     0  1162k      0 --:--:--  0:00:06 --:--:-- 1771k
gnulib-356a414e.tar.gz: OK
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 34876    0 34876    0     0  63238      0 --:--:-- --:--:-- --:--:-- 63238
guile-3.0.7.tar.gz: OK
/steps/guile-3.0.9/build
guile-3.0.9: unpacking source.
guile-3.0.9: preparing source.
fosslinux commented 8 months ago

What's the full command you used to invoke rootfs.py?

infdivzero commented 8 months ago

./rootfs.py --cores $(nproc) -i -q

Googulator commented 8 months ago

It's meant to do that with that command line. If you don't add --external-sources, rootfs.py will only predownload sources required to bootstrap up to the point where network support becomes available - any packages beyond that will instead download their sources as needed, over the bootstrap system's own network connection.

Also, be careful of --cores $(nproc) - if $(nproc) is large, this will cause high memory usage inside the bootstrap environment, and lead to OOM errors unless you also use the -qs option to add swap. (In kernel bootstrap mode, physical memory available to the bootstrap environment is currently limited to about 3GB, due to e820 memory map parsing not being implemented in builder-hex0.)

infdivzero commented 8 months ago

Alright, wasn't sure if that's what --external-sources did. Default of 2 core makes more sense too