Skip to content

Instantly share code, notes, and snippets.

@B83C
Last active May 18, 2022 23:36
Show Gist options
  • Save B83C/1cf528b176f171bc16d1404920093fff to your computer and use it in GitHub Desktop.
Save B83C/1cf528b176f171bc16d1404920093fff to your computer and use it in GitHub Desktop.
Alpine Linux on oracle cloud
wget https://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/aarch64/alpine-virt-3.15.0-aarch64.iso -O alpine.iso #or whatever versions suits you best
dd if=alpine.iso of=/dev/sda
mkdir /media/setup
cp -a /media/sda/* /media/setup
mkdir /lib/setup
cp -a /.modloop/* /lib/setup
/etc/init.d/modloop stop
umount /dev/sda
mv /media/setup/* /media/sda/
mv /lib/setup/* /.modloop/
setup-interfaces -a
rc-service networking start
rc-update add networking boot
setup-apkrepos
f
apk update
apk add e2fsprogs libarchive-tools
apk add parted
parted
mklabel gpt
q
apk add grub-efi
apk add efibootmgr
export BOOT_SIZE=128
export SWAP_SIZE=1024
export BOOTLOADER=grub
export USE_EFI=1
setup-disk /dev/sda
#REFS:
#https://www.alextsang.net/articles/20191006-063049/index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment