Build iso without clean or download?

Dear all,

According to vyos-build/Makefile, make iso will clean(rm -rf all) and download(live build). It takes quite a long time.

How can I make iso without clean and download?
And how can I make iso with my own default config, custom deb and modified code in local disk?

Is there any tutorial about these questions?

it depends on your environment , but it should take a long time . in our documentation ,there is a step by step how to build an iso.



Do you have any mirrors in China‘s Mainland?
Or can I set up a local mirror for myself?

Can anybody help me?

I replaced with in build/build-config.json.

However lb build still get a lot of files from

Following error comes out again and again:

Ign:16 buster/main amd64 Packages
Get:16 buster/main amd64 Packages [10.7 MB]

Ign:16 buster/main amd64 Packages
Ign:16 buster/main amd64 Packages
Err:16 buster/main amd64 Packages
  Connection timed out [IP: 80]
Fetched 30.3 MB in 20min 16s (24.9 kB/s)
Reading package lists...
E: Failed to fetch  Connection timed out [IP: 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
E: An unexpected failure occurred, exiting...
P: Begin unmounting filesystems...
P: Saving caches...
Reading package lists...
Building dependency tree...
Del vyos-1x 1.4dev0-2321-gc4d38948 [1418 kB]
Del bash-completion 1:2.8-6 [208 kB]
Del vyos-1x-smoketest 1.4dev0-2321-gc4d38948 [194 kB]
Del vyos-1x-vmware 1.4dev0-2321-gc4d38948 [3900 B]
make: *** [Makefile:32:iso] 错误 1


How can i speed up the make iso process? Thanks!

I have replace mirror in build/build-config.json like this:

root@debian:/home/vyos/vyos-build# cat build/build-config.json 
    "architecture": "amd64",
    "bootloaders": "syslinux,grub-efi",
    "build_by": "root@debian",
    "build_comment": "",
    "build_dir": "build",
    "build_type": "development",
    "custom_apt_entry": [
        "deb [arch=amd64] buster main",
        "deb [arch=amd64] bullseye-rec-45 main",
        "deb [arch=amd64] bullseye stable"
    "custom_apt_key": null,
    "custom_package": [],
    "debian_mirror": "",
    "debian_security_mirror": "",
    "debug": false,
    "distribution": "bullseye",
    "kernel_flavor": "amd64-vyos",
    "kernel_version": "5.10.104",
    "pbuilder_config": "build/pbuilderrc",
    "pbuilder_debian_mirror": "",
    "release_train": "sagitta",
    "version": null,
    "vyos_branch": "current",
    "vyos_mirror": ""


However, make iso still get most of the files from original mirrors:

P: Configuring file /etc/apt/apt.conf
[2022-03-11 10:51:38] lb bootstrap_archives 
P: Configuring file /etc/apt/sources.list
Get:1 bullseye InRelease [116 kB]
Get:2 buster/updates InRelease [65.4 kB]
Get:3 buster InRelease [122 kB]
Get:4 current InRelease [3544 B]
Get:5 bullseye-rec-45 InRelease [1798 B]
Get:6 bullseye InRelease [4739 B]
Get:7 current/main amd64 Packages [45.1 kB]
Get:8 bullseye-updates InRelease [39.4 kB]
Get:9 buster InRelease [2848 B]
Get:10 bullseye/stable amd64 Packages [1267 B]
Get:11 bullseye/main Sources [8626 kB]
Get:12 buster/main amd64 Packages [2911 B]
Get:13 bullseye-rec-45/main amd64 Packages [846 B]
Get:14 buster/updates/main amd64 Packages [317 kB]
Get:15 buster-updates InRelease [51.9 kB]
Get:16 buster/main amd64 Packages [7906 kB]
Get:17 bullseye/contrib Sources [43.0 kB]
Get:18 bullseye/non-free Sources [80.5 kB]
Get:19 bullseye/main amd64 Packages [8183 kB]
Get:20 buster/updates/main Translation-en [172 kB]
Get:21 buster/updates/non-free amd64 Packages [556 B]
Get:22 buster/updates/non-free Translation-en [344 B]
Get:23 bullseye/main Translation-en [6243 kB]
Get:24 bullseye/contrib amd64 Packages [50.5 kB]
Get:25 bullseye/contrib Translation-en [46.9 kB]
Get:26 bullseye/non-free amd64 Packages [93.8 kB]
Get:27 bullseye/non-free Translation-en [91.5 kB]
Get:28 bullseye-updates/main Sources [1868 B]
Get:29 bullseye-updates/main amd64 Packages [2596 B]
Get:30 bullseye-updates/main Translation-en [2343 B]

Ign:16 buster/main amd64 Packages
Get:31 buster/main Translation-en [5968 kB]
Get:32 buster/non-free amd64 Packages [87.7 kB]
Get:33 buster/non-free Translation-en [88.8 kB]
Get:34 buster-updates/main amd64 Packages [8792 B]
Get:35 buster-updates/main Translation-en [6915 B]
Get:16 buster/main amd64 Packages [7906 kB]

close this question.

I succed to make iso on a server located in America.
So I think my problem was caused by network environment.

Thinks again!