Skip to content

Instantly share code, notes, and snippets.

@yoheiueda
yoheiueda / zipl.wrapper
Last active June 21, 2024 09:25
zipl.wrapper
#!/bin/bash -x
tools_dir=/usr/lib/s390-tools
if [[ -e /run/bootc/mounts/rootfs/boot ]]; then
mount --bind /run/bootc/mounts/rootfs/boot /boot
elif [[ -e /run/osbuild/mounts ]]; then
mount --bind /run/osbuild/mounts/boot /boot
mkdir /run/osbuild/mounts/s390-tools
mount --bind /usr/lib/s390-tools /run/osbuild/mounts/s390-tools