summaryrefslogtreecommitdiff
path: root/scripts/build/lb_bootstrap_copy
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/lb_bootstrap_copy')
-rwxr-xr-xscripts/build/lb_bootstrap_copy35
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