modified shim tool to sort of work

This commit is contained in:
MunyDev 2024-08-09 02:02:21 -04:00
parent b091bad77d
commit da7e6a0300
No known key found for this signature in database
GPG Key ID: 7DFBB51356064F62

View File

@ -59,3 +59,19 @@ then
exit 0 exit 0
fi fi
# Find loop device
MOUNT_DIR=$(mktemp -d)
LOOP_DEV=$(losetup -f)
losetup -fP "$1"
echo "Using loop dev at $LOOP_DEV"
echo "Mounting at $MOUNT_DIR"
enable_rw_mount "$LOOP_DEV"p3
mount -o rw "$LOOP_DEV"p3 "$MOUNT_DIR"
mkdir -p "$MOUNT_DIR/usr/share/packeddata"
cp -rvf "./out/." "$MOUNT_DIR/usr/share/packeddata"
cp "inshim.sh" "$MOUNT_DIR/usr/bin/inshim.sh"
umount $MOUNT_DIR
sync
sync
sync
echo "success!"