Fix firmware-ipw2x00 license acceptance error during livecd build

- Add preseed file to automatically accept firmware-ipw2x00 license
- Create hook to pre-accept license (alternative approach)
- Modify apt-update hook with license acceptance (backup method)

This resolves the debconf error that occurs when installing firmware-ipw2x00 package in noninteractive mode.
parent 215f1190
......@@ -3,6 +3,11 @@
# This ensures the chroot has current package information from all repositories
# Runs early in the chroot stage, before package installation
echo "Pre-accepting firmware-ipw2x00 license..."
debconf-set-selections <<EOF
firmware-ipw2x00 firmware-ipw2x00/license/accepted boolean true
EOF
echo "Updating package lists in chroot environment..."
apt-get update
......
#!/bin/bash
# Pre-accept license for firmware-ipw2x00 package
# This prevents interactive prompts during package installation
echo "Pre-accepting firmware-ipw2x00 license..."
debconf-set-selections <<EOF
firmware-ipw2x00 firmware-ipw2x00/license/accepted boolean true
EOF
if [ $? -eq 0 ]; then
echo "License accepted successfully"
else
echo "Warning: Failed to accept license"
fi
\ No newline at end of file
# Preseed file to accept firmware-ipw2x00 license
firmware-ipw2x00 firmware-ipw2x00/license/accepted boolean true
\ 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