summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2020-03-12 01:38:58 +0000
committerRaphaƫl Hertzog <hertzog@debian.org>2020-03-13 14:42:34 +0000
commit5e423d0851f0c42cd2c23274a8207006c69dfb0f (patch)
tree475a208fffec08ca10451faa7e01f67cd0c6c5d5 /scripts
parent3e3e8c2c64a36699f90fd52d5167b636590473b7 (diff)
downloadvyos-live-build-5e423d0851f0c42cd2c23274a8207006c69dfb0f.tar.gz
vyos-live-build-5e423d0851f0c42cd2c23274a8207006c69dfb0f.zip
fix instances of bad stagefile creation circumstances
theres no point in creation of stagefiles being kept within a conditional block of work. if the script completes with success then it should create its stagefile to thus avoid repeating any work that it might have done should it get re-run without being forced. Gbp-Dch: Short
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build/binary_includes6
-rwxr-xr-xscripts/build/binary_loadlin7
-rwxr-xr-xscripts/build/binary_package-lists6
-rwxr-xr-xscripts/build/chroot_hooks6
-rwxr-xr-xscripts/build/chroot_includes6
-rwxr-xr-xscripts/build/chroot_preseed6
-rwxr-xr-xscripts/build/installer_preseed6
7 files changed, 21 insertions, 22 deletions
diff --git a/scripts/build/binary_includes b/scripts/build/binary_includes
index 2b97de71e..6e0c79716 100755
--- a/scripts/build/binary_includes
+++ b/scripts/build/binary_includes
@@ -48,7 +48,7 @@ then
find binary -type l | xargs rm -f
;;
esac
-
- # Creating stage file
- Create_stagefile .build/binary_includes
fi
+
+# Creating stage file
+Create_stagefile .build/binary_includes
diff --git a/scripts/build/binary_loadlin b/scripts/build/binary_loadlin
index 7bdeb8778..5719c3dad 100755
--- a/scripts/build/binary_loadlin
+++ b/scripts/build/binary_loadlin
@@ -85,12 +85,11 @@ cat > binary/install/gtk/install.bat << EOF
EOF
fi
-
- # Creating stage file
- Create_stagefile .build/binary_loadlin
;;
-
*)
Echo_warning "loadlin inclusion is set to true but not compatible with your architecture, ignoring."
;;
esac
+
+# Creating stage file
+Create_stagefile .build/binary_loadlin
diff --git a/scripts/build/binary_package-lists b/scripts/build/binary_package-lists
index 50453cb04..a5c47a2fc 100755
--- a/scripts/build/binary_package-lists
+++ b/scripts/build/binary_package-lists
@@ -175,7 +175,7 @@ then
# Saving cache
Save_package_cache chroot
-
- # Creating stage file
- Create_stagefile .build/binary_package-lists
fi
+
+# Creating stage file
+Create_stagefile .build/binary_package-lists
diff --git a/scripts/build/chroot_hooks b/scripts/build/chroot_hooks
index 125b77ec3..eb113bb6a 100755
--- a/scripts/build/chroot_hooks
+++ b/scripts/build/chroot_hooks
@@ -105,12 +105,12 @@ then
# Saving cache
Save_package_cache chroot
-
- # Creating stage file
- Create_stagefile .build/chroot_hooks
fi
# Remove bind mount of build config inside chroot.
umount chroot/live-build/config
rmdir chroot/live-build/config
rmdir chroot/live-build
+
+# Creating stage file
+Create_stagefile .build/chroot_hooks
diff --git a/scripts/build/chroot_includes b/scripts/build/chroot_includes
index bda5caf93..603d58256 100755
--- a/scripts/build/chroot_includes
+++ b/scripts/build/chroot_includes
@@ -45,7 +45,7 @@ then
Echo_message "Extracting the tarball in the chroot..."
Chroot chroot "tar -xvf includes.chroot.tar --no-same-owner --keep-directory-symlink --overwrite"
rm chroot/includes.chroot.tar
-
- # Creating stage file
- Create_stagefile .build/includes.chroot
fi
+
+# Creating stage file
+Create_stagefile .build/includes.chroot
diff --git a/scripts/build/chroot_preseed b/scripts/build/chroot_preseed
index 7351ea8b6..e5a5fe3a5 100755
--- a/scripts/build/chroot_preseed
+++ b/scripts/build/chroot_preseed
@@ -78,7 +78,7 @@ then
# Remove dependency
Remove_package
-
- # Creating stage file
- Create_stagefile .build/chroot_preseed
fi
+
+# Creating stage file
+Create_stagefile .build/chroot_preseed
diff --git a/scripts/build/installer_preseed b/scripts/build/installer_preseed
index c5802be65..6bef6c46b 100755
--- a/scripts/build/installer_preseed
+++ b/scripts/build/installer_preseed
@@ -62,7 +62,7 @@ then
cat "${_FILE}" >> "${_DIRECTORY}/preseed.cfg"
fi
done
-
- # Creating stage file
- Create_stagefile .build/installer_preseed
fi
+
+# Creating stage file
+Create_stagefile .build/installer_preseed