From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A8A0F139083 for ; Fri, 15 Dec 2017 23:36:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D7814E0E63; Fri, 15 Dec 2017 23:35:59 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BAFE4E0E63 for ; Fri, 15 Dec 2017 23:35:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E5BE733BE19 for ; Fri, 15 Dec 2017 23:35:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8BBC8AE76 for ; Fri, 15 Dec 2017 23:35:57 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1513380911.24c933fc9e6a6cd88a6ede43012ab20a3623c1d8.robbat2@gentoo> Subject: [gentoo-commits] proj/catalyst:master commit in: targets/support/ X-VCS-Repository: proj/catalyst X-VCS-Files: targets/support/create-iso.sh X-VCS-Directories: targets/support/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: 24c933fc9e6a6cd88a6ede43012ab20a3623c1d8 X-VCS-Branch: master Date: Fri, 15 Dec 2017 23:35:57 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: b2d10448-02af-41ed-9533-6036821af5fe X-Archives-Hash: ca28ca4b374e0af278567020dfa49a31 commit: 24c933fc9e6a6cd88a6ede43012ab20a3623c1d8 Author: Robin H. Johnson gentoo org> AuthorDate: Fri Dec 15 23:35:11 2017 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Fri Dec 15 23:35:11 2017 +0000 URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=24c933fc create-iso: warn & truncate too-long volume label. Signed-off-by: Robin H. Johnson gentoo.org> targets/support/create-iso.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/targets/support/create-iso.sh b/targets/support/create-iso.sh index 0dba6745..723f8998 100755 --- a/targets/support/create-iso.sh +++ b/targets/support/create-iso.sh @@ -75,6 +75,14 @@ then esac fi +if [ "${#clst_iso_volume_id}" -gt 32 ]; then + old_clst_iso_volume_id=${clst_iso_volume_id} + clst_iso_volume_id="${clst_iso_volume_id:0:32}" + echo "ISO Volume label is too long, truncating to 32 characters" 1>&2 + echo "old: '${old_clst_iso_volume_id}'" 1>&2 + echo "new: '${clst_iso_volume_id}'" 1>&2 +fi + if [ "${clst_fstype}" == "zisofs" ] then mkisofs_zisofs_opts="-z"