When I attempt to use the Toradex EZ Installer to load a custom image, I am running into issues with the
wrapup.sh script not executing certain commands as root. I have copied the code I’ve added to
resize2fs /dev/mmcblk0p2 &> /dev/console # Set the time zone to Pacific and update the hardware clock to match network # time. ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime &> /dev/console hwclock -w timedatectl &> /home/user/test.txt touch /home/user/test.txt
After flashing the device, I get the errors shown below.
/run/media/src/Apalis-iMX6_LXDE-Image-Tezi_2.8b2/wrapup.sh: line 78: resize2fs: not found ln: /etc/localtime: Read-only file system hwclock: Sorry, only the superuser can use the Hardware Clock.
Can you provide clarification on why it appears that
wrapup.sh is not executing as root?