diff --git a/debian/changelog b/debian/changelog index d5ebe3c4..88a2b767 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -livecd-rootfs (2.420ubuntu1) UNRELEASED; urgency=medium +livecd-rootfs (2.420) UNRELEASED; urgency=medium [ Ɓukasz 'sil2100' Zemczak ] * Remove the ubuntu-pd project from the scripts @@ -7,6 +7,7 @@ livecd-rootfs (2.420ubuntu1) UNRELEASED; urgency=medium [ Oliver Grawert ] * sanitize the version number of the ubuntu-core snap + * sanitize the version number of the kernel snap -- Oliver Grawert Tue, 19 Jul 2016 13:59:16 +0200 diff --git a/live-build/auto/build b/live-build/auto/build index 8b04d686..0ce13893 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -257,7 +257,9 @@ if [ "$PROJECT:$SUBPROJECT" = "ubuntu-core:system-image" ]; then mkdir -p $rootfs/$dir done - VERSION="$(lsb_release -r -s)" + # get a proper version from the chroot + . $rootfs/etc/os-release + VERSION="$(echo $PRETTY_NAME | sed 's/[^0-9.]*//g')" CORENAME="ubuntu-core" cat > $rootfs/meta/snap.yaml < meta/kernel.yaml <