summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2020-05-03 19:19:22 +0100
committerLyndon Brown <jnqnfe@gmail.com>2020-05-03 22:19:43 +0100
commit6cf3321d8471046bbbe203fb3f18d6507c402024 (patch)
treea1db23ca5b10a69f55d86258cf061f60e942e33e /scripts
parent23f02ec7eeeac790c247ba084b8755c3b718ff01 (diff)
downloadvyos-live-build-6cf3321d8471046bbbe203fb3f18d6507c402024.tar.gz
vyos-live-build-6cf3321d8471046bbbe203fb3f18d6507c402024.zip
config: provide UTC timestamp control
`DATE_UTC_OPTION` is set in `Prepare_config()` for use by scripts, even though only a few scripts will actually use it, since it allows those scripts to be cleaner. we may want to possibly extend this as a `DATE_OPTIONS` variable perhaps as part of enabling proper reproduciblity. Gbp-Dch: Short
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build/config11
1 files changed, 10 insertions, 1 deletions
diff --git a/scripts/build/config b/scripts/build/config
index 3c62d2212..f8fd5ff89 100755
--- a/scripts/build/config
+++ b/scripts/build/config
@@ -119,6 +119,7 @@ USAGE="${PROGRAM} [--apt apt|apt-get|aptitude]\n\
\t [--system live|normal]\n\
\t [--uefi-secure-boot auto|enable|disable]\n\
\t [--updates true|false]\n\
+\t [--utc-time true|false]\n\
\t [--validate]\n\
\t [--verbose]\n\
\t [--win32-loader true|false]\n\
@@ -166,7 +167,7 @@ Local_arguments ()
quiet,
security:,source:,source-images:,swap-file-path:,swap-file-size:,system:,
tasksel:,
- uefi-secure-boot:,updates:,usage,
+ uefi-secure-boot:,updates:,utc-time:,usage,
validate,verbose,version,
win32-loader:,
zsync:"
@@ -792,6 +793,11 @@ Local_arguments ()
shift 2
;;
+ --utc-time)
+ LB_UTC_TIME="${2}"
+ shift 2
+ ;;
+
--win32-loader)
LB_WIN32_LOADER="${2}"
shift 2
@@ -1012,6 +1018,9 @@ DEBOOTSTRAP_SCRIPT="${DEBOOTSTRAP_SCRIPT}"
# Set options to use with gzip
GZIP_OPTIONS="${GZIP_OPTIONS}"
+# Enable UTC timestamps
+LB_UTC_TIME="${LB_UTC_TIME}"
+
# live-build options
# Enable breakpoints