Open dbowerman opened 3 months ago
Hi! I adjusted the install file starting line 381 as follows (add some "/dir" after "$temp") :
mkdir $temp/dir
ld=$(losetup -f --show -P "$img")
trap 'losetup -d $ld; rm -r $temp/dir' 0 1 2 15
mount ${ld}p2 $temp/dir
trap 'umount $temp/dir; losetup -d $ld; rm -r $temp/dir' 0 1 2 15
rsync -a --numeric-ids --perms --inplace "$temp/dir/." "$DEST/."
echo "Copy/sync finished."
trap "" 0 1 2 15
umount $temp/dir; losetup -d $ld; rm -r $temp/dir
root@venus:/opt/venusian# ./install -i -web- -d /opt/venus --mount /mnt/venus
Fails with :-
Length: 129709112 (124M) [application/x-gzip] Saving to: ‘STDOUT’
2024-07-22 11:13:43 (1.65 MB/s) - written to stdout [129709112/129709112]
Copying image Copy/sync finished. Primary set-up Checking startup scripts Converting services ./install: line 548: /tmp/tmp.F32dzLno72/unit: No such file or directory root@venus:/opt/venusian#
There is no such tmp dir
root@venus:/opt/venusian# ls /tmp systemd-private-b70cf21f3abe407da2edbc2c47aa17a8-systemd-logind.service-wJfRE9 tmp.3jlCLUYHr2 tmp.pIzTKRU7gP systemd-private-b70cf21f3abe407da2edbc2c47aa17a8-systemd-timesyncd.service-nQYerh tmp.a6Xxw6rigj tmp.VzugPOcMM0 tmp.1aH3dRVk4t
Any ideas?