From ace073e89a2cc773ea1e34caf46c0c6a42aedfb7 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 9 Jul 2021 19:33:04 +0200 Subject: [PATCH] Add script to install any Linux to any computer --- install-any-linux.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 install-any-linux.sh diff --git a/install-any-linux.sh b/install-any-linux.sh new file mode 100644 index 0000000..edfb948 --- /dev/null +++ b/install-any-linux.sh @@ -0,0 +1,21 @@ +#!/bin/sh +# 2021-07-09 +# Objective: install any Linux automatically to a disk +# Made by ungleich +# Made for bare metal +# Requirements: +# The OS image needs to be in tar format and needs to contain grub + + +if [ $# -ne 2 ]; then + echo "$0 os-image.tar [usb|disk]" + echo "os-image.tar contains the OS" + echo "usb mode: create a bootable usb stick including this script to auto install to disk" + echo "disk mode: actually install os-image.tar to the first disk" + exit 1 +fi + +os=$1; shift +mode=$1; shift + +# isohybrid