Update setup-alpine.sh
This commit is contained in:
parent
7c0e71569e
commit
2104328a76
1 changed files with 3 additions and 3 deletions
|
@ -1,11 +1,11 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
wget "https://dl-cdn.alpinelinux.org/alpine/v3.21/releases/x86_64/alpine-virt-3.21.3-x86_64.iso"
|
wget "https://dl-cdn.alpinelinux.org/alpine/v3.21/releases/x86_64/alpine-virt-3.21.3-x86_64.iso" /tmp/alpine.iso
|
||||||
|
|
||||||
if [ -f /dev/sda ]; then
|
if [ -f /dev/sda ]; then
|
||||||
dd if=alpine-virt-3.21.3-x86_64.iso of=/dev/sda
|
dd if=/tmp/alpine.iso of=/dev/sda
|
||||||
else
|
else
|
||||||
dd if=alpine-virt-3.21.3-x86_64.iso of=/dev/vda
|
dd if=/tmp/alpine.iso of=/dev/vda
|
||||||
fi
|
fi
|
||||||
|
|
||||||
reboot
|
reboot
|
Loading…
Add table
Reference in a new issue