Skip to content

Commit

Permalink
docs: add instruction to check image info
Browse files Browse the repository at this point in the history
  • Loading branch information
RadxaYuntian committed Sep 25, 2023
1 parent ed3959e commit fcab2ee
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion docs/image/reproduce/image.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ In this article we will show you how to reproduce [`rock-3c_debian_bullseye_xfce

## Get build time information from released image

Every released `rbuild` images contains 2 files describing their build time environment. They are `/etc/radxa_image_fingerprint` for the build system, and `/etc/radxa_apt_snapshot` for the then-available packages on Radxa official APT repo:
Every released `rbuild` images contains 2 files describing their build time environment. They are `/etc/radxa_image_fingerprint` for the build system, and `/etc/radxa_apt_snapshot` for the then-available packages on Radxa official APT repo.

### Check the content from a running system

```bash
radxa@rock-3c:~$ cat /etc/radxa_image_fingerprint
Expand All @@ -26,6 +28,22 @@ radxa@rock-3c:~$ cat /etc/radxa_apt_snapshot
}
```

### Check the content from a disk image

You can use following commands to check the system info without a running device:

```bash
sudo apt update
sudo apt install multipath-tools
sudo kpartx -a system.img
# Check with `lsblk` to find the last loop device partition
# In this example we assume it is loop0p3
sudo mount /dev/mapper/loop0p3 /mnt
cat /mnt/etc/radxa_image_fingerprint
sudo umount /mnt
sudo kpartx -d system.img
```

## Create a custom apt repo

As shown in `RBUILD_COMMAND` above, our image is based on Debian Bullseye. We will have to create a custom apt repo for `rbuild` based on `radxa_apt_snapshot`, since the official Radxa apt repo is likely to have newer packages.
Expand Down

0 comments on commit fcab2ee

Please sign in to comment.