aboutsummaryrefslogtreecommitdiffstats
path: root/main/s390-tools/s390-tools-script
diff options
context:
space:
mode:
Diffstat (limited to 'main/s390-tools/s390-tools-script')
-rwxr-xr-xmain/s390-tools/s390-tools-script41
1 files changed, 0 insertions, 41 deletions
diff --git a/main/s390-tools/s390-tools-script b/main/s390-tools/s390-tools-script
deleted file mode 100755
index b89df3d292..0000000000
--- a/main/s390-tools/s390-tools-script
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/sh
-
-[ "$#" -lt 1 ] && exit 0
-
-find_mount_dev() {
- local mnt="$1"
- awk "\$2 == \"$mnt\" { print \$1 }" /proc/mounts | tail -n 1
-}
-
-zipl_gen_conf() {
- KERNEL_FLAVOR="-vanilla"
- RAMDISK_FLAVOR="-vanilla"
-
- rootdev=$(find_mount_dev "/")
- root_parm="root=$rootdev"
- _tmpfile="$(mktemp)"
- cat /proc/cmdline | tr A-Z a-z | xargs -n 1 | grep '=' > "$_tmpfile"
- . "$_tmpfile" > /dev/null 2>&1
- rm "$_tmpfile"
-
- cat > /etc/zipl.conf <<- EOF
- [defaultboot]
- defaultauto
- prompt=1
- timeout=5
- default=linux
- target=/boot
- [linux]
- image=/boot/vmlinuz$KERNEL_FLAVOR
- ramdisk=/boot/initramfs$RAMDISK_FLAVOR
- parameters="$root_parm dasd=$dasd s390x_net=$s390x_net"
- EOF
-}
-
-zipl_run() {
- zipl_gen_conf
- /sbin/zipl --verbose
-}
-
-"$1"
-