Skip to content

Instantly share code, notes, and snippets.

@imcsk8
Created January 30, 2020 22:02
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save imcsk8/78efd778b36bc6f3a29a872655643c79 to your computer and use it in GitHub Desktop.
Save imcsk8/78efd778b36bc6f3a29a872655643c79 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