[Q] How to build iso with my vyatta-cfg-system


#1

Dear developers.

Does anyone knows how to build iso image
with my vyatta-cfg-system ??

It is mean that I would like to fetch vyatta-cfg-system
from my github repository when I execute make (build iso ) command.
And branch name is not helium .

I succeed to build new ISO, however my custom modification
does not included it.

I’ll pull request If my extension finish.

Sincerely.

Hiroyuki Sato.

clone build-iso

git clone https://github.com/vyos/build-iso.git

setup my build-iso

cd build-iso
vi  .gitmodules  

# change url like the following

[submodule "pkgs/vyatta-cfg-system"]
    path = pkgs/vyatta-cfg-system
    url = https://github.com/hiroyuki-sato/vyatta-cfg-system.git

git submodule sync

git submodule init pkgs/vyatta-cfg-system  
git submodule update  pkgs/vyatta-cfg-system
git checkout -b branch_name origin/branch_name

git commit 

diff

diff --git a/.gitmodules b/.gitmodules
index 4ee2ec0..d708034 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -18,7 +18,7 @@
        url = https://github.com/vyos/vyatta-cfg-quagga.git
 [submodule "pkgs/vyatta-cfg-system"]
        path = pkgs/vyatta-cfg-system
-   url = https://github.com/vyos/vyatta-cfg-system.git
+ url = https://github.com/hiroyuki-sato/vyatta-cfg-system.git
 [submodule "pkgs/vyatta-config-migrate"]
        path = pkgs/vyatta-config-migrate
        url = https://github.com/vyos/vyatta-config-migrate.git
diff --git a/pkgs/vyatta-cfg-system b/pkgs/vyatta-cfg-system
index e256ce8..208381b 160000
--- a/pkgs/vyatta-cfg-system
+++ b/pkgs/vyatta-cfg-system
@@ -1 +1 @@
-Subproject commit e256ce86052957f41955470079820f3b5e29e44b
+Subproject commit 208381bee5f444782a78dc29c5254c095d2eed61    

build

export VYATTA_BUILD_BRANCH=helium
export PATH=/sbin:/usr/sbin:$PATH
autoreconf -i
./configure
sudo make

#2

You don’t need to rebuild all packages, just build vyatta-cfg-system and the rest will be fetched from the repos.

This is how I’m always going it:

user@host build-iso$ make vyatta-cfg-system
user@host build-iso$ sudo make iso

Rebuilding all packages on a normal squeeze machine will be rather involved/annoying because some of them depend on each other and you’d need to build and install those to satisfy build dependencies—hardly worth it if you are not going to modify them.


#3

Hello dmbaturin

Thank you for your advice.

Hiroyuki Sato.