From 2ca3cc9720d936e7fd64237f10c6e927b0f105ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20=27sil2100=27=20Zemczak?= Date: Thu, 16 Jan 2020 18:55:24 +0100 Subject: [PATCH] Use the datestamp parameter (stored in NOW) instead of the newly added BUILD_ID. --- debian/changelog | 4 ++-- live-build/auto/config | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/debian/changelog b/debian/changelog index bc01862e..6098f58f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,7 +1,7 @@ livecd-rootfs (2.635) UNRELEASED; urgency=medium - * Support generating a .disk/info file via ubuntu-image if BUILD_ID is - passed from cdimage to the builder. + * Support generating a .disk/info file via ubuntu-image from the passed-in + datestamp parameter (using the $NOW environment variable). -- Ɓukasz 'sil2100' Zemczak Fri, 13 Dec 2019 18:12:12 +0100 diff --git a/live-build/auto/config b/live-build/auto/config index ae931e92..1b3ae112 100755 --- a/live-build/auto/config +++ b/live-build/auto/config @@ -342,10 +342,10 @@ case $IMAGEFORMAT in ;; esac - # If we have a build_id coming from cdimage, use that to populate + # If we have a datestamp coming from cdimage, use that to populate # .disk/info on the target image - if [ -n "$BUILD_ID" ]; then - echo "$BUILD_ID" > config/disk-info + if [ -n "$NOW" ]; then + echo "$NOW" > config/disk-info UBUNTU_IMAGE_ARGS="$UBUNTU_IMAGE_ARGS --disk-info config/disk-info" fi