Mounting eMMC in Krescue shell

Hi all,

I’m wondering if it’s possible to mount the eMMC partitions from inside the running Krescue.

I have a specific use-case where I provision multiple VIM3s with small differences:

  1. Write a customized fenix-4.9-Image to the eMMC with krescue (via USB network interface)
  2. Configure a few files in the installed image (setting a unique hostname, id and some urls)
  3. Reboot into the configured image

I can do step 2 manually by connecting the newly flashed VIM3 to a monitor and keyboard and change the files locally but i would like to do that from within Krescue to save a reboot. Is it possible to mount (and change) the contents from inside Krescue? I know that i could dump the image, mount and change it and write it back, but this seems a bit complicated for this simple process.

### /dev/mmcblk* is not directly usable:
$ ls /dev/mmcblk*
/dev/mmcblk0       /dev/mmcblk0p2     /dev/mmcblk1boot0  /dev/mmcblk1rpmb
/dev/mmcblk0p1     /dev/mmcblk1       /dev/mmcblk1boot1

$ fdisk -l /dev/mmcblk1
Disk /dev/mmcblk1: 14.57 GiB, 15634268160 bytes, 30535680 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

### mmcblk0 is the sd card with krescue:
$ blkid
/dev/mmcblk0p1: SEC_TYPE="msdos" LABEL_FATBOOT="rescue" LABEL="rescue" UUID="DEAD-BEEF" TYPE="vfat" PARTUUID="e2ca2a67-01"
/dev/mmcblk0p2: LABEL="dumps" UUID="C99C-DF19" TYPE="exfat" PTTYPE="dos" PARTUUID="e2ca2a67-02"