Add script to install any Linux to any computer
This commit is contained in:
parent
2dae22a0d7
commit
ace073e89a
1 changed files with 21 additions and 0 deletions
21
install-any-linux.sh
Normal file
21
install-any-linux.sh
Normal file
|
@ -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
|
Loading…
Reference in a new issue