Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
Update create-debian-usb-key.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
paigeadelethompson authored Oct 18, 2023
1 parent edc23e6 commit d950747
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions create-debian-usb-key.sh
Original file line number Diff line number Diff line change
@@ -1,29 +1,6 @@
DIRNAME="$(dirname $0)"

DISK="$1"
: "${DEBIAN_RELEASE:=stretch}"
: "${DEBIAN_VERSION:=9.2.1}"
: "${DEBIAN_MIRROR:=http://ftp.debian.org}"
: "${ARCH:=amd64}"
: "${REMOTE_ISO:=https://cdimage.debian.org/debian-cd/current/${ARCH}/iso-cd/debian-${DEBIAN_VERSION}-${ARCH}-netinst.iso}"
ISO_NAME="${REMOTE_ISO##*/}"

usage() {
cat << EOF
Usage: $0 <disk> <iso>
disk Disk to use (e.g. /dev/sdb) - will be wiped out
Overriding options via environment variables
DEBIAN_RELEASE Release of Debian (default: buster)
DEBIAN_VERSION VERSION of Debian (default: 9.2.1)
DEBIAN_MIRROR Debian mirror (default: http://ftp.debian.org)
ARCH Architecture (default: amd64)
EOF
}

[ $# -ne 1 ] && echo "Please provide required args" && usage && exit 1
[ -z "${DISK}" ] && echo "Please provide a disk" && usage && exit 1

EFI="${DISK}p1"
ROOT="${DISK}p2"
Expand Down

0 comments on commit d950747

Please sign in to comment.