Skip to content

Commit

Permalink
Merge pull request #203 from firesim/bumpFedora
Browse files Browse the repository at this point in the history
Bump fedora
  • Loading branch information
NathanTP authored Aug 25, 2021
2 parents 86be669 + 11df7b6 commit d25efe5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions boards/default/distros/fedora/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
RAWURL=http://fedora.riscv.rocks/kojifiles/work/tasks/944/320944/Fedora-Developer-Rawhide-20200108.n.0-sda.raw.xz
RAWURL=https://dl.fedoraproject.org/pub/alt/risc-v/repo/virt-builder-images/images/Fedora-Minimal-Rawhide-20191123.n.1-sda.raw.xz
COMPIMG=rootfs.img.xz
NEWIMG=rootfs.img

# Extract root partition without partition table
# NOTE: Offset must be adjusted for different base image
$(NEWIMG): $(COMPIMG)
xzcat -k $(COMPIMG) | dd of=$(NEWIMG) bs=512 skip=1007616
xzcat -k $(COMPIMG) | dd of=$(NEWIMG) bs=512 skip=1249280

$(COMPIMG):
curl $(RAWURL) -o $(COMPIMG)
Expand Down
1 change: 1 addition & 0 deletions boards/firechip/base-workloads/fedora-base.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name" : "fedora-base",
"guest-init": "initRepos.sh",
"distro" : {
"name" : "fedora",
"opts" : {}
Expand Down
3 changes: 3 additions & 0 deletions boards/firechip/base-workloads/fedora-base/initRepos.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
dnf makecache
poweroff

0 comments on commit d25efe5

Please sign in to comment.