Fix wsssh-tools installation hook

- Move wsssh-tools .deb to config/includes.chroot/tmp/ for build access
- Update hook to use /tmp/ path instead of /cdrom/
- Remove unnecessary copy operation since file is already in place

This fixes the build error where the hook couldn't find the .deb package.
parent 63199f47
......@@ -5,14 +5,11 @@ set -e
echo "Installing wsssh-tools .deb package..."
# Copy wsssh-tools .deb package from the live system
WSSSH_DEB="/cdrom/wsssh-tools_1.0.0-1_amd64.deb"
TARGET_DEB="/tmp/wsssh-tools_1.0.0-1_amd64.deb"
echo "Copying wsssh-tools from $WSSSH_DEB..."
if [ -f "$WSSSH_DEB" ]; then
cp "$WSSSH_DEB" "$TARGET_DEB"
else
# wsssh-tools .deb package is already available in /tmp from config/includes.chroot/tmp/
WSSSH_DEB="/tmp/wsssh-tools_1.0.0-1_amd64.deb"
echo "Checking wsssh-tools at $WSSSH_DEB..."
if [ ! -f "$WSSSH_DEB" ]; then
echo "Error: wsssh-tools .deb package not found at $WSSSH_DEB"
exit 1
fi
......@@ -24,9 +21,8 @@ apt-get install -y libc6 libssl3t64 openssl
# Install wsssh-tools .deb package
echo "Installing wsssh-tools .deb package..."
dpkg -i "$TARGET_DEB"
dpkg -i "$WSSSH_DEB"
# Clean up
rm -f "$TARGET_DEB"
# Clean up (don't remove since it's from includes.chroot)
echo "wsssh-tools installation completed successfully"
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment