Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ttys3/4fde1bcecd069d5de451122aae5b5a56 to your computer and use it in GitHub Desktop.
Save ttys3/4fde1bcecd069d5de451122aae5b5a56 to your computer and use it in GitHub Desktop.
CentOS 8 aarch64 rootfs creation
$ mkdir repos
$ cat <<EOF>> repos/centos.repo
[main]
arch=aarch64
basearch=aarch64
[centos8-base]
name=CentOS-8-Base
baseurl=http://mirror.centos.org/centos/8/BaseOS/aarch64/os/
gpgcheck=0
EOF
$ mkdir rootfs
$ sudo dnf --releasever 8 -c repos/centos.repo --disablerepo=* --enablerepo=centos8-base --installroot="$(pwd)/rootfs" groups install 'Minimal Install' 2>&1| tee dnf-rootfs.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment