mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 03:09:51 +03:00
scripts/mkimg.base.sh: truncate long volid
volid can not be longer than 32 chars, and we hit this limit with _rc1 loongach64. Solve this by drop the _rc* suffix and add a safe guard that truncates the volid if it ever trips over. ref: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/76266
This commit is contained in:
parent
51e9b661e4
commit
a486316db8
1 changed files with 3 additions and 2 deletions
|
@ -237,6 +237,7 @@ create_image_iso() {
|
|||
local ISO="${OUTDIR}/${output_filename}"
|
||||
local _isolinux
|
||||
local _efiboot
|
||||
local _volid=$(printf "%s" "alpine-${profile_abbrev:-$PROFILE} ${RELEASE%_rc*} $ARCH" | cut -c1-32)
|
||||
|
||||
if [ -e "${DESTDIR}/boot/syslinux/isolinux.bin" ]; then
|
||||
# isolinux enabled
|
||||
|
@ -280,7 +281,7 @@ create_image_iso() {
|
|||
grub-mkrescue --output ${ISO} ${DESTDIR} -follow-links \
|
||||
--directory="$WORKDIR"/usr/lib/grub/powerpc-ieee1275 \
|
||||
-sysid LINUX \
|
||||
-volid "alpine-${profile_abbrev:-$PROFILE} $RELEASE $ARCH"
|
||||
-volid "$_volid"
|
||||
else
|
||||
if [ "$ARCH" = s390x ]; then
|
||||
printf %s "$initfs_cmdline $kernel_cmdline " > ${WORKDIR}/parmfile
|
||||
|
@ -299,7 +300,7 @@ create_image_iso() {
|
|||
-joliet \
|
||||
-rational-rock \
|
||||
-sysid LINUX \
|
||||
-volid "alpine-${profile_abbrev:-$PROFILE} $RELEASE $ARCH" \
|
||||
-volid "$_volid" \
|
||||
$_isolinux \
|
||||
$_efiboot \
|
||||
-follow-links \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue