diff options
| author | Daniel Baumann <daniel@debian.org> | 2010-12-05 15:33:54 +0100 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2010-12-06 14:19:23 +0100 |
| commit | 70e84bd3c188e0941a991084469df1407005072c (patch) | |
| tree | b5fada7d680dc0e413c2b17d99c378e223b8128f /scripts/build/lb_bootstrap_copy | |
| parent | 47ce1c19d0945fec7325ce5ed961aed55972d159 (diff) | |
| download | vyos-live-build-70e84bd3c188e0941a991084469df1407005072c.tar.gz vyos-live-build-70e84bd3c188e0941a991084469df1407005072c.zip | |
Updating bootstrap for multiarch.
Diffstat (limited to 'scripts/build/lb_bootstrap_copy')
| -rwxr-xr-x | scripts/build/lb_bootstrap_copy | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/scripts/build/lb_bootstrap_copy b/scripts/build/lb_bootstrap_copy index 45c96a7be..17b631257 100755 --- a/scripts/build/lb_bootstrap_copy +++ b/scripts/build/lb_bootstrap_copy @@ -32,25 +32,28 @@ fi # Check architecture Check_crossarchitectures -Echo_message "Begin bootstrapping system..." +for _ARCHITECTURE in ${LB_ARCHITECTURES} +do + Echo_message "Begin bootstrapping system..." -# Ensure that a system is built as root -lb testroot + # Ensure that a system is built as root + lb testroot -# Checking stage file -Check_stagefile .stage/bootstrap + # Checking stage file + Check_stagefile .stage/bootstrap.${_ARCHITECTURE} -# Checking lock file -Check_lockfile .lock + # Checking lock file + Check_lockfile .lock -# Creating lock file -Create_lockfile .lock + # Creating lock file + Create_lockfile .lock -# Copying host system -mkdir chroot -cd chroot -tar c / --exclude /proc --exclude /sys --exclude "$(dirname ${PWD})" | tar xv -cd .. + # Copying host system + mkdir chroot.${_ARCHITECTURE} + cd chroot.${_ARCHITECTURE} + tar c / --exclude /proc --exclude /sys --exclude "$(dirname ${PWD})" | tar xv + cd .. -# Creating stage file -Create_stagefile .stage/bootstrap + # Creating stage file + Create_stagefile .stage/bootstrap.${_ARCHITECTURE} +done |
