aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorTuan M. Hoang <tmhoang@flatglobe.org>2018-06-18 18:53:11 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-06-19 07:08:42 +0000
commit7503de19f027c334f41dfbd8e793b04ad70622c0 (patch)
tree7e23a98fd4655c7e22eddf5d6b52739ca1745385 /scripts
parentfcf202d3e511637897a5cade6ff6c1c04626e3d1 (diff)
downloadaports-7503de19f027c334f41dfbd8e793b04ad70622c0.tar.bz2
aports-7503de19f027c334f41dfbd8e793b04ad70622c0.tar.xz
scripts/mkimg, main/s390-tools: create bootable 'standard' iso for s390x
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mkimg.base.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/mkimg.base.sh b/scripts/mkimg.base.sh
index 3ba6bfd04b..6dfd9db8a9 100755
--- a/scripts/mkimg.base.sh
+++ b/scripts/mkimg.base.sh
@@ -257,6 +257,16 @@ create_image_iso() {
-sysid LINUX \
-volid "alpine-${profile_abbrev:-$PROFILE} $RELEASE $ARCH"
else
+ if [ "$ARCH" = s390x ]; then
+ printf %s "$initfs_cmdline $kernel_cmdline " > ${WORKDIR}/parmfile
+ for _f in $kernel_flavors; do
+ mk-s390-cdboot -p ${WORKDIR}/parmfile \
+ -i ${DESTDIR}/boot/vmlinuz-$_f \
+ -r ${DESTDIR}/boot/initramfs-$_f \
+ -o ${DESTDIR}/boot/merged.img
+ done
+ iso_opts="$iso_opts -no-emul-boot -eltorito-boot boot/merged.img"
+ fi
xorrisofs \
-quiet \
-output ${ISO} \