# Can't pass in my own config to mender-convert: no such file or directory

**URL:** <https://hub.mender.io/t/cant-pass-in-my-own-config-to-mender-convert-no-such-file-or-directory/5805>\
**Category:** Debian family\
**Tags:** raspberry-pi-4\
**Created:** [May 2, 2023, 7:30pm UTC](https://hub.mender.io/t/cant-pass-in-my-own-config-to-mender-convert-no-such-file-or-directory/5805 "2023-05-02T19:30:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bp1313](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@bp1313](https://hub.mender.io/u/bp1313)\
**Post date:** [May 2, 2023, 7:30pm UTC](https://hub.mender.io/t/cant-pass-in-my-own-config-to-mender-convert-no-such-file-or-directory/5805/1 "2023-05-02T19:30:31Z")

</div>

I’m trying to adjust the MENDER\_STORAGE\_TOTAL\_SIZE\_MB flag in a custom config when using mender-convert on my Raspbian golden image.

Image: Raspian bullseye 32 bit lite (+ Packages I’ve added)  
Hardware: Raspberry Pi 4

I created my config as “custom\_config” in configs/ using:

```auto
echo 'MENDER_STORAGE_TOTAL_SIZE_MB =32768' >> configs/custom_config

```

Command I’m using:

```auto
$MENDER_ARTIFACT_NAME=release-1 ./docker-mender-convert \
  --disk-image input/golden-image-1.img \
  --config configs/raspberrypi4_config \
  --config configs/custom_config

```

Failure:

```auto
2023-05-02 19:15:38 [INFO] [mender-convert-extract] Using configuration file: configs/mender_convert_config
2023-05-02 19:15:38 [INFO] [mender-convert-extract] Using configuration file: ./work/override_compression_config
2023-05-02 19:15:38 [INFO] [mender-convert-extract] Using configuration file: configs/raspberrypi4_config
2023-05-02 19:15:38 [INFO] [mender-convert-extract] Using configuration file: configs/custom_config
modules/config.sh: line 20: configs/custom_config: No such file or directory

```

I checked and the permissions are the same across all of the configs and the RaspberryPi4\_config loads in fine. Why can’t it open the file?

Thanks

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [May 3, 2023, 3:35pm UTC](https://hub.mender.io/t/cant-pass-in-my-own-config-to-mender-convert-no-such-file-or-directory/5805/2 "2023-05-03T15:35:33Z")

</div>

Hi @bp1313,

Thanks for reaching out! I just tried to reproduce, and the configuration works for me with one modification:  
´´´  
echo ‘MENDER\_STORAGE\_TOTAL\_SIZE\_MB=32768’ \>\> configs/custom\_config  
´´´  
(e.g. whitespace removed). I used `mender-convert:4.0.1`.

If this doesn’t do the trick for you, please provide the version you used and the full log. Thanks

Greetz,  
Josef

---

<div class="post-metadata">

**Author:** ![bp1313](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@bp1313](https://hub.mender.io/u/bp1313)\
**Post date:** [May 3, 2023, 8:16pm UTC](https://hub.mender.io/t/cant-pass-in-my-own-config-to-mender-convert-no-such-file-or-directory/5805/3 "2023-05-03T20:16:45Z")

</div>

> [@TheYoctoJester](#):
>
> mender-convert

Ah, I was using an older version because in this tutorial the version is hard coded in the clone command. Could that be removed from the tutorial?  
[https://docs.mender.io/operating-system-updates-debian-family/convert-a-mender-debian-image](https://docs.mender.io/operating-system-updates-debian-family/convert-a-mender-debian-image)

Fixed now!  
Thanks,  
Brian
