aboutsummaryrefslogtreecommitdiffstats
path: root/RHEL8-wsl.sh
blob: 9acff5d732177a8486770da265af1880a62b367b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

vers="$1"
name="rhel-${vers}-wsl"
repo="/mort/mirror/rhel/repo/el8/mirror-RHEL-${vers}-BaseOS.repo"
rpms="-kernel* -microcode_ctl -*-firmware"

tar="${IMAGEFISH_DESTDIR-.}/${name}.tar"

echo ""
echo "###"
echo "### $name"
echo "###"
echo "### $rpms"
echo "###"

set -ex
rm -f "$tar"
scripts/install-redhat.sh --config "$repo" --tar "$tar" --packages "$rpms" --kernel "" --dnf