Hi,
I’m building a mender image for raspberry pi, and now all of a sudden it looks like /usr/bin/mender
is no longer in the partitions.
Why??
It worked a while back.
I’m using MENDER_CONVERT
tag 4.0.1
but in my version had changed this line mender-convert/Dockerfile at 4.0.1 · mendersoftware/mender-convert · GitHub
from ARG MENDER_ARTIFACT_VERSION=master
to ARG MENDER_ARTIFACT_VERSION=3.10.0
(it’s massively bad practice to hardmode master
– see here)
I called the image creation like this:
MENDER_ARTIFACT_NAME=mine-1 ./mender-convert --disk-image "input/roper-rpi-im\
age.img" --config ./configs/roper_config --overlay ./rootfs_overlay_roper/
and not like this
MENDER_ARTIFACT_NAME=mine-1 MENDER_CONVERT_VERSION="$(git describe --tags --dirty --exact-match 2> /dev/null || git rev-parse --short HEAD)" ./mender-convert --disk-image "input/roper-rpi-im\
age.img" --config ./configs/roper_config --overlay ./rootfs_overlay_roper/
I hope that’s no problem.
In any case running this script on the image file that I get via xz -d -k mine-1.img.xz
…
#!/usr/bin/env bash
IMAGEFILE=*.img # mine-1.img
MOUNTDIR_P2=/tmp/mountdir_p2
MOUNTDIR_P3=/tmp/mountdir_p3
mkdir -p $MOUNTDIR_P2
mkdir -p $MOUNTDIR_P3
LOOP_VAR=$(sudo losetup -fP --show $IMAGEFILE)
FLAGS="" #FLAGS="-o ro"
sudo mount `#-o users` $FLAGS ${LOOP_VAR}p3 $MOUNTDIR_P3
sudo mount `#-o users` $FLAGS ${LOOP_VAR}p2 $MOUNTDIR_P2
#sudo mount `#-o users` $FLAGS ${LOOP_VAR}p1 $MOUNTDIR_P2/boot
ls $MOUNTDIR_P2/usr/bin/mender
ls $MOUNTDIR_P3/usr/bin/mender
read -p "hit enter to unmount"
#sudo umount $MOUNTDIR_P2/boot
sudo umount $MOUNTDIR_P2
sudo umount $MOUNTDIR_P3
sudo losetup -d $LOOP_VAR
results in
ls: cannot access '/tmp/mountdir_p2/usr/bin/mender': No such file or directory
ls: cannot access '/tmp/mountdir_p3/usr/bin/mender': No such file or directory
… shows that /usr/bin/mender
is missing.
Any ideas??