Add extension for patching Deboostrap to support Ubuntu Noble

This commit is contained in:
Igor Pecovnik
2023-12-21 09:06:22 +01:00
committed by Igor
parent 294265d393
commit b8cd5dc4fe

View File

@@ -0,0 +1,15 @@
function add_host_dependencies__patch_deboostrap(){
echo "Patching Debootstrap to support Ubuntu Noble"
NOBLE_SYMLINK=/usr/share/debootstrap/scripts/noble
if [ -L ${NOBLE_SYMLINK} ] && [ -e ${NOBLE_SYMLINK} ]; then
:
else
if ! command -v sudo &> /dev/null; then
run_host_command_logged ln -s gutsy ${NOBLE_SYMLINK}
else
run_host_command_logged sudo ln -s gutsy ${NOBLE_SYMLINK}
fi
fi
}