commit: 24c933fc9e6a6cd88a6ede43012ab20a3623c1d8 Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> AuthorDate: Fri Dec 15 23:35:11 2017 +0000 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> 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 <robbat2 <AT> 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"